NewJoin us for our inaugural conference, Forge 2026

Coding agents at a fraction of frontier cost

Fireworks Nexus orchestrates open and closed models inside Claude Code, Codex, Cursor and OpenCode, so you cut cost per task without changing your workflow.

How coding agents run on Fireworks

How inference, training and orchestration on Fireworks apply to coding agents.

Inference

Prototype on serverless, then move production agents to on-demand with the agentic-coding preset; Cursor Fast Apply runs at ~1000 tokens/sec on Fireworks.

Training

When an open model misses your bar, Reinforcement Fine-Tuning (RFT) goes from evaluator to deployed model in hours; Vercel v0 reached 93% error-free generation with it.

Orchestration

As spend grows, Nexus auto sends easy work to open models and hard work to your closed provider; Factory runs Kimi K2.7 at 20% of frontier cost.

Lower cost per task, under the harness you already use.

Why use Fireworks for coding agents?

Lower cost

Composer 2 costs Cursor 6–10x less to serve than comparable frontier models.

Same harness

Keep Claude Code or Codex. Nexus adds open models next to the closed models you already use.

Proven latency

Sourcegraph cut latency 30% and lifted acceptance from 15% to 40%.

Your code

Open models run with Zero Data Retention by default. See how below.

How it works

How to set up coding agents on Fireworks

Step 1: Install the Nexus CLI

Run the installer from nexus.fireworks.ai. The Nexus CLI is open source and works with Claude Code, Codex, Cursor, VS Code, Copilot, OpenCode and more.

Step 2: Sign in

Run nexus login, then sign in with your browser or paste a Fireworks API key.

Step 3: Turn it on

Run nexus claude. Claude Code now runs on Nexus auto, which picks an open or closed model for each turn.

Step 4: Pick a model or Nexus auto

Keep Nexus auto, or pin an open model such as GLM 5.2 Fast.

Step 5: Move production traffic

Move production agents to an on-demand deployment or Reserved Throughput. The FAQ below compares pricing and SLAs.

Security

How does Fireworks handle your code and prompts?

Coding agents send your files as context. The Fireworks security docs set out what happens to that data.

Zero Data Retention by default

Fireworks does not log or store prompt or generation data for any open model. Logging starts only when you explicitly opt in.

Response API storage, 30 days

With storage on, the Response API keeps data for 30 days. It is the one documented exception to Zero Data Retention.

Models for code

Which models can I use for coding agents?

These are the open models the Fireworks docs currently recommend for code, plus a code-tuned Kimi variant listed for the Nexus CLI.

Guide

How to cut inference cost for coding agents

Measure cost per finished task

Token price alone hides the real number. Track what one finished task costs, including retries and the repository context your agent resends each turn. Compare that figure across models before you move traffic, because a cheaper model that needs extra retries can cost more.

Send easy work to open models

Many agent turns, like reading a file or making a small edit, don’t need a frontier model. Pin an open model for that work, or let Nexus auto make the call on each request. If most of your tasks need the frontier model, orchestration saves less.

Cut repeated-context cost

Coding agents resend the same system prompt and files on every turn. Prompt caching is on by default and bills cached tokens at 50% off. Keep stable content, such as instructions and a repository map, at the front of the prompt and put the changing request last.

FAQ

Frequently asked questions about coding agents

Can I use open models in Claude Code or Codex?

Yes. The Nexus CLI adds Fireworks open models and Nexus auto to Claude Code or Codex. The steps above show the setup.

How is coding agent inference priced?

Serverless bills per token and has no SLA. On-demand bills per GPU-hour, and Reserved Throughput is SLA-backed.

Does Fireworks store my code or prompts?

Not by default. Open models run with Zero Data Retention unless you opt in. The Response API’s storage setting is the one exception; see the Security section above.

How do I lower latency for code completion?

Prompt caching is on by default and cuts time to first token by as much as 80%. On dedicated deployments, speculative decoding lowers generation latency by having the model verify proposed tokens in parallel.

Do I have to migrate my tooling?

No. Your harness keeps its commands and workflow, and you can reverse the Nexus CLI setup.

Lower your coding agent bill

Keep Claude Code, Codex, Cursor or OpenCode. Nexus orchestrates open and closed models behind them to cut your cost per task.