Reasons to Use Concentrate with Zed
Reasons to Use Concentrate with Zed
- One API key — Use one Concentrate key instead of managing separate provider accounts in Zed.
- More model choice — Pick Claude, OpenAI, and other models from the Concentrate catalog in the agent panel.
- Prompt caching — Zed asks for prompt caching on every model, so most Claude chats are cached too.
- Spend controls — Manage usage with Concentrate keys and budgets.
- Usage analytics — Review requests, models, tokens, and costs in your dashboard.
Quick Start
The Concentrate CLI (cn, beta) sets up Zed in one command. Zed doesn’t need to be closed.
View prerequisites (before you begin)
View prerequisites (before you begin)
- macOS or Linux, with Node.js 22.13 or newer
- A Concentrate account with credits. You can sign in with
cn login, or create an API key at concentrate.ai/api-keys. - Zed installed
1
Install the Concentrate CLI and sign in
cn asks you to paste a key instead. You can also run cn setup to paste a key.2
Configure Zed
settings.json with every Concentrate model that supports tool calls. Your other settings, providers, and comments are kept. If you haven’t picked a default agent model yet, Claude Sonnet under Concentrate becomes the default.3
Provide your key (Linux only)
On macOS,
cn saves your key in the keychain, where Zed looks for it, so you can skip this step.On Linux, set CONCENTRATE_API_KEY in the environment Zed starts from, or enter your key for the Concentrate provider in Zed’s agent settings.4
Pick a model
Open Zed’s Agent panel and pick a model under Concentrate. Send a short prompt to confirm the connection.
cn refresh later to pick up new models. cn key updates the saved key.
Manual Setup
To configure Zed yourself, add a Concentrate provider to your Zedsettings.json (~/.config/zed/settings.json):
name. Then provide your key: set CONCENTRATE_API_KEY in the environment Zed starts from, or enter it for the Concentrate provider in Zed’s agent settings.
Remove Concentrate AI
If you usedcn configure zed, run:
cn created, and the default model if cn set it. A default model you picked yourself is left alone. cn logout does the same along with removing your saved key. If you set Zed up by hand, remove the Concentrate entry from settings.json.
Troubleshooting
Concentrate models are missing
Concentrate models are missing
Run
cn configure zed again, or cn refresh if you configured it before. Zed reloads its settings on its own.API key is missing or invalid
API key is missing or invalid
On macOS, run
cn key to save the key again. On Linux, confirm CONCENTRATE_API_KEY is set for Zed or re-enter the key in Zed’s agent settings. A 402 response means the account needs credits.Something else is wrong
Something else is wrong
Run
cn --version and cn doctor, then email the output to support@concentrate.ai.Next Steps
Concentrate CLI
Every
cn command and supported tool.Available Models
Browse the model catalog.

