Skip to content
inferamdocs
Website ↗

Editors

Zed

Use Inferam in Zed's Agent Panel, and run Claude Code and Codex as Zed agents on Inferam.

  • Zed installed. No Zed account or subscription is needed for your own models.
  • On Linux, a desktop keyring: GNOME Keyring or KWallet, which desktop Linux runs by default. Zed keeps its keys there.
  • For Claude Code and Codex inside Zed, Node.js (npx). You don’t need an Anthropic or OpenAI account.
  • The Inferam CLI. Setup signs you in if this computer isn’t signed in yet.
Terminal window
inferam setup zed

Open Zed’s Agent Panel: DeepSeek-V4.1-Flash-1017 (Inferam) is selected. Claude Code (Inferam) and Codex (Inferam) are in the panel’s + menu, next to Zed’s own agents.

Zed keeps provider keys in the system keychain, and setup saves Zed’s own key from inferam.ai/keys there, as Zed itself does:

System Where Entry
macOS Keychain Access, login keychain Internet password, where https://api.inferam.ai/v1, account Bearer. Zed is allowed to read it, so there’s no prompt.
Linux Secret Service (GNOME Keyring, KWallet), over D-Bus Labelled zed-github-account, attributes url https://api.inferam.ai/v1 and username Bearer
Windows Credential Manager → Windows Credentials zed:url=https://api.inferam.ai/v1, user Bearer

Zed’s settings file, ~/.config/zed/settings.json (%APPDATA%\Zed\settings.json on Windows). Your other settings and comments are left as they are.

{
"language_models": {
"openai_compatible": {
"Inferam": {
"api_url": "https://api.inferam.ai/v1",
"available_models": [
{
"name": "DeepSeek-V4.1-Flash-1017",
"display_name": "DeepSeek-V4.1-Flash-1017 (Inferam)",
"max_tokens": 262144,
"max_output_tokens": 32768,
"capabilities": { "tools": true, "images": true, "parallel_tool_calls": false, "prompt_cache_key": false }
}
]
}
}
},
"agent": {
"default_model": { "provider": "Inferam", "model": "DeepSeek-V4.1-Flash-1017" }
},
"agent_servers": {
"Claude Code (Inferam)": { "type": "custom", "command": "/Users/you/.local/bin/inferam", "args": ["acp", "claude"] },
"Codex (Inferam)": { "type": "custom", "command": "/Users/you/.local/bin/inferam", "args": ["acp", "codex"] }
}
}

language_models is the Agent Panel’s Inferam model, and agent.default_model selects it; --undo puts back the model you had. agent_servers are the two agents: Zed starts inferam acp claude or inferam acp codex, which run Claude Code or Codex on Inferam with this computer’s sign-in. They don’t use Zed’s key, and they don’t change Zed’s own Claude Code and Codex agents.

Zed didn’t find its key in the keychain. Check it’s there:

  • macOS: security find-internet-password -s https://api.inferam.ai/v1 -a Bearer describes the entry (without the key).
  • Linux: secret-tool lookup url https://api.inferam.ai/v1 username Bearer prints the key.
  • Windows: look for zed:url=https://api.inferam.ai/v1 in Credential Manager.

If it’s missing, run inferam setup zed again; it fails with the reason if it can’t reach the keychain. On Linux, that’s the desktop’s keyring (GNOME Keyring or KWallet) on the session bus.

Run inferam setup zed again. It replaces Zed’s key with a new one, which also fixes a key revoked on inferam.ai/keys. If Zed was open, restart it so it reads the new key.

Open the command palette and run dev: open acp logs:

  • “not signed in”: run inferam auth login in a terminal.
  • “need Node.js (npx)”: install Node.js from nodejs.org.
  • The agent’s command isn’t found: inferam moved. Run inferam setup zed again.
  • Zed’s edit predictions (inline completions) keep using their own provider.
Terminal window
inferam setup zed --undo

Removes the Inferam model and agents from Zed’s settings, puts back the model you had, deletes the key from the keychain, and revokes it.