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 file, 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+? on macOS or Ctrl+? 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 Ctrl+Enter to use the inline assistant.

Web pages

Ask the agent to read a page and it uses Zed’s fetch tool, which downloads the page on your machine. Zed asks you to approve each new site. Zed can’t add the request field that turns on Lyceum’s web search, so point the agent at the pages you want it to read.

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; take your model’s numbers from the models page.
  • 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.