Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.
Cursor can call AI Gateway models through a custom OpenAI-compatible provider. Cursor Free may only support Auto mode; use Cursor Pro or a higher plan if custom model providers are required.
Cursor may fuzzy-match custom model names against built-in model names. If a custom model name overlaps with a built-in model name, Cursor may route the request to its own provider instead of AI Gateway.
Configure a Custom Model
Use the following values when adding a custom provider or model in Cursor.
Field
Value
API Key
Your AI Gateway API key
Base URL
https://llm.gpuhub.com/api/v1
Model name
A custom alias such as gpuhub-model
Avoid Built-In Model Name Matching
If you want to use a model such as gpt-5.4, avoid naming the Cursor custom model gpt-5.4 directly. Use an unrelated alias such as gpuhub-model, then map that alias to the target model in the AI Gateway model settings.
Recommended Flow
Create a custom model alias in Cursor, such as gpuhub-model.
Set the Base URL to https://llm.gpuhub.com/api/v1.
Enter your API key.
Map gpuhub-model to the target AI Gateway model in the console.
Select gpuhub-model in Cursor when starting a chat or coding task.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mint Starter Kit","description":"GPUhub Documentation","colors":{"primary":"#964CEF","light":"#C493FF","dark":"#6F27C5"},"logo":{"light":"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/light.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=aac94265738621a43d2d2a5afabe6f38","dark":"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/dark.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=c7adcf4558f6b6c73111f89fbcb71cb2"},"favicon":"https://mintcdn.com/gpuhub/swpOJzF6Pn2RHDvu/favicon.svg?fit=max\u0026auto=format\u0026n=swpOJzF6Pn2RHDvu\u0026q=85\u0026s=506e325d2301a7ffe9c2336439347e47","appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:support@gpuhub.com","label":"Support"}],"primary":{"type":"button","label":"Console","href":"https://gpuhub.com/"}},"footer":{"socials":{"x":"https://x.com/gpuhubnews","github":"https://github.com/gpuhub-source","linkedin":"https://www.linkedin.com/company/106417537","discord":"https://discord.gg/PVdwkynM75","youtube":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}},"search":{"prompt":"Select the GPU suits your purpose and scenario"},"integrations":{"ga4":{"measurementId":"G-KDSJ905XX7"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/PVdwkynM75"},{"anchor":"Telegram","icon":"telegram","href":"https://t.me/+x1igBQ49Z0NkN2E1"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/hub_gpu"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gpuhub","hasAudioNarration":false,"actualSubdomain":"gpuhub","customDomains":["docs.gpuhub.com"],"gitSource":{"type":"github","owner":"narwal99","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae1c36d8a46f6fe5a22603e","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"AI Gateway","count":22},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Best Practices","count":19},{"language":"default","tag":"LLMs","count":15},{"language":"default","tag":"Instance","count":13},{"language":"default","tag":"Elastic Deployment","count":9},{"language":"default","tag":"FAQ","count":8},{"language":"default","tag":"Frequently Asked Question","count":8},{"language":"default","tag":"Terms of Service","count":8},{"language":"default","tag":"Tools \u0026 Environment","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".max-w-8xl{max-width:100%!important}.pl-4{text-transform:uppercase}.eyebrow{text-transform:uppercase}"}],"page":{"pagePath":"ai-gateway/ides-agents/cursor","slug":"/ai-gateway/ides-agents/cursor","pageMetadata":{"title":"Cursor","description":"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.","href":"/ai-gateway/ides-agents/cursor"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,OptimizedImage,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=3111fea4865386415a5f5a4f9ae37483`,alt:``,\"data-og-width\":`96`,width:`96`,\"data-og-height\":`96`,height:`96`,\"data-path\":`images/ide-agents-cursor-icon.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=280\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=f57824f284f1412125122f13517dc42d 280w, https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=560\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=e83d7943b0c66e21eda90239da56d1cc 560w, https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=840\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=4e77e60ba38a82d48d2c45a916616437 840w, https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=70036775f9af6e1b0ac80ac0f045d929 1100w, https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=c751c04dea19d02a13b73cd234b765ca 1650w, https://mintcdn.com/gpuhub/GEB8Gf9uDczdNFr-/images/ide-agents-cursor-icon.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GEB8Gf9uDczdNFr-\u0026q=85\u0026s=e7c19653f0acec14318664606bf4b745 2500w`}),`\n`,_jsx(_components.p,{children:`Cursor can call AI Gateway models through a custom OpenAI-compatible provider. Cursor Free may only support Auto mode; use Cursor Pro or a higher plan if custom model providers are required.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Cursor may fuzzy-match custom model names against built-in model names. If a custom model name overlaps with a built-in model name, Cursor may route the request to its own provider instead of AI Gateway.`})}),`\n`,_jsx(Heading,{level:`2`,id:`configure-a-custom-model`,children:`Configure a Custom Model`}),`\n`,_jsx(_components.p,{children:`Use the following values when adding a custom provider or model in Cursor.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API Key`}),_jsx(_components.td,{children:`Your AI Gateway API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Base URL`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://llm.gpuhub.com/api/v1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model name`}),_jsxs(_components.td,{children:[`A custom alias such as `,_jsx(_components.code,{children:`gpuhub-model`})]})]})]})]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=d5a4ac301ea910cd0d6ea8b44e0a55c3`,alt:``,\"data-og-width\":`1365`,width:`1365`,\"data-og-height\":`932`,height:`932`,\"data-path\":`images/ide-agents-cursor-provider-settings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=280\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=711335788a869370053e668f44d158f7 280w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=560\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=c5c509111aa7127d23f7a1bfb616b563 560w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=840\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=6e76ca221f26816414c113c69a9633a8 840w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=9cd4b1e88e45e4285ccc53d036d8775d 1100w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=65b4ba3928b5a0a1a55fbf916dbfbbda 1650w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-provider-settings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=4e15ac93fe8e0ca7e09d0146ec939665 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`avoid-built-in-model-name-matching`,children:`Avoid Built-In Model Name Matching`}),`\n`,_jsxs(_components.p,{children:[`If you want to use a model such as `,_jsx(_components.code,{children:`gpt-5.4`}),`, avoid naming the Cursor custom model `,_jsx(_components.code,{children:`gpt-5.4`}),` directly. Use an unrelated alias such as `,_jsx(_components.code,{children:`gpuhub-model`}),`, then map that alias to the target model in the AI Gateway model settings.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=bc1a1a826b74968b750a06bd5b8718c1`,alt:``,\"data-og-width\":`1414`,width:`1414`,\"data-og-height\":`712`,height:`712`,\"data-path\":`images/ide-agents-cursor-model-mapping.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=280\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=93d4fc99ff2e7375953b2b41c4fd7874 280w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=560\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=5a9786490a3588ab763dbbcbae1725e5 560w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=840\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=cd5d5768e94a7501738b8c5a0bd613b7 840w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=1100\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=197d7f8b7dc78ad12244196f608808c1 1100w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=1650\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=1c395a6014dbaeadd8febe35d4e0c279 1650w, https://mintcdn.com/gpuhub/okogEM35aUTWSg4p/images/ide-agents-cursor-model-mapping.png?w=2500\u0026fit=max\u0026auto=format\u0026n=okogEM35aUTWSg4p\u0026q=85\u0026s=4eda9f6f34ee50337f01ae3dcf2247fe 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`recommended-flow`,children:`Recommended Flow`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a custom model alias in Cursor, such as `,_jsx(_components.code,{children:`gpuhub-model`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Set the Base URL to `,_jsx(_components.code,{children:`https://llm.gpuhub.com/api/v1`}),`.`]}),`\n`,_jsx(_components.li,{children:`Enter your API key.`}),`\n`,_jsxs(_components.li,{children:[`Map `,_jsx(_components.code,{children:`gpuhub-model`}),` to the target AI Gateway model in the console.`]}),`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(_components.code,{children:`gpuhub-model`}),` in Cursor when starting a chat or coding task.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cursor","description":"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.","href":"/ai-gateway/ides-agents/cursor"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Configure a Custom Model","slug":"configure-a-custom-model","depth":2,"children":[]},{"title":"Avoid Built-In Model Name Matching","slug":"avoid-built-in-model-name-matching","depth":2,"children":[]},{"title":"Recommended Flow","slug":"recommended-flow","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gpuhub/1b3d72170abac531/package/index.js"],"subdomain":"gpuhub","siteName":"Mint Starter Kit","title":"Cursor - Mint Starter Kit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-13T02:28:17.931Z","originalFileLocation":"ai-gateway/ides-agents/cursor.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cursor - Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gpuhub.mintlify.site/_mintlify/api/og/v2?division=IDEs+%26+Agent+Apps\u0026amp;title=Cursor\u0026amp;description=Configure+Cursor+to+call+AI+Gateway+models+with+a+custom+OpenAI-compatible+model+provider.\u0026amp;theme=4706c09e24807f6fe5a1ec81\u0026amp;signature=084b503cf657ce8d5976fddd99ad0a39fc3826f4f0d4978c4531b2edaa1617de\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cursor - Mint Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gpuhub.mintlify.site/_mintlify/api/og/v2?division=IDEs+%26+Agent+Apps\u0026amp;title=Cursor\u0026amp;description=Configure+Cursor+to+call+AI+Gateway+models+with+a+custom+OpenAI-compatible+model+provider.\u0026amp;theme=4706c09e24807f6fe5a1ec81\u0026amp;signature=084b503cf657ce8d5976fddd99ad0a39fc3826f4f0d4978c4531b2edaa1617de\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#964CEF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-gateway/ides-agents/cursor.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gpuhub.com/#organization\",\"name\":\"Mint Starter Kit\",\"url\":\"https://docs.gpuhub.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/light.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=aac94265738621a43d2d2a5afabe6f38\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gpuhub.com#website\",\"name\":\"Mint Starter Kit\",\"url\":\"https://docs.gpuhub.com\",\"publisher\":{\"@id\":\"https://docs.gpuhub.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor#webpage\",\"url\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor\",\"name\":\"Cursor\",\"description\":\"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\",\"dateModified\":\"2026-06-13T02:28:17.931Z\",\"isPartOf\":{\"@id\":\"https://docs.gpuhub.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IDEs \u0026 Agent Apps\",\"item\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/claude-code\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cursor\",\"item\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor#article\",\"headline\":\"Cursor\",\"name\":\"Cursor\",\"description\":\"Configure Cursor to call AI Gateway models with a custom OpenAI-compatible model provider.\",\"url\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gpuhub.com/ai-gateway/ides-agents/cursor#webpage\"},\"dateModified\":\"2026-06-13T02:28:17.931Z\",\"publisher\":{\"@id\":\"https://docs.gpuhub.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gpuhub.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mint Starter Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mint Starter Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ai-gateway/ides-agents/cursor.md","siteName":"Mint Starter Kit","nav":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/PVdwkynM75"},{"anchor":"Telegram","icon":"telegram","href":"https://t.me/+x1igBQ49Z0NkN2E1"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/hub_gpu"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Instance","pages":[{"title":"Instance","href":"/container-instance/overview"}]},{"tab":"Data","pages":[{"title":"Data","href":"/data/local-data-disk"}]},{"tab":"Environment","pages":[{"title":"Environment","href":"/environment/overview"}]},{"tab":"Best Practices","pages":[{"title":"Best Practices","href":"/best-practices/sub-account"}]},{"tab":"Elastic Deployment","pages":[{"title":"Elastic Deployment","href":"/elastic-deployment/elastic-deployment"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/api-authentication"}]},{"tab":"AI Gateway","groups":[{"group":"AI Gateway","pages":[{"title":"Overview","href":"/ai-gateway/ai-gateway"}]},{"group":"LLMs","pages":[{"title":"claude-opus-4-8","href":"/ai-gateway/llms/claude-opus-4-8"},{"title":"claude-opus-4-6","href":"/ai-gateway/llms/claude-opus-4-6"},{"title":"claude-opus-4-6-cc","href":"/ai-gateway/llms/claude-opus-4-6-cc"},{"title":"claude-sonnet-4-6","href":"/ai-gateway/llms/claude-sonnet-4-6"},{"title":"claude-sonnet-4-6-cc","href":"/ai-gateway/llms/claude-sonnet-4-6-cc"},{"title":"gpt-5.5","href":"/ai-gateway/llms/gpt-5-5"},{"title":"gpt-5.4","href":"/ai-gateway/llms/gpt-5-4"},{"title":"gpt-5.3-codex","href":"/ai-gateway/llms/gpt-5-3-codex"},{"title":"gemini-3.1-pro-preview","href":"/ai-gateway/llms/gemini-3-1-pro-preview"},{"title":"GLM-5","href":"/ai-gateway/llms/glm-5"},{"title":"GLM-5.1","href":"/ai-gateway/llms/glm-5-1"},{"title":"Qwen3.5-397B-A17B","href":"/ai-gateway/llms/qwen3-5-397b-a17b"},{"title":"DeepSeek-R1-0528","href":"/ai-gateway/llms/deepseek-r1-0528"},{"title":"DeepSeek-V3.2","href":"/ai-gateway/llms/deepseek-v3-2"},{"title":"MiniMax-M2.5","href":"/ai-gateway/llms/minimax-m2-5"}]},{"group":"IDEs \u0026 Agent Apps","pages":[{"title":"Claude Code","href":"/ai-gateway/ides-agents/claude-code"},{"title":"Codex","description":"Configure Codex to use AI Gateway with an OpenAI-compatible API endpoint.","href":"/ai-gateway/ides-agents/codex"},{"title":"Cursor","href":"/ai-gateway/ides-agents/cursor"},{"title":"Trae","description":"Configure Trae IDE to call AI Gateway models through the Roo Code extension.","href":"/ai-gateway/ides-agents/trae"},{"title":"Cherry Studio","href":"/ai-gateway/ides-agents/cherry-studio"}]}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faqs/system-disk-space-insufficient"}]}]},"basePath":"","title":"Cursor - Mint Starter Kit","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B9O1U98p.js","lightbox-handle-r17bVUz3.js"]}