This requires a Cursor plan that allows your own API keys. The Plus plan and the free tier don’t. Cursor also only routes its Ask / chat panel to custom OpenAI models: Agent, Composer, Tab completion, and the cloud agents stay on Cursor’s own models. For a full agentic coding workflow on Lyceum models, use Claude Code.
Setup
In the Cursor desktop app, open Cursor Settings (Cmd+Shift+J) and go to Models, then scroll to API Keys:
- Under Model Names, add a Lyceum model ID, for example
z-ai/glm-5.2. - In OpenAI API Key, paste your Lyceum key (
lk_...). Get it from the dashboard. - Enable Override OpenAI Base URL and set it to the value below.
- Click Verify. Cursor sends a test request using your first custom model, so the model ID has to be valid before this succeeds.
Web search
Cursor can’t add the request field that turns on Lyceum’s web search. For web search with Lyceum models, use Codex, where it works with nothing to set up.Models
Add any model ID from the serverless catalog. Common choices:z-ai-glm-5.2).
Troubleshooting
“Model name is not valid” / “AI Model Not Found.” You are in the Agent or cloud-agent surface, which does not support custom OpenAI models. Use the Ask / chat panel instead, and make sure the base URL override is verified in Settings. Verify fails or times out. Confirm the base URL is exactlyhttps://api.lyceum.technology/openai/v1 (including the /v1 suffix, with no trailing /chat/completions) and that the API key is a valid lk_ key from the dashboard.