This requires a paid Cursor plan. The custom OpenAI key and base-URL override are not available on Cursor’s free tier. 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 + ,) 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:
- Click Verify. Cursor sends a test request to the endpoint using your first custom model, so the model ID has to be valid before this succeeds.
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/api/v2/external/serverless (no trailing /v1, no /chat/completions) and that the API key is a valid lk_ key from the dashboard.
