Skip to main content
FireConnect can route supported harnesses through a Fireworks model deployed in your Azure subscription. Azure bills this usage, and it counts toward your Microsoft Azure Consumption Commitment where applicable. Before configuring FireConnect, open Microsoft Foundry to enable Fireworks and create a deployment.
CLI terminology: The Foundry provider is --provider azure, or --azure when you connect one harness. Harness configs display the label Fireworks on Microsoft Foundry. With Foundry, --model is your Azure deployment name, such as FW-GLM-5.2, not a Fireworks serverless ID such as glm-fast-latest.

Requirements

  • A Microsoft Foundry resource with a Fireworks model deployment
  • The resource endpoint and Azure API key
  • FireConnect installed
See Coding Harnesses for current compatibility.
Use an Azure API key from Foundry, not a Fireworks key (fw_...).Model routers are not available on the Foundry path. To use --model firerouter, first switch to the direct Fireworks gateway with fireconnect configure --provider fireworks.

Configure Foundry as the default

Set the Foundry endpoint once. New connections for supported harnesses use it until you change the default provider.
If no Azure key is configured, FireConnect stores an {env:AZURE_API_KEY} reference. To store the current value literally, add:

Connect a harness

Use the deployment name from Foundry:
If you omit --model, FireConnect defaults to FW-GLM-5.2.

Accepted endpoint formats

Pass any of these Foundry URLs to --base-url. FireConnect converts it to 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)
  • A complete OpenAI-compatible base URL (.../openai/v1)
Find the endpoint in the Microsoft Foundry portal under Project settings.

Route one command through Foundry

Route a single harness through Foundry without changing global config:
If global config already has a Foundry endpoint, --azure alone reuses it:
FireConnect keeps Foundry configuration separate from direct Fireworks configuration. fireconnect <harness> status reports the provider, endpoint, and model. See Coding Harnesses for files changed and restore behavior.
fireconnect model list shows the Fireworks serverless catalog, not Foundry deployments. Enter a Foundry deployment name with --model.

Switch or disconnect

You do not need to run off before reconnecting through Fireworks. The saved Azure endpoint and key remain available if you switch back later. off does not change the global provider. If the provider remains azure, the next connection for a supported harness will use Foundry again.

Verify routing

Confirm that the provider is azure and that the endpoint and deployment name are correct.