Cursor Custom OpenAI Base URL: Connect QCode Step by Step

Follow 7 Windows 11 screenshots and step-by-step post-login instructions to install Cursor 3.31.15 on Windows or macOS and configure QCode's custom Base URL and cr_ API key for Claude, GPT, and Chinese models in Chat and Composer.

Updated 2026-11-29

Need an API key? Sign up →Endpoints & base URLs →

On This Page

Follow the 12 steps below to install Cursor on Windows 11 or macOS and enter QCode's custom ingress address and cr_ key in settings, so you can call Claude, GPT, and Chinese models in Chat, Composer, and Inline Edit.

Short answer: After installing and signing in to Cursor 3.31.15, open Cursor Settings → Models. Under Anthropic API, enter your QCode key and turn on Override Anthropic Base URL with https://api.qcode.cc/api (while leaving the OpenAI override turned off) to use Claude; or use OpenAI API and turn on Override OpenAI Base URL with https://api.qcode.cc/openai/v1 to use GPT and Chinese models.

Item Fill in
Endpoint address (Claude / Anthropic) https://api.qcode.cc/api
Endpoint address (GPT & Chinese models / OpenAI) https://api.qcode.cc/openai/v1
Settings path Cursor Settings → Models
Key format cr_xxxxxxxx
Common model examples claude-sonnet-5-5 or gpt-6.2-sol

Checked on 2026-11-22 · Cursor 3.31.15 · Windows 11

Cursor is a VS Code-based AI code editor that lets you bring your own API key and override the Base URL in settings. Starting with Cursor 3.31, you must sign in to your own Cursor account on first launch; once signed in, you can enter your QCode key and endpoint address in the Models settings.

Keep in mind that when using your own API key, Chat, Composer, and Inline Edit go through the QCode endpoint you configure, but requests still pass through Cursor's backend for prompt building, and Cursor Tab completion continues using Cursor's built-in models.

  • Applies to: Windows 10 / 11 (64-bit) and macOS; the screenshots were taken on Windows 11
  • Software version: Cursor 3.31.15 (User Setup)
  • Screenshots updated: 2026-11
  • Time needed: 15 minutes
  • You will need: a QCode API key starting with cr_; your own Cursor account; access to cursor.com/download

On a Mac? Follow the same steps. The screenshots were taken on Windows 11, and Cursor on macOS has the same screens and settings. Download the macOS version from the same official page, press ⌘ Cmd wherever a step says Ctrl, and find the app's menus in the menu bar at the top of the screen.

  • The PC runs Windows 10 / 11 (64-bit) or macOS: pick x64 for standard Intel / AMD processors, or ARM64 for ARM laptops
  • You have your own Cursor account ready or can sign up for one (starting with Cursor 3.31, first launch requires signing in before you can access settings and chat)
  • You have already signed up on QCode.cc and copied your cr_ API key from the Dashboard. No account yet? Sign up for QCode first, pick a plan on the pricing page, then create a key in the Dashboard.
  • The PC can reach cursor.com/download, qcode.cc, and api.qcode.cc (users in mainland China can switch the ingress domain to asia.qcode.cc)
  • Set aside about 15 uninterrupted minutes; the installer is about 201 MiB, and the User installer requires no administrator privileges at any step

Download and install

Cursor ships as a standalone Windows desktop installer — it does not require Node.js or npm. The official download page is https://cursor.com/download.

Under the Windows column on the download page, you will see four installer packages:

  • Windows (x64) (User) (best choice for most PCs): for standard 64-bit Intel / AMD PCs, with a filename like CursorUserSetup-x64-3.31.15.exe (about 201 MiB). It installs into the current user's directory %LOCALAPPDATA%\Programs\cursor without prompting for administrator privileges.
  • Windows (x64) (System): installs to the system directory for all users on the machine and requires administrator privileges.
  • Windows (ARM64) (User) / Windows (ARM64) (System): for Windows on ARM machines only.

Access to the official download page varies slightly by region — pick your region first:

Europe / Japan

  • Open cursor.com/download directly, then choose Windows (x64) (User) under Windows to download and install.
  • Use the default api.qcode.cc when configuring QCode, or choose us.qcode.cc / asia.qcode.cc based on your location.

