Requires Node.js 18 or later. On Windows, run it from Git Bash.
Sign in
fireconnect login
Sign in with your browser, or paste an existing Fireworks key.
Connect your harness
fireconnect claude
fireconnect codex
# Quit the Codex app firstfireconnect codex
# Quit the ChatGPT app firstfireconnect codex
fireconnect opencode
fireconnect cursor
fireconnect vscode
fireconnect pi
The Codex CLI, the Codex app, and the ChatGPT desktop app share one config, so fireconnect codex connects all three. For desktop apps, including Cursor IDE and VS Code, quit the app first. See Coding Harnesses for every harness.
Restart and pick a model
Restart the harness and open its model picker. You will see auto, FireRouter, and Fireworks open models.
Fireworks models and routers in the Claude Code model picker
fireconnect claude status shows the configured model and Fireworks endpoint.
Prefer not to install anything? Every harness has a Manual setup tab
in Coding Harnesses with the exact settings to add
yourself.
import osfrom openai import OpenAIclient = OpenAI( api_key=os.environ["FIREWORKS_API_KEY"], base_url="https://api.fireworks.ai/inference/v1",)response = client.chat.completions.create( model="glm-latest", messages=[{"role": "user", "content": "Say pong in one word."}],)print(response.choices[0].message.content)
import osimport anthropicclient = anthropic.Anthropic( api_key=os.environ["FIREWORKS_API_KEY"], base_url="https://api.fireworks.ai/inference",)message = client.messages.create( model="glm-latest", max_tokens=1024, messages=[{"role": "user", "content": "Say pong in one word."}],)print(next(block.text for block in message.content if block.type == "text"))
from fireworks import Fireworksclient = Fireworks()response = client.chat.completions.create( model="glm-latest", messages=[{"role": "user", "content": "Say pong in one word."}],)print(response.choices[0].message.content)
The reply says pong.
Try a router
Change model to firerouter/opus. FireRouter picks a model for each turn, and the response model field shows which one served it. Routes with closed models need a provider credential.More examples, including the Responses API: FireRouter Setup.