MorphogenDocs

Cursor and Cline

Connecting Cursor and Cline to Morphogen as an OpenAI-compatible provider.

Cursor and Cline work with any OpenAI-compatible provider. You need three values: the URL, the key and the model name.

FieldValue
Base URLhttps://api.morphogen.ru/v1
API keyyour key mg-…
Modela name from GET /v1/models, for example claude-sonnet-5

Cursor

  1. Open the Cursor settings, "Models" section.
  2. In the OpenAI API Key block, paste your Morphogen key.
  3. Turn on "Override OpenAI Base URL" and enter https://api.morphogen.ru/v1.
  4. Add the model name with the "Add Model" button and select it in the chat.

Cursor verifies the key with a request to the provider. If the check fails, make sure the URL contains /v1 and the key is not revoked.

Cline

  1. Open the Cline settings.
  2. In the "API Provider" field, select "OpenAI Compatible".
  3. In "Base URL", enter https://api.morphogen.ru/v1, and paste the key into "API Key".
  4. In "Model ID", enter a model name from GET /v1/models.

Cline can also work through the Anthropic format: select the "Anthropic" provider, turn on "Use custom base URL" and enter https://api.morphogen.ru without /v1.

Common errors

SymptomCauseWhat to do
404the URL lacks /v1 or has an extra pathenter exactly https://api.morphogen.ru/v1
404 model_not_foundthe model name is not from the catalogtake the name from GET /v1/models
403 model_not_allowedthe model is not in the key's listadd the model in the key settings
429 rate_limit_exceededthe key went over its per-minute limit (120 requests by default)wait for the time in Retry-After

Agent modes send a long history at every step, so pass a response length limit if the client supports one: that reserves less money per request.

Next

On this page