Mainland China

  • Open cursor.com/download and download Windows (x64) (User).
  • If cursor.com loads slowly or fails to open occasionally, refresh a few times or visit www.cursor.com first before going to the download page; the direct installer link usually downloads normally.
  • After installing, switch the QCode ingress domain to the Asia node asia.qcode.cc when configuring Cursor (the same key works across all nodes).

Arab countries

  • Open cursor.com/download directly, then choose Windows (x64) (User) under Windows to download and install.
  • Use the default ingress domain api.qcode.cc when configuring QCode.

Russia / Iran

  • Open cursor.com/download to check whether the installer can be downloaded.
  • Note that in some regions signing in to or using the Cursor app may show Cursor is not available in your region. If Cursor cannot sign in or run in your region, use another client that supports a custom Base URL (such as Claude Code, Cline, or Zed) to connect to QCode.

Follow the screenshots: Windows 11 install and setup

The 12 steps below each do one thing. Steps 1–7 walk through downloading, installing, and confirming sign-in with real screenshots, where the orange numbers on the screenshots match ①②③ in the text one to one. Once you have signed in to your own Cursor account, follow the text instructions in steps 8–12 to enter your QCode key and Base URL and start chatting.

Open the official download page and pick Windows (x64) (User)

Open cursor.com/download in a browser and scroll down to the version list. First check ① to confirm the version is 3.31 (Latest), then find Windows (x64) (User) marked at ② under the Windows column and click it to start downloading. Pick x64 for standard 64-bit Intel / AMD PCs or ARM64 for ARM64 machines; the User edition installs into your user folder with no administrator privileges required.

Official Cursor download page cursor.com/download: left side shows version 3.31 Latest (1), and the Windows column highlights the Windows (x64) (User) download link (2)

Done right you will see: after clicking Windows (x64) (User), the browser's top-right download icon starts spinning and an .exe file begins downloading.

Stuck? The download page will not open or loads slowly

If cursor.com occasionally times out on your connection, refresh the page to retry, or visit www.cursor.com first and navigate to the download page from there; once you reach the direct installer link it usually downloads fine.

Wait for the installer to finish downloading and open it

The installer is about 201 MiB, so give it a minute or two to finish. Press Ctrl + J to open the browser's downloads panel, verify at ① that the filename is CursorUserSetup-x64-3.31.15.exe (the trailing patch number may increment with newer releases), then click 打开文件 (Open file) below it to launch the setup wizard.

Browser downloads panel showing the completed installer CursorUserSetup-x64-3.31.15.exe (1) and the Open file link underneath

Done right you will see: the download progress bar disappears, and the panel shows the full CursorUserSetup-x64-3.31.15.exe filename with the 打开文件 (Open file) link.

Stuck? "Windows protected your PC" pops up when opening the installer

This is a standard Windows SmartScreen warning for newly downloaded installers. Once you have confirmed the installer came from the official cursor.com download page, click More info in the dialog and then click Run anyway to open the setup wizard.

Follow the wizard to Ready to Install and click Install

When the 安装 - Cursor (User) (Setup - Cursor (User)) wizard opens, select 我同意此协议(A) (I accept the agreement) on the license page, then click 下一步(N) (Next) through the destination location, Start Menu folder, and additional tasks pages with the default options until the top ① reads 准备安装 (Ready to Install). Check ② to confirm the destination path is inside your current user folder (C:\Users\…\AppData\Local\Programs\cursor), then click ③ 安装(I) (Install) at the bottom right.

Cursor Chinese setup wizard Ready to Install screen: top heading reads Ready to Install (1), destination path points to the current user folder AppData\Local\Programs\cursor (2), and the Install button is at the bottom right (3)

Done right you will see: clicking 安装(I) (Install) advances automatically to the installing progress bar with no administrator prompt, and finishes within a few dozen seconds.

Stuck? No destination-folder page appeared after accepting the license

If Cursor was installed on this PC before, the setup wizard remembers the previous path and jumps straight to Ready to Install after you accept the agreement. This is normal — check the destination location and click 安装(I) (Install) directly.

Finish setup and let Cursor launch automatically

