Microsoft Foundry portal setup
Enable Fireworks on Foundry, create a deployment, and find your project endpoint. Start here if you have not set up a Foundry resource yet.
CLI terminology: The Foundry provider is
--provider azure (or on --azure). Harness configs display the label Fireworks on Microsoft Foundry. With Foundry, --model is the model you deployed in Azure (for example, FW-GLM-5.2), not a Fireworks serverless short ID like glm-fast-latest.Supported harnesses
Claude Code is the remaining gap. Every other harness in the matrix supports Foundry routing in FireConnect v0.9.0+.
Prerequisites
- A Microsoft Foundry resource with at least one Fireworks model deployment (for example,
FW-GLM-5.2orFW-MiniMax-M2.5) - Your Foundry resource endpoint and Azure API key from the Microsoft Foundry portal
- A supported harness installed locally
- FireConnect v0.9.0+ (see Overview: Install)
Configure once, then enable harnesses
fireconnect configure sets the Foundry provider and endpoint. It does not set your Fireworks API key. Use fireconnect login for that when routing through the Fireworks gateway.
provider and azure block in ~/.fireconnect/config.json. After configuring, enable harnesses normally:
--model, FireConnect defaults to FW-GLM-5.2.
Endpoint normalization
Pass your Foundry endpoint to--base-url. FireConnect normalizes whatever you paste to the correct OpenAI-compatible base at https://<resource>.services.ai.azure.com/openai/v1:
- Bare resource root (
https://<resource>.services.ai.azure.com) - Portal project endpoint (
.../api/projects/<name>) - Foundry Models route (
.../models) - An already-correct base (
.../openai/v1)
API key storage
- Pass
--api-keyto write the Azure key into~/.fireconnect/config.json - Or export
AZURE_API_KEYbeforeconfigure. FireConnect stores an environment reference instead.
One-off Foundry routing
Route a single harness through Foundry without changing global config:--azure alone reuses it:
What each harness writes
Each harness writes a dedicated Foundry config distinct from the Fireworks gateway.off restores your original config byte-for-byte.
fireconnect <harness> status reports azure as the provider along with the endpoint and model.
Turn off Foundry routing
There are two ways to stop using Microsoft Foundry, depending on what you want next.Switch back to direct Fireworks
Use this when you want to keep FireConnect enabled but route through the Fireworks gateway again instead of your Foundry deployment.on replaces the Foundry config with the normal Fireworks gateway config. You do not need to run off first.
The Azure endpoint and key remain stored in ~/.fireconnect/config.json but are unused while provider is fireworks. They are used again if you run configure --provider azure later.
Remove FireConnect from a harness entirely
Useoff to restore the config snapshot from before FireConnect was first enabled for that harness. Your original provider settings are restored byte-for-byte:
off removes Foundry wiring from harness config files. It does not change the global provider field in ~/.fireconnect/config.json. If provider is still azure, the next on will route through Foundry again unless you run configure --provider fireworks first.
Restart the harness after off if it is already running. For Cursor and VS Code, quit the IDE before off.