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
Create an API key
Sign up at Lumosel, then go to your dashboard and create an API key. It starts with
lumo_live_. - 2
Open Cursor settings
In Cursor, go to Settings → Models or Cursor Settings → Models. Scroll to the Anthropic section.
- 3
Set your base URL and API key
Set the Anthropic Base URL to
https://api.lumosel.vipand paste your Lumosel API key in the Anthropic API Key field. - 4
Select a Claude model
Choose
claude-opus-4-8,claude-sonnet-4.5, orclaude-haiku-4.5from 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 ID | Best for | Input / 1M tok | Output / 1M tok |
|---|---|---|---|
claude-opus-4-8 | Most capable — complex coding, architecture | $15 | $75 |
claude-sonnet-4.5 | Balanced — daily coding, refactoring | $3 | $15 |
claude-haiku-4.5 | Fastest — quick edits, autocomplete | $1 | $5 |
Also works with
The same setup works for any tool that uses the Anthropic API:
Use Claude in Cursor today
Free 14-day trial. No credit card required.