Zed Agent setup
Zed includes a native coding Agent that can inspect a project, edit files, and use tools without installing a separate extension. It supports custom OpenAI-compatible providers, making it a good lightweight graphical companion to Lumoswitch on macOS, Linux, and Windows.
Create a Lumoswitch API configuration with OpenAI-compatible output first. Choose a model with reliable native tool calling; chat-only compatibility is not enough for Agent mode.
Choose a setup method
| Method | Available? | Notes |
|---|---|---|
| One-time launch | No | Zed reads provider metadata from shared JSONC settings and stores the Key in the OS keychain |
| Persistent use | Yes | Add one named provider and save its Key through Zed's Agent settings |
| Removal | Yes | Remove only that provider and Key; keep unrelated editor and Agent settings |
Lumoswitch does not publish an automatic terminal import for Zed. Rewriting a shared JSONC file could discard comments or existing providers, while a shell command cannot safely manage Zed's system-keychain entry across platforms.
Prepare the connection values
| Placeholder | Value |
|---|---|
{{api_base_url}} | The downstream API URL, including /v1 |
{{access_key}} | The Lumoswitch Access Key selected for this configuration |
{{model}} | The client-facing model name shown by the API configuration |
Recommended setup in Zed
- Open the Agent Panel, then open Agent Settings.
- Under LLM Providers, add an OpenAI Compatible provider.
- Use
lumoswitchas the provider ID and enter{{api_base_url}}as its API URL. - Add
{{model}}as an available model. Set its context window to the real limit exposed by the selected upstream model. - Enter
{{access_key}}when Zed asks for the provider API Key. Zed saves it in the system keychain rather thansettings.json. - Select Lumoswitch ·
{{model}}from the model picker and test a small file-reading or edit request.
Provider IDs matter: Zed derives the optional environment variable name from the ID. With lumoswitch, the corresponding variable is LUMOSWITCH_API_KEY. Saving the Key through the UI is recommended because graphical applications do not consistently inherit terminal environment variables.
Optional JSONC settings
If the provider editor is unavailable in your Zed version, open agent: open settings from the command palette and merge the following properties into the existing JSONC object:
{
"language_models": {
"openai_compatible": {
"lumoswitch": {
"api_url": "{{api_base_url}}",
"available_models": [
{
"name": "{{model}}",
"display_name": "Lumoswitch · {{model}}",
"max_tokens": 128000,
"capabilities": {
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false,
"chat_completions": true,
"interleaved_reasoning": false,
},
},
],
},
},
},
"agent": {
"default_model": {
"provider": "lumoswitch",
"model": "{{model}}",
},
},
}Replace 128000 and the capability flags with the real model limits. Do not replace the entire settings file: it may contain themes, key bindings, other providers, and comments. Zed stores user settings at ~/.config/zed/settings.json on macOS/Linux and %APPDATA%\Zed\settings.json on Windows.
For a Responses-only Lumoswitch configuration, set chat_completions to false. Keep it true for the OpenAI-compatible Chat Completions setup described on this page.
Remove the setup
- Open Zed's Agent settings and remove the
lumoswitchprovider. - If the Agent default still points to it, select another model or remove only the matching
agent.default_modelentry. - Clear the saved
lumoswitchprovider Key through Zed's provider credentials UI.
Do not delete the whole Zed settings file or application data directory. That would remove unrelated editor preferences and may still leave a credential in the system keychain.
Verify and troubleshoot
- A
401usually means the Key was not saved for the exactlumoswitchprovider ID. - For
404, check for a duplicated/v1and confirm that{{model}}is the client-facing model name. - If chat works but edits fail, verify native tool-calling support and the
toolscapability. - Remote projects still use the provider configuration and credentials initialized by the local Zed application.
References: Zed API access, Zed Agent, and Zed settings. Last verified: 2026-08-23.
Maintainer publication fields
- Platform ID:
zed - Display name:
Zed Agent - Downstream protocol:
openai-compatible - Temporary publication: disabled; Zed uses persistent JSONC provider metadata and system-keychain credentials
- Persistent publication: disabled; merging shared JSONC and editing cross-platform keychains is intentionally left to Zed
- Display order:
88 - Last verified:
2026-08-23