Once the progress bar completes, the right side of the wizard ① shows Cursor 安装完成 (Completing the Cursor Setup Wizard). 运行 Cursor (Launch Cursor) is checked by default near the bottom, so click ② 完成(F) (Finish) at the bottom right to exit the wizard and launch Cursor automatically.

Final page of the Cursor setup wizard: shows Cursor installation complete (1), Launch Cursor checked by default, and the Finish button highlighted at the bottom right (2)

Done right you will see: the setup wizard closes, and a few seconds later a window titled Cursor Agents opens automatically on the desktop.

First launch: sign in to your own Cursor account

Starting with Cursor 3.31, first launch requires signing in to your own Cursor account. The screen shows only two buttons — ① Log In and ② Sign Up — with no skip option. Click ① Log In if you already have a Cursor account, or ② Sign Up to create one, then finish signing in or registering in the browser page that opens and authorize it to return to the app.

Cursor 3.31.15 first-launch sign-in screen: shows only the blue Log In (1) and Sign Up (2) buttons with no skip option

Done right you will see: after the browser completes authorization and redirects back to Cursor, the sign-in screen disappears and the main workspace opens so you can access settings and the chat panel.

Stuck? Browser sign-in did not redirect back to Cursor automatically

Check below the browser's address bar for an "Open Cursor?" confirmation prompt and allow it to jump back. If it still does not return automatically, click the reopen link on the web sign-in confirmation page, or switch back to the Cursor window and click Log In once more.

Confirm the login gate is cleared in the editor workspace

If you open a project folder before signing in, the editor workspace is still covered by a login gate: ① Log In and ② Sign Up appear in the center, and ③ at the bottom states Cursor's AI features require you to be logged in. If you see this screen, click ① Log In or ② Sign Up to sign in first — once the gate clears, you can open Models settings to enter your QCode key and Base URL.

Opening a project folder while signed out shows the workspace covered by a login gate: Log In (1) and Sign Up (2) in the center, and the notice Cursor's AI features require you to be logged in at the bottom (3)

Done right you will see: after signing in, the login gate disappears and you can see the file tree on the left, the code editor in the middle, and the chat panel on the right.

Check your Cursor version number

In any Cursor editor window, press F1 to open the Command Palette, type About, and click Help: About to open the version dialog. At ① you can see Version 3.31.15 (user setup) and the build date. Confirm the version is newer than 3.15.6 (avoiding the earlier input-focus bug), then click OK to close the dialog.

Version dialog opened via F1 and Help: About in the editor, highlighting Version 3.31.15 (user setup) (1)

Done right you will see: the dialog clearly lists Version 3.31.15 (user setup) (or a newer version), confirming you are running the latest User installer build.

Open Cursor Settings → Models

Once you are signed in and in the main workspace, press Ctrl + , (Cmd + , on macOS), or press F1 and select Cursor Settings: Models to open the settings page. Click Models in the left sidebar and scroll down to the API Keys section, where you will find the Anthropic API and OpenAI API configuration areas.

Done right you will see: the right-hand settings pane displays the Anthropic API Key and OpenAI API Key input fields, along with the Override Anthropic Base URL and Override OpenAI Base URL toggles directly below them.

Enter your QCode API key

The same QCode API key starting with cr_ works on both protocol endpoints (placeholder format: cr_xxxxxxxx). Paste your key into the matching field for the models you want to use, make sure there are no leading or trailing spaces, and click Save if a save button appears beside the field:

  • For Claude models (Anthropic protocol): paste into Anthropic API Key;
  • For GPT or Chinese models (OpenAI protocol): paste into OpenAI API Key.
Need an API key?

If you do not have a QCode account yet, Sign up first. If you prefer to pay by usage, buy a Pay-as-you-go Pack first, then create the key in the Dashboard. Copy the whole string that starts with cr_ and paste it back above. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.

Done right you will see: the key field shows a long row of masked dots or asterisks, with no format error message on screen.

Turn on the Override toggle and enter the QCode Base URL

