Claude API with Cursor

Use Claude models inside Cursor through Lumosel. Set your Anthropic base URL and API key in Cursor's settings, and you get Claude Opus, Sonnet, and Haiku directly in your IDE.

Setup

  1. 1

    Create an API key

    Sign up at Lumosel, then go to your dashboard and create an API key. It starts with lumo_live_.

  2. 2

    Open Cursor settings

    In Cursor, go to Settings → Models or Cursor Settings → Models. Scroll to the Anthropic section.

  3. 3

    Set your base URL and API key

    Set the Anthropic Base URL to https://api.lumosel.vip and paste your Lumosel API key in the Anthropic API Key field.

  4. 4

    Select a Claude model

    Choose claude-opus-4-8, claude-sonnet-4.5, or claude-haiku-4.5 from the model dropdown. Cursor uses the model ID exactly as entered.

Environment variables (alternative)

Instead of setting the base URL in Cursor's UI, you can also set environment variables that Cursor reads:

export ANTHROPIC_BASE_URL="https://api.lumosel.vip"
export ANTHROPIC_API_KEY="lumo_live_..."

Cursor reads these environment variables at startup. Restart Cursor after setting them.

Which Claude models are available?

Model IDBest forInput / 1M tokOutput / 1M tok
claude-opus-4-8Most capable — complex coding, architecture$15$75
claude-sonnet-4.5Balanced — daily coding, refactoring$3$15
claude-haiku-4.5Fastest — quick edits, autocomplete$1$5

Also works with

The same setup works for any tool that uses the Anthropic API:

ClineRoo CodeopencodeZedClaude CodeVS Code (Cline extension)

Use Claude in Cursor today

Free 14-day trial. No credit card required.

Start free trial →