Set it up
You need a Nerdly key (it starts with sk-nerd-): sign in on the API page to get one, and add credit in Billing.
- Run zed: open settings file and add the provider to the user settings.json (~/.config/zed/settings.json, %APPDATA%\Zed\settings.json on Windows); set max_tokens to the model’s context window from /models.json1
{2"language_models": {3"openai_compatible": {4"nerdly": {5"api_url": "https://api.nerdly.us/v1",6"available_models": [7{8"name": "deepseek-v4-flash-0731",9"display_name": "deepseek-v4-flash-0731",10"max_tokens": 128000,11"capabilities": { "tools": true, "images": false, "parallel_tool_calls": false, "prompt_cache_key": false }12}13]14}15}16},17"agent": {18"default_model": {19"provider": "nerdly",20"model": "deepseek-v4-flash-0731"21}22}23} - Give Zed the key: run agent: open settings, find nerdly under LLM Providers and paste it (stored in the system keychain), or export it under the name Zed derives from the provider id.shell1
export NERDLY_API_KEY="sk-nerd-…" - Open the Agent Panel (agent: new thread) and send a message; the model selector on the message editor (cmd-alt-/ on macOS, ctrl-alt-/ on Linux and Windows) switches models.
The examples use deepseek-v4-flash-0731, the most used coding model on Nerdly today; put any id from the models page in its place.
Which model to pick
- Qwen4 35B A3B Uncensored (
qwen4-35b-a3b-uncensored): $0.48 in, $2.40 out per million tokens, 1M context, about 1.4¢ an agent step. - Ergo Uncensored (
ergo-uncensored): $4.40 in, $13.32 out per million tokens, 1M context, about $0.11 an agent step. - GLM-5.3 Abliterated (
glm-5.3-abliterated): $2.33 in, $4.66 out per million tokens, 131K context, about 5.6¢ an agent step. - DeepSeek V4 Flash 0731 (
deepseek-v4-flash-0731): $0.08 in, $0.12 out per million tokens, 1M context, about 0.19¢ an agent step. - DeepSeek V4.1 Flash 1017 (
deepseek-v4.1-flash-1017): $0.25 in, $1.20 out per million tokens, 1M context, about 0.74¢ an agent step. - Claude Opus 5.5 (
claude-opus-5-5): $2.80 in, $10 out per million tokens, 1M context, about 7.6¢ an agent step.
What a session costs
40 agent steps (20,000 tokens in and 2,000 out each) on DeepSeek V4 Flash 0731 cost about 7.4¢, paid from your balance. Every request Zed sends is priced by its tokens at the model’s rate; a cheaper model costs less, a larger one more.
Things that trip people up
- max_tokens is required on every entry and is the context window: Zed compacts a thread at 90% of it, and a window under 80,000 tokens cannot auto-compact.
- The project .zed/settings.json takes editor and language options only, so the provider goes in the user settings file.
- A non-empty environment variable wins over the keychain entry; unset it and restart Zed to stop using it.
- A model shows No tools when capabilities.tools is false, and the agent cannot edit files or run commands with it.
- Leave reasoning_effort out of the entries: with it set, Zed sends "reasoning_effort": "none" on compaction and summary requests (Zed issue #60411).
- Zed stores one key per api_url, so keep one provider block for the base URL with every id in it (issue #41585).
- The LLM Providers page changes a custom provider’s key only (issue #35461); edit the URL, ids and windows in settings.json.
- The provider in agent.default_model must be the key under openai_compatible and the model a name in its available_models, or Zed reports the provider is not configured.
Zed’s own documentation: zed.dev/docs/ai/use-api-access.
More guides
Questions.
Something else? Email hello@nerdly.us
Run Zed on any model.
Get a key, add credit from $10, and point the tool at Nerdly.
Get a key