Quick Setup
The easiest way to configure Claude Code with Fireworks is via the.claude/settings.json file:
Step 1: Create Settings File
Create a.claude/settings.json file in one of these locations:
Option A: Home directory (recommended)
Step 2: Launch Claude Code
Configuration Details
API Key
Generate a Fireworks API key from app.fireworks.ai. ReplaceYOUR_FIREWORKS_API_KEY with your actual key.
Model Names
Use Fireworks model IDs directly without thefireworks_ai/ prefix:
| Model | Model ID |
|---|---|
| Kimi-2.5 | accounts/fireworks/models/kimi-k2p5 |
All Model Overrides
For complete compatibility with Claude Code’s subagents, set all model environment variables:Environment Variables Alternative
If you prefer environment variables over settings.json:Alternative: LiteLLM Proxy
For advanced features like interleaved thinking or when using specific model capabilities, you can use Fireworks’ LiteLLM proxy endpoint:apiKeyHelper to pass your API key from the environment variable.
Supported Models
Kimi-2.5
Moonshot’s flagship agent model optimized for coding, reasoning, and long-context tasks. Features 256k context window and native multimodal capabilities.
Why Use Fireworks with Claude Code?
- Cost Savings: Significantly lower cost per token compared to Claude’s native pricing
- No Rate Limits: No hourly quotas or surprise throttling
- Model Choice: Access to the latest open-source models
- Privacy: Your code stays within your chosen infrastructure
- Transparent Pricing: Clear per-token pricing without subscription tiers
Next Steps
- Explore other Agent Frameworks
- Learn about function calling with Fireworks
- Check out reasoning models for complex tasks