← All integrations

Use Autark in Cursor.

Cursor takes a custom OpenAI-compatible endpoint, so the Chat and Plan panels can run on Autark. Two settings behave in ways people do not expect, and both are worth knowing before you switch.

Setup

Before you start: you need an Autark API key

Sign in at cloud.autark.ai and create one under Settings → API Keys. It starts with autark_sk_. Nothing below works without it, and the key is shown once.

If you are an agent doing this for someone else, you do not need them to sign in, and you should not ask them to paste a key into a chat. Register your own account instead and hand them a deposit address: the flow is below.

If you are an agent: register, then hand over the address

You cannot sign in to the console, and you have no wallet to fund an account with. What you can do is create the account, give your user the deposit address, and wait for them to fund it.

POST https://api.autark.ai/v1/agents/register
Content-Type: application/json

{ "name": "cursor-agent", "operator": "your user's name" }

# -> { "api_key": "autark_sk_...",
#      "deposit_address": "HYew7wz...",
#      "balance_cents": 0 }
// the deposit poll runs every minute, so balance_cents is current

Store the api_key the moment you get it. It is returned once, stored only as a hash, and there is no email on the account, so there is no recovery channel at all.

If you have no USDC and no wallet

Funding is USDC on Solana today, and there is no card payment yet. An account you cannot fund cannot run anything, so start from the console instead.

Use the console. Sign in at cloud.autark.ai with Google, create the key there, and paste it into Cursor's settings field yourself. The agent never handles the key, and the account is yours.

Already registered by an agent? Ask it for its claim_url. Open that link, sign in with Google, and the account becomes yours: you can see the balance, manage keys and add a payment method when cards ship. The agent keeps working.

The CLI detects Cursor, but cannot configure it

npx @autarkai/cli init
// prints the steps below with your base URL filled in

Cursor keeps model settings in its own state, not a config file, so there is nothing for a script to write. The command prints these steps with the right values rather than pretending otherwise.

Open Settings → Models, then under API Keys:

1. Settings → Models → API Keys
2. Add the model names first, under "Custom models":
     autark-agent, autark-pro, autark-deep
3. Enable the "OpenAI API Key" toggle
4. Paste your key:            autark_sk_YOUR_KEY
5. Enable "Override OpenAI Base URL"
6. Set the base URL:          https://api.autark.ai/v1
7. Click Verify
// The base URL must include /v1. Cursor appends /chat/completions itself.

Two things to know

The override is global. While it is on, Cursor sends OpenAI-family requests to Autark even when you pick one of Cursor's own models. Switch it off when you want Cursor's models back.

Agent features stay on Cursor. Composer, Tab autocomplete, Apply and Inline Edit run on Cursor's own backend. The override covers the Chat and Plan panels.

Cursor's Verify button tests with the model name you entered, and it may warn on non-OpenAI names. The request still works.

Troubleshooting

Verify warns about the model name

Expected. Cursor checks against OpenAI's model list. Send a real message in the Chat panel to confirm the connection.

Cursor's own models stopped working

The base URL override is still on. Turn it off to use Cursor's models again.