Turn on the Override toggle for the section you chose and enter the matching address (with no trailing slash /):

  • For Claude models: turn on Override Anthropic Base URL and enter https://api.qcode.cc/api. At the same time, make sure Override OpenAI Base URL is turned off and left empty — when both overrides are enabled simultaneously, Cursor routes Claude traffic to the OpenAI endpoint as well and fails with a 422 error.
  • For GPT or Chinese models: turn on Override OpenAI Base URL and enter https://api.qcode.cc/openai/v1.
  • Optional regional ingress: in mainland China you can replace the hostname with asia.qcode.cc (for example https://asia.qcode.cc/api or https://asia.qcode.cc/openai/v1), and in North America / Europe you can use us.qcode.cc; the same key works on all of them.
Stuck? Cannot click into the Base URL input box

Earlier versions (such as 3.15.6) had a known regression where mouse clicks could not focus the input box. Upgrade to 3.31.15 or newer first; if you still run into it, turn on the corresponding Override toggle and press the Tab key on your keyboard to move focus into the address field, then paste.

Done right you will see: the matching Override toggle is switched on, the input box contains the exact https://api.qcode.cc/api or https://api.qcode.cc/openai/v1 address with no trailing /, and if you are using Claude, the OpenAI Override toggle stays off with an empty field.

Add and check models, then click Verify to test connectivity

Scroll back up to the Models list and check the models you want to use. If a model is not listed, click + Add model, type its exact model ID (case-sensitive, no extra spaces), and check it:

  • Claude (Anthropic endpoint): such as claude-opus-5-5, claude-sonnet-5-5, or claude-haiku-5-5;
  • GPT / Chinese models (OpenAI endpoint): such as gpt-6.2-sol, gpt-6.2-astra.

Once selected, click the Verify button next to the API key to test connectivity.

Stuck? Clicking Verify shows API key not valid or fails

Check three things in order: whether the key is complete, starts with cr_, and has no leading or trailing spaces; whether the Base URL has an extra trailing / (or whether the OpenAI path is missing /v1); and whether the chosen model matches the enabled endpoint (Claude must use /api, while GPT and Chinese models use /openai/v1).

Done right you will see: clicking Verify succeeds without API key not valid or other errors, and your custom API key and endpoint show as active.

Open Chat and send your first message to verify

Return to the main editor window and press Ctrl + L (Cmd + L on macOS) or click the chat icon in the top right to open the Chat panel. In the model dropdown below the input box, select the model you just enabled (such as claude-opus-5-5 / claude-sonnet-5-5 or gpt-6.2-sol), type Hello, and press Enter to send.

Stuck? The newly added model ID does not appear in the model dropdown

Go back to Cursor Settings → Models, confirm the model was both added accurately via + Add model (case-sensitive, no extra spaces) and checked as enabled, then quit and restart Cursor completely so the list refreshes.

Done right you will see: your Hello message appears in the Chat panel, a complete reply from that model arrives within a few seconds, and the active model name matches the model ID you added. To double-check that the request went through QCode, open probe.qcode.cc, paste the same key, and run a lookup — a 200 record matching the timestamp of your chat will appear at the top of the list.

Verify it works

When all three of these are true, Cursor is connected to QCode:

  • Cursor 3.31.15 is installed and signed in to your personal Cursor account, with no login gate blocking the main workspace;
  • Your QCode key and matching Base URL are saved in Cursor Settings → Models, and clicking Verify succeeds without API key not valid;
  • Sending Hello to your enabled Claude or GPT model in Chat (Ctrl + L) gets a normal reply (and a matching 200 request record appears on probe.qcode.cc).

All done

Cursor is now installed on this Windows 11 PC and connected to QCode, ready to use Claude, GPT, and Chinese models in Chat, Composer, and Inline Edit. From here you can:

Common errors

Error message Why What to do
Cursor's AI features require you to be logged in You are not signed in to a Cursor account, so a login gate blocks the workspace and prevents opening Models settings or chatting Click Log In (or Sign Up to register) in the current window to sign in to your Cursor account; once the gate clears, press Ctrl + , to open Models and enter your QCode key and Base URL
API key not valid The key is incomplete or has leading/trailing spaces, or the Base URL is wrong (such as an extra trailing / or missing /v1 on the OpenAI path) Verify you entered a complete QCode API key starting with cr_ with no stray spaces; check the Base URL (https://api.qcode.cc/api for Anthropic, https://api.qcode.cc/openai/v1 for OpenAI, with no trailing slash), then click Verify again
model_not_available_on_endpoint A claude-* model was called through the OpenAI endpoint (/openai/v1), or you entered a model QCode does not offer (such as Gemini or gpt-6-luna) For Claude models, use Anthropic API, set Override Anthropic Base URL to https://api.qcode.cc/api, and clear and turn off Override OpenAI Base URL; use /openai/v1 for GPT and Chinese models
Cursor is not available in your region Your location is restricted on Cursor's side This restriction comes from Cursor itself and cannot be bypassed with a QCode key; to keep using QCode, switch to another client that supports a custom Base URL (such as Claude Code, Cline, or Zed)

FAQ

Why do I have to sign in to a Cursor account before opening Cursor?

Starting with Cursor 3.31, first launch requires signing in to your own Cursor account with no skip option; even opening a local project folder directly shows a login gate with Cursor's AI features require you to be logged in. Sign in to your Cursor account first, and once you enter the main workspace you can configure your QCode key and Base URL in Cursor Settings → Models.

What should I do if Cursor reports "API key not valid"?

  1. Make sure the QCode API key you entered is complete, starts with cr_, and has no leading or trailing spaces.
  2. Click Verify in Cursor Settings → Models to inspect the exact error returned.
  3. Test the key and OpenAI endpoint directly with curl in a terminal (replace cr_xxxxxxxx with your own key):
curl -H "Authorization: Bearer cr_xxxxxxxx" \
     https://api.qcode.cc/openai/v1/models

If this returns a JSON list of models, your key and endpoint are working properly and the issue is in Cursor's Base URL or model settings.

What if Verify fails even though curl works?

The usual cause is an extra trailing slash / on the Base URL, or a missing /v1 on the OpenAI path. Confirm you entered https://api.qcode.cc/openai/v1 (OpenAI protocol) or https://api.qcode.cc/api (Anthropic protocol), with no trailing / and without manually appending /chat/completions or /v1/messages.

Why can't Composer use Claude models?

Composer tends to default to the OpenAI protocol, and QCode's OpenAI endpoint does not accept Claude models — even if you check claude-opus-5-5 or claude-sonnet-5-5 in the Models list, requests still return model_not_available_on_endpoint.

The fix is to use the Anthropic path: enter your QCode key under Models → Anthropic API, turn on Override Anthropic Base URL with https://api.qcode.cc/api, and clear and turn off Override OpenAI Base URL (if both overrides are enabled at the same time, Cursor sends Claude requests to the OpenAI endpoint as well and returns 422).

Why didn't Tab completion change after configuring QCode?

Per Cursor's official BYOK documentation, custom API keys apply only to chat models; Cursor Tab (inline completion) always continues using Cursor's built-in models rather than your custom endpoint. This is Cursor's intended behavior, not a misconfiguration.

What if Inline Edit is slow or Agents Window does not use QCode?

Inline Edit (Ctrl + K / Cmd + K) defaults to Cursor's own lightweight model, so first-token latency can be slightly higher after switching to QCode; for daily work you can leave Cursor Tab on default and run Chat and Composer through QCode. In addition, Agents Window and certain managed features may require Cursor's built-in models depending on the version — defer to Cursor's official documentation for current behavior.

What if the model ID I added does not show up in the model dropdown?

Go back to Cursor Settings → Models, confirm the model was both added via + Add model accurately (case-sensitive, no stray spaces) and checked as enabled, then completely quit and restart Cursor so the list refreshes.

What happens when my key expires?

There are two cases:

  • A personal plan key cannot be renewed when it expires — start a new plan and switch to a new key;
  • For a pay-as-you-go pack, buy another pack after it expires and the same key recovers automatically.

If you switch to a new key, return to Cursor Settings → Models, replace the old key, and click Verify again.

Connection overview

Item Details
Available models Claude ✅ (Override Anthropic Base URL) · GPT ✅ · Chinese models ✅ (Override OpenAI Base URL) · Gemini ❌ (not currently offered by QCode)
Protocol and Base URL Anthropic: https://api.qcode.cc/api · OpenAI: https://api.qcode.cc/openai/v1 (entered in the Override fields under Settings → Models)
Request routing Bringing your own key does not mean the editor connects straight to the model provider — per Cursor's official docs, all requests still pass through Cursor's backend for prompt building
Config location In-app Cursor Settings → Models (API Keys section)
Official docs cursor.com/docs · BYOK API Keys guide

Protocols and available models

The same cr_ key works across every QCode protocol. Here are the Base URLs for each protocol (never add a trailing slash):

Protocol Base URL Appended by SDK How to enter in Cursor
OpenAI Chat https://api.qcode.cc/openai/v1 /chat/completions ✅ Enter under Override OpenAI Base URL for GPT and Chinese models
OpenAI Responses https://api.qcode.cc/openai /v1/responses Usually no need to enter manually
Anthropic https://api.qcode.cc/api /v1/messages ✅ Enter under Override Anthropic Base URL for Claude models

The table below lists common QCode model IDs (for the full live lineup and pricing, see qcode.cc/models). Enter them verbatim when clicking + Add model in Cursor:

Model ID Context Protocol endpoint Best for
claude-opus-5-5 1M Anthropic (/api) Flagship model for complex refactors and long context
claude-sonnet-5-5 1M Anthropic (/api) Everyday coding workhorse with strong overall value
claude-haiku-5-5 1M Anthropic (/api) Fast Q&A and lightweight tasks
gpt-6.2-sol 1.05M OpenAI (/openai/v1) Next-gen OpenAI main flagship, recommended default
gpt-6.2-astra 1.05M OpenAI (/openai/v1) Top-tier OpenAI flagship for hard reasoning and architecture

QCode does not currently offer the Gemini series, nor gpt-6-luna / gpt-5.6-luna. claude-fable-5-2, claude-opus-5-5, claude-sonnet-4-6, claude-opus-4-8, and the Chinese model families (GLM / Kimi / DeepSeek / Qwen) are also callable; see qcode.cc/models and Chinese models guide for the live list.

Other ingress points

All three domains point to the same service and share the same API key — just swap the hostname in the Base URL while keeping the path unchanged:

Node OpenAI Base URL Anthropic Base URL
Global (recommended outside mainland China) https://api.qcode.cc/openai/v1 https://api.qcode.cc/api
Asia (recommended for mainland China) https://asia.qcode.cc/openai/v1 https://asia.qcode.cc/api
North America / Europe https://us.qcode.cc/openai/v1 https://us.qcode.cc/api

See Endpoints and API formats for the full list of ingress domains and paths.

Which features work over a custom endpoint

Different AI features in Cursor have different levels of custom-endpoint coverage (Cursor updates frequently, so defer to Cursor's official documentation):

Feature Custom-endpoint support Notes
Cursor Chat (Ctrl + L / Cmd + L) ✅ Stable Uses your configured Base URL directly
Composer (Ctrl + I / Cmd + I) ✅ Stable Multi-file editing using your enabled model ID
Inline Edit (Ctrl + K / Cmd + K) ✅ Works Select code and issue instructions inline; first-token latency may be slightly higher than built-in models
Cursor Tab (inline completion) ❌ Does not use custom endpoint Per official BYOK docs, Tab completion continues using Cursor's built-in models
Agents Window / background agents ⚠️ Version-dependent Generally stable on mainstream OpenAI / Anthropic protocols; some sub-capabilities may require built-in models
Bug Bot / codebase indexing and other managed features ⚠️ Version-dependent May be limited to Cursor's built-in models

A typical day-to-day workflow once connected:

  1. Pick a model in Composer (for example, claude-sonnet-5-5 or gpt-6.2-sol for daily coding, and claude-opus-5-5 or gpt-6.2-astra for large refactors).
  2. Press Ctrl + I (Cmd + I on macOS) to open Composer and add the files you want to edit into context.
  3. Describe the goal in plain language, such as "migrate this component's state management from useState to useReducer while keeping existing props unchanged."
  4. Review the generated diff and Accept or Reject block by block.
  5. For small local edits, select the code and press Ctrl + K (Cmd + K on macOS) to trigger Inline Edit.

All calls in this workflow go through your QCode endpoint and are settled under the Billing rules.

Image input vs. image generation

  • Image input (letting the model "see" images): Cursor lets you paste or drag screenshots and design mockups into the chat panel so vision-capable models can inspect errors or build components from sketches. Vision-capable models on QCode include Claude Fable 5.2 / Opus 5.5 / Sonnet 5.5 / Haiku 5.5 and the GPT series (such as gpt-6.2-sol, gpt-6.2-astra).
  • Image generation (letting the model "draw"): Generating images requires calling QCode's dedicated gpt-image-2 image endpoint rather than the Cursor editor chat flow; see gpt-image-2 image generation.

Using alongside Claude Code

Cursor's built-in AI does not conflict with the standalone Claude Code CLI, so both can run side by side in the same Cursor window: in-editor Chat / Composer uses the endpoint set in Cursor settings, while the claude command in the integrated terminal (Ctrl + `) uses the Anthropic endpoint from environment variables.

In the Windows PowerShell integrated terminal:

$env:ANTHROPIC_BASE_URL = "https://api.qcode.cc/api"
$env:ANTHROPIC_AUTH_TOKEN = "cr_xxxxxxxx"
claude

In the macOS / Linux integrated terminal:

export ANTHROPIC_BASE_URL="https://api.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_xxxxxxxx"
claude

Both paths authenticate independently and share balance and usage when using the same QCode key (see Billing). Claude Code's Subagents and Automation & CI/CD both run directly inside Cursor's integrated terminal.

Limitations and notes

  • Requests still pass through Cursor's backend: Cursor's official BYOK documentation states verbatim: "Your API key is not stored on our servers. It is sent to our backend with every request because all requests are routed through Cursor's servers for final prompt building". If you need an editor that connects directly to QCode without a third-party relay, use Claude Code, Codex CLI, Cline, or Zed instead.
  • The two overrides interfere with each other: When both Override OpenAI Base URL and Override Anthropic Base URL are enabled at once, Cursor also routes Claude traffic to the OpenAI endpoint and fails with a 422 error. To use Claude, turn on only the Anthropic override and leave the OpenAI override empty and turned off; switch as needed when using both families.
  • Zero Data Retention does not apply to BYOK: Once a custom API key is enabled, Cursor's Zero Data Retention policy no longer applies and data handling follows the upstream provider's privacy policy. Privacy Mode does not block outbound requests to QCode — it only prevents Cursor itself from storing prompts.
  • Team plan billing rules: On Cursor Teams / Enterprise plans, every third-party model request still incurs the Cursor Token Rate even with your own API key; on individual plans, BYOK requests do not consume Cursor's included allowance. Cursor's OpenAI BYOK support is officially aimed primarily at standard chat models.
  • Earlier version input-focus issue: If you are still on an older release such as 3.15.6 and cannot click into the API Key or Base URL field with the mouse, upgrade to 3.31.15 or newer first; as a workaround, turn on the corresponding Override toggle and press Tab to move focus into the text box before pasting.

Practical tips

  • Match the model to the task: On the Anthropic path (https://api.qcode.cc/api), claude-sonnet-5-5 offers great value for daily coding and claude-opus-5-5 or claude-fable-5-2 handles large refactors; on the OpenAI path (https://api.qcode.cc/openai/v1), pick gpt-6.2-sol for general coding, gpt-6.2-astra for hard reasoning, and gpt-6.2-sol for lighter code tasks.
  • Use the 1M tier for long context: 1M+ context models such as claude-opus-5-5, claude-sonnet-5-5, gpt-6.2-sol, and gpt-6.2-astra are well suited to multi-file refactors in Composer.
  • Keep costs in check: Set a mid-tier model as your Composer default and switch to a flagship manually only for hard architecture or refactoring work.
  • Pick the nearest node: Users in mainland China should switch the Base URL hostname to asia.qcode.cc.
  • Click Verify first after updates: Cursor updates frequently — if chat behaves unexpectedly after an upgrade, return to Settings → Models and click Verify first to check connectivity.

Get started with QCode

One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models

Enterprise →