Skip to main content
Zed has a built-in agent panel that accepts OpenAI-compatible providers.

Configure

Open settings.json with cmd-shift-p → zed: open settings, and add: Then set the API key. Zed asks for keys in the UI rather than in settings.json. Open the agent panel, choose the lyceum provider, and paste your key. Zed also accepts it from the environment:
Do not put your API key in settings.json. Zed’s own docs advise against it, and the file is commonly committed to dotfile repos.

Using it

Open the Agent Panel with Cmd+Shift+A on macOS or Ctrl+Shift+A on Linux. The agent can edit files across the project, run terminal commands, and search the codebase. For a quick edit in place, select some code and press Cmd+Enter on macOS or Ctrl+Enter on Linux to use the inline assistant.

Notes

  • api_url is the base, without /chat/completions. Zed appends that itself.
  • max_tokens is the context window, max_output_tokens is the reply cap. Values above are safe defaults; check active models for your model.
  • tools: true is required for the agent panel to edit files.
  • Add more entries to available_models to switch models from Zed’s model picker.