Cursor

MafiaLLM models in Cursor’s chat and agent, through its OpenAI settings.

Setup

  1. Open Cursor Settings → Models (API Keys section).
  2. Enable OpenAI API Key and paste your key.
  3. Enable Override OpenAI Base URL and set it to https://api.mafiallm.com/v1.
  4. Add Custom Model with its ID prefixed by mafiallm/, for example mafiallm/claude-sonnet-5-5 or mafiallm/glm-5.3, then enable it.
  5. Pick it in the model menu of a new chat.

Note: Why the mafiallm/ prefix: Cursor chooses how to call a model from its name. A name starting with claude- is sent to Anthropic’s key slot, and gpt-… names get a request body that doesn’t match the URL Cursor sends it to. With the prefix, every model goes through your OpenAI settings; MafiaLLM removes it.

What works

Feature With MafiaLLM models
Chat (Ask) Yes.
Agent Yes, in a new chat after enabling the model.
Tab completion No: Cursor always uses its own model for it.

Good to know