# How to use Claude Code in Cursor

> Use AutoRouter, the Mac app for all your coding agents, to run your Claude plan inside Cursor's own Agent: connect the plan, enable Cursor and restart it, and new chats start on AutoRouter. To run Claude Code itself in Cursor, install Anthropic's Claude Code extension from Cursor's Extensions view, or run `claude` in Cursor's terminal, and sign in with your Claude account; it runs on your Claude plan with no API key. Without either, Cursor's Agent bills Claude models from prepaid credit at API list price.

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-24T21:15:00.000Z
Reading time: 7 min
Canonical: https://autorouter.com/blog/claude-code-in-cursor
Publisher: AutoRouter (https://autorouter.com)

![AutoRouter puts your Claude plan in Cursor's Agent. Where do you want Claude? In Cursor Claude Code's panel: Extension, on your Claude plan; In Cursor Cursor's own Agent: Prepaid credit at API price; In Cursor Agent, on your plan: AutoRouter, Claude plan connected. Source: Anthropic's Claude Code docs, Cursor's pricing docs and AutoRouter, read November 20, 2026.](https://autorouter.com/blog/images/claude-code-in-cursor/1-routes.png)

[AutoRouter, the Mac app for all your coding agents](https://autorouter.com) runs your Claude plan inside Cursor's own Agent: connect the plan in AutoRouter, enable Cursor and restart it, and new chats start on AutoRouter, with no API key. To run Claude Code itself in Cursor, install Anthropic's Claude Code extension, which Anthropic lists for Cursor next to VS Code ([Anthropic](https://code.claude.com/docs/en/vs-code)), and sign in with your Claude account, or run the `claude` CLI in Cursor's terminal. Either one runs on your Claude plan. Cursor's own Agent doesn't take a Claude subscription: it bills Claude models from prepaid credit at API list price, on Premium and above ([Cursor](https://cursor.com/docs/models-and-pricing)).

AutoRouter wrote this post. Every Cursor and Anthropic detail below comes from their docs and pricing pages as read on November 20, 2026; check the linked page before you paste a command.

## How do you install Claude Code in Cursor?

Install the Claude Code extension from Cursor's Extensions view and sign in. Anthropic publishes it to the Visual Studio Marketplace and the Open VSX Registry, and its docs link an **Install for Cursor** button ([Anthropic](https://code.claude.com/docs/en/vs-code)).

1. Open the Extensions view with `Cmd+Shift+X`, search for "Claude Code" and click **Install**, or use **Install for Cursor** on [Anthropic's VS Code page](https://code.claude.com/docs/en/vs-code).
2. Open a file and click the Spark icon in the editor toolbar. The Spark icon in the Activity Bar and **Claude Code** in the status bar open it too, even with no file open.
3. Click **Sign in** and finish in your browser. Any paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account works, and no API key is needed.
4. If the extension doesn't appear, run **Developer: Reload Window** from the Command Palette.

![Claude Code installs in Cursor in four steps. 1. Install the extension (Cursor's Extensions view); 2. Click the Spark icon (Editor toolbar); 3. Sign in (Your Claude account); 4. Claude plan runs it (No API key). Source: Anthropic's Claude Code VS Code docs, read November 20, 2026.](https://autorouter.com/blog/images/claude-code-in-cursor/2-install.png)

The extension bundles its own copy of the CLI for its panel. To run `claude` in Cursor's integrated terminal as well, install the standalone CLI ([Anthropic](https://code.claude.com/docs/en/setup)):

```bash
curl -fsSL https://claude.ai/install.sh | bash
claude
```

The extension and the CLI share `~/.claude/settings.json` and their conversation history, so `claude --resume` in the terminal picks up a conversation you started in the panel ([Anthropic](https://code.claude.com/docs/en/vs-code)).

## Does Claude Code in Cursor use your Claude plan?

Yes. Claude Code signs in with your Claude account wherever it runs, so requests from the extension or the CLI in Cursor count against your Claude plan's limits, as they would in a plain terminal. As of November 20, 2026, Claude Pro costs $20 a month ($17 a month billed annually), Max $100 and Ultra $200 ([Anthropic](https://claude.com/pricing)).

Cursor's own Agent is billed differently. Its plans include a weekly pool for Cursor's own models; Claude, GPT and Gemini are third-party models that bill at API list price from prepaid credit from the first request on Premium ($30 a month) and above, and Free and Plus don't include them ([Cursor](https://cursor.com/docs/models-and-pricing)). You can also add an Anthropic API key in Cursor's settings, billed per token by Anthropic; [How to use your own API key in Cursor](/blog/cursor-api-key) covers that route. Neither one draws on a Claude subscription.

## How do you use your Claude plan in Cursor's own Agent?

Connect the plan in AutoRouter and enable Cursor. In Cursor, AutoRouter uses the plans you connect in AutoRouter, and other models run on credits:

1. Download AutoRouter for macOS from [autorouter.com](https://autorouter.com).
2. Open it, sign in or create a free account, and sign in to your Claude plan and the other AI subscriptions you already pay for.
3. Allow Accessibility and click Enable on Cursor's row.
4. Click Restart on AutoRouter's notice. New Cursor chats start on `autorouter`; you can also pick one of AutoRouter's Claude models yourself in the model picker.

![Your Claude plan, inside Cursor's own Agent. 1. Connect your Claude plan (In AutoRouter); 2. Enable Cursor (In AutoRouter's setup); 3. Pick a model (AutoRouter or a Claude model); 4. Claude plan runs it (Model and cost shown). Source: AutoRouter setup and FAQ, read November 20, 2026.](https://autorouter.com/blog/images/claude-code-in-cursor/3-agent.png)

Cursor support is experimental. It covers Chat and Agent; Tab, Cursor's Auto, cloud agents and the Cursor CLI stay on Cursor. While it's on, Cursor's own named models stop working, because Cursor's API key setting covers every model; Cursor's Auto keeps working. Turning Cursor off in AutoRouter puts your earlier settings back ([AutoRouter for Cursor](https://autorouter.com/integrations/cursor)).

Choosing a specific model sends your requests straight to it. Choose AutoRouter instead and it works out how hard each task is and sends it to the model that fits: hard work goes to the most capable model your plans cover, and quick work to the model that costs you least, which is often your plan or a low-cost open model. Every request shows its model, what it cost and why. [How AutoRouter picks a model](/blog/how-autorouter-picks-a-model) covers the rules, and [Which model to use for which coding task](/blog/which-model-for-which-task) covers which work needs which model.

Your connected plans work in every app you enable. If you also run the Claude Code CLI in Cursor's terminal, enable Claude Code in AutoRouter and pick AutoRouter or another model with `/model`; a connected ChatGPT plan runs there too. [How to use Claude in Codex and GPT in Claude Code](/blog/claude-in-codex-and-gpt-in-claude-code) covers the plan in the other direction; for a ChatGPT plan in Cursor, see How to use Codex in Cursor, and How to choose and change models in Codex and Claude Code covers the wider lineup. Disabling an app in AutoRouter's settings switches it back.

## What does each way of using Claude in Cursor cost?

Only the Claude Code routes and AutoRouter draw on a Claude plan. As of November 20, 2026:

| Route                          | Where it runs                                     | What pays                                                        |
| ------------------------------ | ------------------------------------------------- | ---------------------------------------------------------------- |
| Claude Code extension          | Its own panel in Cursor                           | Your Claude plan, from $20 a month                               |
| `claude` CLI                   | Cursor's terminal                                 | Your Claude plan                                                 |
| Claude model in Cursor's Agent | Cursor's Agent                                    | Cursor prepaid credit at API list price, Premium ($30) and above |
| Your Anthropic API key         | Cursor's Agent                                    | Your Anthropic account, per token; not on Plus                   |
| AutoRouter                     | Cursor's Chat and Agent, and every app you enable | Your connected plans; $0 on Free for two subscriptions           |

AutoRouter Free costs $0 a month and connects two subscriptions, and routing across your own subscriptions is free. [Pro](/pricing) connects any number and adds every other model, billed at the provider's price plus 10%. When one account reaches its limit, AutoRouter moves on to the account with the most room left, before it spends any credit. AutoRouter earns nothing on plans.

The limits: AutoRouter runs on macOS 14 or later and is in beta. Requests pass through AutoRouter's servers on their way to each provider; AutoRouter doesn't store transcripts, but keeps the message that opens each request, up to 4,000 characters, to review routing, along with records of the model chosen, tokens and cost ([AutoRouter privacy](https://autorouter.com/privacy)). Claude Code needs Node 22.18 or later to use AutoRouter.

## Should you use the extension or Cursor's Agent?

- **Use the Claude Code extension** if you want Claude Code itself beside your editor, with its plan review and inline diffs, on your Claude plan.
- **Use Cursor's Agent with AutoRouter** if you prefer Cursor's own agent and want your Claude plan, and the other AI subscriptions you pay for, to pay for it, with a model picked for each task.
- **Use both** if you like each for different work. The extension and Cursor's Agent run side by side, and AutoRouter shares one set of plans across every app you enable.

[Cursor vs Claude Code](/blog/cursor-vs-claude-code) compares the two tools themselves, including what each plan costs.

## Questions

### Can I use my Claude subscription in Cursor?

Yes, two ways. Claude Code's extension or CLI runs inside Cursor on your Claude plan, and AutoRouter runs the plan in Cursor's own Agent. Cursor itself doesn't list a Claude subscription as a way to pay; its Agent bills Claude models from prepaid credit ([Cursor](https://cursor.com/docs/models-and-pricing)).

### Why don't I see the Spark icon in Cursor?

The Spark icon in the editor toolbar shows only while a file is open. Click the Spark icon in the Activity Bar or **Claude Code** in the status bar instead, and if neither appears, run **Developer: Reload Window** ([Anthropic](https://code.claude.com/docs/en/vs-code)).

### Does Cursor Tab use my Claude plan?

No. Cursor's docs say Tab completion keeps using Cursor's built-in models even when you add your own API key ([Cursor](https://cursor.com/help/models-and-usage/api-keys)), and the Claude Code extension works in its own panel without changing Tab.

### What happens when my Claude plan runs out?

In Claude Code, past a limit you can switch on usage credits at API rates or wait for the reset ([Anthropic](https://support.claude.com/en/articles/12429409-manage-usage-credits-for-paid-claude-plans)). With AutoRouter, a request moves on to the connected account with the most room left before it spends any credit, and on Pro it keeps going from the monthly usage until the plan resets.

## Sources

- [AutoRouter](https://autorouter.com)
- [AutoRouter privacy](https://autorouter.com/privacy)
- [Use Claude Code in VS Code](https://code.claude.com/docs/en/vs-code), Anthropic, read November 20, 2026
- [Set up Claude Code](https://code.claude.com/docs/en/setup), Anthropic, read November 20, 2026
- [Plans and pricing](https://claude.com/pricing), Anthropic, read November 20, 2026
- [Manage usage credits](https://support.claude.com/en/articles/12429409-manage-usage-credits-for-paid-claude-plans), Anthropic
- [Models & Pricing](https://cursor.com/docs/models-and-pricing), Cursor, read November 20, 2026
- [Bring your own API key](https://cursor.com/help/models-and-usage/api-keys), Cursor

## Read next

- [How to use Codex in Claude Code](https://autorouter.com/blog/codex-in-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, to run GPT as Claude Code's own model on your ChatGPT plan: connect the plan, enable Claude Code, and pick a GPT model or AutoRouter with `/model`. To call Codex itself from Claude Code, install OpenAI's Codex plugin with `/plugin marketplace add openai/codex-plugin-cc` and `/plugin install codex@openai-codex`, run `/codex:setup`, then use `/codex:review` for a second review or `/codex:rescue` to hand off a task. The plugin runs on your ChatGPT plan's Codex limits or an OpenAI API key.
- [Cursor vs Claude Code: which to use, and how to use both](https://autorouter.com/blog/cursor-vs-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, to use both: it works with Claude Code and with Cursor, puts 20+ models in Claude Code's /model, and pools the AI subscriptions you already pay for. Cursor is an AI code editor with its own agent and plans from $8 a month, where Claude and GPT models cost extra at API prices. Claude Code is Anthropic's coding agent, included in Claude plans from $20 a month.
- [How to use MiniMax in Claude Code and Codex](https://autorouter.com/blog/minimax-in-claude-code-and-codex.md): Use AutoRouter, the Mac app for all your coding agents: it puts MiniMax M3.1 Flash in each one's model picker (Claude Code, Codex, Cursor, etc.) with no MiniMax key or config. Natively, set Claude Code's `ANTHROPIC_BASE_URL` to `https://api.minimax.io/anthropic` with your M Plan key and `MiniMax-M3.1-Flash[1m]` model variables in `~/.claude/settings.json`, and add `https://api.minimax.io/v1` as a provider in Codex's `config.toml`.

Tags: [Guides](https://autorouter.com/blog/tags/guides.md), [Claude Code](https://autorouter.com/blog/tags/claude-code.md), [Costs](https://autorouter.com/blog/tags/costs.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.

AutoRouter is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://autorouter.com/setup.md) and [pricing](https://autorouter.com/pricing).
