Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.
Codex is OpenAI’s AI coding assistant, available as a command-line tool and as a VS Code extension. You can connect Codex to the ScitiX Model Inference API and use ScitiX models for coding tasks. Both the CLI and the extension share the same config.toml.Configuration is stored in config.toml in your Codex home directory, typically ~/.codex/config.toml. For the full list of options, see the Codex Configuration Reference.Supported models include glm-5.2 and kimi-k2.6. For model pricing, see the model catalog.
Some built-in tool types, such as web_search, may not be available on these models. You can add these capabilities through MCP (Model Context Protocol) servers.Configure a search MCP server in config.toml under [mcp_servers.<name>], and Codex will call it when web search is needed. See the Codex Configuration Reference for MCP server setup details.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ScitiX","description":"ScitiX documentation provides guides for Model Inference, GPU Cloud, and account management, helping developers connect to model APIs, manage GPU resources, and configure accounts and billing.","colors":{"primary":"#3B82F6","light":"#3B82F6","dark":"#3B82F6"},"logo":{"light":"https://mintcdn.com/scitix-adfc65c2/UDvmXctEfVsXWOHh/logo/logo.png?fit=max\u0026auto=format\u0026n=UDvmXctEfVsXWOHh\u0026q=85\u0026s=277f160d7ff5cbfac6e30e6e62d69f9f","dark":"https://mintcdn.com/scitix-adfc65c2/UDvmXctEfVsXWOHh/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=UDvmXctEfVsXWOHh\u0026q=85\u0026s=ff7f91e1c8e024423828b82b08fab3db","href":"/model-inference/get-started/model-inference-overview"},"favicon":"https://mintcdn.com/scitix-adfc65c2/N8zy-cNK0Mq2aeoL/logo/favicon.ico?fit=max\u0026auto=format\u0026n=N8zy-cNK0Mq2aeoL\u0026q=85\u0026s=c8960a64824d3f60efabcd1d721be709","navbar":{"links":[{"href":"https://scitix.ai/","label":"Website"}],"primary":{"type":"button","label":"Console","href":"https://console.scitix.ai/"}},"footer":{},"seo":{"metatags":{"og:site_name":"ScitiX Documentation","og:url":"https://docs.scitix.ai","twitter:card":"summary_large_image"},"organization":{"name":"ScitiX","url":"https://scitix.ai/"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","latex":false},"errors":{"404":{"redirect":false,"title":"Page not found","description":"The page you are looking for may have moved, been renamed, or no longer be published. Use the search bar above, or continue from one of these entry points:\n\n- [Model Inference](/model-inference/get-started/model-inference-overview)\n- [GPU Cloud](/gpu-cloud/get-started/gpu-cloud-overview)\n- [Connect Docs to AI](/model-inference/get-started/connect-docs-to-ai)"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","windsurf"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scitix-adfc65c2","hasAudioNarration":false,"actualSubdomain":"scitix-adfc65c2","customDomains":["docs.scitix.ai"],"gitSource":{"type":"github","owner":"scitix","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"38c7ac4a-ba4f-4fac-ab43-bc1ea28c61f1","liveDeploymentHistoryId":"6ad5b291308337059e856144","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad5b291308337059e856144"},"entitlements":{},"buildId":"6ad5b291308337059e856144","clientVersion":"0.0.3938","searchFilterCounts":[{"language":"default","tag":"Model Inference","count":72},{"language":"default","tag":"Tool Integrations","count":51},{"language":"default","tag":"GPU Cloud","count":33},{"language":"default","tag":"Clusters","count":12},{"language":"default","tag":"Frameworks \u0026 SDKs","count":10},{"language":"default","tag":"Models","count":10},{"language":"default","tag":"Account","count":9},{"language":"default","tag":"Coding Agents","count":9},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Workflow \u0026 App Platforms","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"vite-origin","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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#ask-assistant-code-block-button,#assistant-entry,#assistant-entry-mobile,#chat-assistant-sheet,#header>.mt-2.text-lg.prose,#text-selection-tooltip-button,.chat-assistant-floating-input,.chat-assistant-sheet,a[href*=\"utm_campaign=poweredBy\"],button[data-component-part=search-ask-ai-button]{display:none!important}a[href=\"/help/use-docs-with-ai\"],a[href=\"/help/use-docs-with-ai/\"]{color:rgb(55 65 81)!important}a[href=\"/help/use-docs-with-ai\"] .icon,a[href=\"/help/use-docs-with-ai\"] svg,a[href=\"/help/use-docs-with-ai/\"] .icon,a[href=\"/help/use-docs-with-ai/\"] svg{background-color:rgb(59 130 246)!important;color:rgb(59 130 246)!important;stroke:rgb(59 130 246)!important;fill:none!important}a[href=\"/help/use-docs-with-ai\"] svg *,a[href=\"/help/use-docs-with-ai/\"] svg *{background-color:rgb(59 130 246)!important;color:rgb(59 130 246)!important;stroke:rgb(59 130 246)!important}.dark a[href=\"/help/use-docs-with-ai\"]:hover,.dark a[href=\"/help/use-docs-with-ai/\"]:hover,a[href=\"/help/use-docs-with-ai\"]:hover,a[href=\"/help/use-docs-with-ai/\"]:hover{color:rgb(59 130 246)!important}.dark a[href=\"/help/use-docs-with-ai\"],.dark a[href=\"/help/use-docs-with-ai/\"]{color:rgb(229 231 235)!important}[data-component-part=search-list]>div[role=group]:has([data-component-part=search-ask-ai-item]),body:has(.docs-home) #navbar div:has(>.nav-tabs),body:has(.docs-home) .nav-tabs-item[data-active=true]::after,div:has(>#chat-assistant-sheet){display:none!important}body:has(.docs-home) .nav-tabs-item[data-active=true]{color:inherit!important;text-shadow:none!important}.nav-tabs .nav-tabs-item:nth-child(3){margin-left:3rem;position:relative}.nav-tabs .nav-tabs-item:nth-child(3)::before{content:\"\";position:absolute;left:-2rem;top:50%;width:1px;height:1rem;background:rgb(209 213 219);transform:translateY(-50%)}.dark .nav-tabs .nav-tabs-item:nth-child(3)::before{background:rgb(75 85 99)}.docs-home{--home-border:rgb(229 231 235);--home-muted:rgb(75 85 99);--home-panel:rgb(255 255 255)}.docs-home-hero{border-bottom:1px solid var(--home-border);padding-bottom:1.125rem}.docs-home-kicker{letter-spacing:0}.docs-products-panel,.docs-support-panel{border:1px solid var(--home-border);border-radius:.75rem;background:linear-gradient(180deg,rgb(249 250 251),rgb(255 255 255));padding:.75rem}@media (min-width:768px){.docs-products-panel,.docs-support-panel{padding:.875rem}}.docs-account-panel,.docs-product-card{position:relative;overflow:hidden;transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}.docs-product-card{--product-accent:#3b82f6;--product-tint:rgb(59 130 246 / 0.08);min-height:100%;border-top-color:var(--product-accent)!important;border-top-style:solid!important;border-top-width:3px!important;cursor:pointer}.docs-card-link{position:absolute;inset:0;z-index:1;border-radius:inherit}.docs-product-card .docs-path-link,.docs-product-card .docs-title-link{position:relative;z-index:2}.docs-account-panel:hover,.docs-product-card:hover{border-color:var(--product-accent, #3b82f6);box-shadow:0 14px 32px rgb(15 23 42/.08);transform:translateY(-1px)}.docs-account-panel:hover{box-shadow:0 8px 18px rgb(15 23 42/.05);transform:none}.docs-product-header{display:flex;align-items:center;gap:.75rem}.docs-account-icon,.docs-product-icon{display:inline-flex;width:2.125rem;height:2.125rem;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid rgb(229 231 235);border-radius:.5rem;background:var(--product-tint, rgb(59 130 246 / 0.08));color:var(--product-accent, #3b82f6)}.docs-account-icon svg,.docs-product-icon svg{width:1rem;height:1rem}.docs-account-icon svg.icon,.docs-product-icon svg.icon{background-color:var(--product-accent, #3b82f6)!important}.docs-path-link,.docs-title-link{align-items:center;text-decoration:none}.docs-title-link{display:inline-flex;gap:.4rem;color:rgb(17 24 39);font-size:1.125rem;font-weight:650;line-height:1.3}.docs-title-link:hover{color:var(--product-accent, #3b82f6)}.docs-path-link{display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;border:1px solid transparent;border-radius:.5rem;color:rgb(55 65 81);transition:background 160ms ease,border-color 160ms ease,color 160ms ease;padding:.33rem .5rem}.docs-path-link:hover,.docs-support-link:hover{border-color:var(--product-accent, #3b82f6);background:var(--product-tint, rgb(249 250 251));color:var(--product-accent, #3b82f6)}.docs-step{display:inline-flex;width:1.3rem;height:1.3rem;align-items:center;justify-content:center;border-radius:999px;background:var(--product-tint, rgb(59 130 246 / 0.08));color:var(--product-accent, #3b82f6);font-size:.75rem;font-weight:650}.docs-path-arrow{color:rgb(156 163 175);transition:color 160ms ease,transform 160ms ease}.docs-path-link:hover .docs-path-arrow,.docs-support-link:hover .docs-path-arrow{color:var(--product-accent, #3b82f6);transform:translateX(.125rem)}.docs-support-link{display:flex;align-items:center;justify-content:center;padding:.62rem .8rem;border:1px solid transparent;border-radius:.5rem;background:var(--home-panel);color:rgb(55 65 81);font-size:.875rem;font-weight:600;text-align:center;text-decoration:none;transition:background 160ms ease,border-color 160ms ease,color 160ms ease}.dark .docs-home{--home-border:rgb(31 41 55);--home-muted:rgb(156 163 175);--home-panel:rgb(3 7 18)}.dark .docs-products-panel,.dark .docs-support-panel{background:linear-gradient(180deg,rgb(17 24 39/.55),rgb(3 7 18/.78))}.dark .docs-account-panel:hover,.dark .docs-product-card:hover{border-color:var(--product-accent, #60a5fa);box-shadow:0 14px 32px rgb(0 0 0/.22)}.dark .docs-account-panel:hover{box-shadow:0 8px 18px rgb(0 0 0/.14)}.dark .docs-account-icon,.dark .docs-product-icon{border-color:rgb(55 65 81)}.dark .docs-title-link{color:rgb(255 255 255)}.dark .docs-path-link:hover,.dark .docs-support-link:hover,.dark .docs-title-link:hover{color:var(--product-accent, #60a5fa)}.dark .docs-path-link,.dark .docs-support-link{color:rgb(209 213 219)}.dark .docs-path-link:hover,.dark .docs-support-link:hover{border-color:var(--product-accent, #60a5fa);background:var(--product-tint, rgb(17 24 39))}#sidebar #navigation-items>div+div{margin-top:1.125rem!important}#sidebar .sidebar-group-header{margin-bottom:.375rem!important}#sidebar .sidebar-group>li>a,#sidebar .sidebar-group>li>button{padding-top:.25rem!important;padding-bottom:.25rem!important}@media (min-width:1280px){#sidebar{width:20%!important;margin-right:3%!important}#content-container>div:has(>#content-area){gap:3.8961%!important}#content-side-layout{flex:0 0 18.1818%!important;width:18.1818%!important;max-width:none!important;min-width:0!important}#table-of-contents-layout{width:100%!important;min-width:0!important;padding-left:1rem!important}#table-of-contents{width:100%!important}#table-of-contents,#table-of-contents [data-component-part=scroll-area-content]{min-width:0!important}#table-of-contents-content a{white-space:normal;overflow-wrap:anywhere}#content-area{flex:0 0 77.9221%!important;width:77.9221%!important;margin-left:0!important;padding-left:0!important}}"}],"page":{"pagePath":"model-inference/integrations/codex","slug":"/model-inference/integrations/codex","pageMetadata":{"title":"Codex","description":"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.","keywords":"Codex, ScitiX Model Inference, Codex CLI, VS Code extension, config.toml","href":"/model-inference/integrations/codex"},"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: \"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Codex is OpenAI’s AI coding assistant, available as a command-line tool and as a VS Code extension. You can connect Codex to the ScitiX Model Inference API and use ScitiX models for coding tasks. Both the CLI and the extension share the same `,_jsx(_components.code,{children:`config.toml`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Configuration is stored in `,_jsx(_components.code,{children:`config.toml`}),` in your Codex home directory, typically `,_jsx(_components.code,{children:`~/.codex/config.toml`}),`. For the full list of options, see the `,_jsx(_components.a,{href:`https://developers.openai.com/codex/config-reference`,children:`Codex Configuration Reference`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Supported models include `,_jsx(_components.code,{children:`glm-5.2`}),` and `,_jsx(_components.code,{children:`kimi-k2.6`}),`. For model pricing, see the `,_jsx(_components.a,{href:`https://console.scitix.ai/model-inference/models`,children:`model catalog`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure`,children:`Configure`}),`\n`,_jsx(Heading,{level:`3`,id:`1-install-codex`,children:`1. Install Codex`}),`\n`,_jsx(_components.p,{children:`For the CLI, install Codex with npm or Homebrew:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @openai/codex`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`brew`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` codex`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For other installation options, see the `,_jsx(_components.a,{href:`https://github.com/openai/codex#installation`,children:`official installation guide`}),`.`]}),`\n`,_jsx(_components.p,{children:`For the VS Code extension:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Extensions`}),` in VS Code (`,_jsx(_components.code,{children:`Ctrl+Shift+X`}),` / `,_jsx(_components.code,{children:`Cmd+Shift+X`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`Search for `,_jsx(_components.strong,{children:`Codex`}),` and install the official extension.`]}),`\n`,_jsxs(_components.li,{children:[`Click the Codex icon in the top-right of the editor to open the `,_jsx(_components.strong,{children:`CODEX`}),` panel.`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=95cab0d847ce91661a415f4213dfff46`,alt:`Codex extension marketplace page`,style:{width:`60%`,height:`auto`},\"data-og-width\":`1778`,width:`1778`,\"data-og-height\":`1210`,height:`1210`,\"data-path\":`model-inference/media/codex-ext.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=280\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=8fa7f353004d48788911e309c609fef2 280w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=560\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=8a224b8b88a0e9e0765a2359a26ece79 560w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=840\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=8b48375a303cc4e3e87d8f9cabfa5037 840w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=1100\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=a3cf54151801b5023dffb9ef5aa6b372 1100w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=1650\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=91066f4651f05a7c7faeea1b13282bcf 1650w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-ext.png?w=2500\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=33ea99d94a909188eddae76f40294c36 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`2-configure-the-model`,children:`2. Configure the model`}),`\n`,_jsxs(_components.p,{children:[`Create an API Key on the `,_jsx(_components.a,{href:`https://console.scitix.ai/model-inference/api_keys`,children:`API Keys`}),` page, then provide it in one of two ways.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Keep `,_jsx(_components.code,{children:`SCITIX_API_KEY`}),` and other secrets out of Git. Use environment variables or a local `,_jsx(_components.code,{children:`.env`}),` file ignored by version control.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`option-1-use-an-environment-variable`,children:`Option 1: Use an environment variable`}),`\n`,_jsxs(_components.p,{children:[`Edit `,_jsx(_components.code,{children:`~/.codex/config.toml`}),` with `,_jsx(_components.code,{children:`env_key`}),` pointing to an environment variable:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"glm-5.2\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_provider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scitix\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`approval_policy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"never\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sandbox_mode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace-write\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`model_providers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`scitix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ScitiX\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.scitix.ai/model-api\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SCITIX_API_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wire_api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"responses\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Set the key before launching Codex:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` SCITIX_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cYour API Key>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`code`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .`})]}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`4`,id:`option-2-store-the-token-in-config-toml`,children:[`Option 2: Store the token in `,_jsx(_components.code,{children:`config.toml`})]}),`\n`,_jsxs(_components.p,{children:[`If you do not want to use an environment variable, put the key directly in `,_jsx(_components.code,{children:`config.toml`}),` with `,_jsx(_components.code,{children:`experimental_bearer_token`}),` instead of `,_jsx(_components.code,{children:`env_key`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"glm-5.2\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_provider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scitix\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`approval_policy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"never\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sandbox_mode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace-write\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_reasoning_effort`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`model_providers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`scitix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ScitiX\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.scitix.ai/model-api\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`experimental_bearer_token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAPI_KEY>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wire_api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"responses\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Because the key is stored in the file, keep `,_jsx(_components.code,{children:`config.toml`}),` out of version control.`]}),`\n`,_jsx(_components.p,{children:`Either way, the configured model becomes available in Codex.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=d9ae94cf451b5bb1b40a4b159125e195`,alt:`Codex configuration file using a ScitiX model provider, base URL, and API key setting`,\"data-og-width\":`2990`,width:`2990`,\"data-og-height\":`1772`,height:`1772`,\"data-path\":`model-inference/media/codex-open-source.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=280\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=8997d60125a74ea6ec0e193212e42400 280w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=560\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=ce35fd783d8e470390e6cddbf20691a2 560w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=840\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=f84b757c63492f221913bc59e6990268 840w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=1100\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=bc4d19816f75263a974b078af292037d 1100w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=1650\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=56683c4364b3df0b3f21ed303c715320 1650w, https://mintcdn.com/scitix-adfc65c2/zz3UuyM3SCvVbeP9/model-inference/media/codex-open-source.png?w=2500\u0026fit=max\u0026auto=format\u0026n=zz3UuyM3SCvVbeP9\u0026q=85\u0026s=463e872aeddb9b16e9013c5535c897c2 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`field-reference`,children:`Field Reference`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsxs(_components.td,{children:[`Model ID from the `,_jsx(_components.a,{href:`https://console.scitix.ai/model-inference/models`,children:`model catalog`}),`, such as `,_jsx(_components.code,{children:`glm-5.2`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model_provider`})}),_jsxs(_components.td,{children:[`Must match the `,_jsx(_components.code,{children:`[model_providers.\u003cname>]`}),` section. Use `,_jsx(_components.code,{children:`scitix`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`approval_policy`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`never`}),` for no approval prompts; `,_jsx(_components.code,{children:`on-request`}),` or `,_jsx(_components.code,{children:`untrusted`}),` for more control.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sandbox_mode`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`workspace-write`}),` to read and edit within the workspace; `,_jsx(_components.code,{children:`read-only`}),` for read-only access.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`base_url`})}),_jsxs(_components.td,{children:[`ScitiX Model Inference API endpoint: `,_jsx(_components.code,{children:`https://api.scitix.ai/model-api`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wire_api`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`responses`}),` for the latest Codex version.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`env_key`})}),_jsxs(_components.td,{children:[`Option 1. Environment variable that holds your API Key, such as `,_jsx(_components.code,{children:`SCITIX_API_KEY`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`experimental_bearer_token`})}),_jsxs(_components.td,{children:[`Option 2. Your ScitiX API Key embedded directly instead of via `,_jsx(_components.code,{children:`env_key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model_reasoning_effort`})}),_jsxs(_components.td,{children:[`Reasoning depth for the model, such as `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, or `,_jsx(_components.code,{children:`high`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`mcp-servers`,children:`MCP Servers`}),`\n`,_jsxs(_components.p,{children:[`Some built-in tool types, such as `,_jsx(_components.code,{children:`web_search`}),`, may not be available on these models. You can add these capabilities through MCP (Model Context Protocol) servers.`]}),`\n`,_jsxs(_components.p,{children:[`Configure a search MCP server in `,_jsx(_components.code,{children:`config.toml`}),` under `,_jsx(_components.code,{children:`[mcp_servers.\u003cname>]`}),`, and Codex will call it when web search is needed. See the `,_jsx(_components.a,{href:`https://developers.openai.com/codex/config-reference`,children:`Codex Configuration Reference`}),` for MCP server setup details.`]})]})}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":"Codex","description":"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.","keywords":"Codex, ScitiX Model Inference, Codex CLI, VS Code extension, config.toml","href":"/model-inference/integrations/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Configure","slug":"configure","depth":2,"children":[{"title":"1. Install Codex","slug":"1-install-codex","depth":3,"children":[]},{"title":"2. Configure the model","slug":"2-configure-the-model","depth":3,"children":[]},{"title":"Option 1: Use an environment variable","slug":"option-1-use-an-environment-variable","depth":4,"children":[]},{"title":"Option 2: Store the token in config.toml","slug":"option-2-store-the-token-in-config-toml","depth":4,"children":[]},{"title":"Field Reference","slug":"field-reference","depth":4,"children":[]}]},{"title":"MCP Servers","slug":"mcp-servers","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/scitix-adfc65c2/71d9e3cb995fb63a/assistant-guard.js"],"subdomain":"scitix-adfc65c2","siteName":"ScitiX","title":"Codex - ScitiX","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-26T10:48:40.605Z","originalFileLocation":"model-inference/integrations/codex.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=\"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ScitiX\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Codex - ScitiX\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ScitiX Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scitix.ai/model-inference/integrations/codex\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scitix-adfc65c2.mintlify.app/_mintlify/api/og/v2?division=Coding+Agents\u0026amp;title=Codex\u0026amp;description=Learn+how+to+configure+Codex+CLI+and+the+VS+Code+extension+to+use+ScitiX+Model+Inference+through+config.toml+and+a+ScitiX+API+key.\u0026amp;theme=66446d36d3815c3a54012907\u0026amp;signature=125c99e6c1293a2d55332e1ad5597d8d9b0895dbb4bd405cd6f8660bfb4337fe\">\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=\"Codex - ScitiX\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scitix-adfc65c2.mintlify.app/_mintlify/api/og/v2?division=Coding+Agents\u0026amp;title=Codex\u0026amp;description=Learn+how+to+configure+Codex+CLI+and+the+VS+Code+extension+to+use+ScitiX+Model+Inference+through+config.toml+and+a+ScitiX+API+key.\u0026amp;theme=66446d36d3815c3a54012907\u0026amp;signature=125c99e6c1293a2d55332e1ad5597d8d9b0895dbb4bd405cd6f8660bfb4337fe\">\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/scitix-adfc65c2/F8DlhDrdwumorHBL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ScitiX\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scitix.ai/model-inference/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/model-inference/integrations/codex.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://scitix.ai/#organization\",\"name\":\"ScitiX\",\"url\":\"https://scitix.ai/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scitix-adfc65c2/UDvmXctEfVsXWOHh/logo/logo.png?fit=max\u0026auto=format\u0026n=UDvmXctEfVsXWOHh\u0026q=85\u0026s=277f160d7ff5cbfac6e30e6e62d69f9f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scitix.ai#website\",\"name\":\"ScitiX\",\"url\":\"https://docs.scitix.ai\",\"publisher\":{\"@id\":\"https://scitix.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scitix.ai/model-inference/integrations/codex#webpage\",\"url\":\"https://docs.scitix.ai/model-inference/integrations/codex\",\"name\":\"Codex\",\"description\":\"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\",\"dateModified\":\"2026-08-26T10:48:40.605Z\",\"isPartOf\":{\"@id\":\"https://docs.scitix.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scitix.ai/model-inference/integrations/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scitix.ai/model-inference/integrations/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tool Integrations\",\"item\":\"https://docs.scitix.ai/model-inference/integrations/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding Agents\",\"item\":\"https://docs.scitix.ai/model-inference/integrations/deepseek-harness\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Codex\",\"item\":\"https://docs.scitix.ai/model-inference/integrations/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.scitix.ai/model-inference/integrations/codex#article\",\"headline\":\"Codex\",\"name\":\"Codex\",\"description\":\"Learn how to configure Codex CLI and the VS Code extension to use ScitiX Model Inference through config.toml and a ScitiX API key.\",\"url\":\"https://docs.scitix.ai/model-inference/integrations/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scitix.ai/model-inference/integrations/codex#webpage\"},\"dateModified\":\"2026-08-26T10:48:40.605Z\",\"publisher\":{\"@id\":\"https://scitix.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scitix.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ScitiX\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ScitiX","nav":{"global":null,"tabs":[{"tab":"Model Inference","groups":[{"group":"Get Started","pages":[{"title":"Model Inference","sidebarTitle":"Overview","href":"/model-inference/get-started/model-inference-overview"},{"title":"Model Selection \u0026 Playground","sidebarTitle":"Model Selection \u0026 Playground","href":"/model-inference/get-started/model-selection-playground"},{"title":"First API Call","sidebarTitle":"First API Call","href":"/model-inference/get-started/first-api-call"},{"title":"Connect ScitiX Docs to AI","sidebarTitle":"Connect Docs to AI","href":"/model-inference/get-started/connect-docs-to-ai"}]},{"group":"Models","pages":[{"title":"Text Generation","href":"/model-inference/models/text-generation"},{"title":"Reasoning","href":"/model-inference/models/reasoning"},{"title":"Vision and Multimodal","href":"/model-inference/models/vision-and-multimodal"},{"title":"Embedding","href":"/model-inference/models/embedding"},{"title":"Speech","href":"/model-inference/models/speech"},{"title":"Function Calling","sidebarTitle":"Function Calling","href":"/model-inference/models/function-calling"},{"title":"Structured Output","sidebarTitle":"Structured Output","href":"/model-inference/models/structured-output"},{"title":"Streaming","sidebarTitle":"Streaming","href":"/model-inference/models/streaming"},{"title":"Long Context","sidebarTitle":"Long Context","href":"/model-inference/models/long-context"},{"title":"Prompt Caching","sidebarTitle":"Prompt Caching","href":"/model-inference/models/prompt-caching"}]},{"group":"Usage","pages":[{"title":"Token Usage and Billing","href":"/model-inference/usage/billing"},{"title":"View Usage","href":"/model-inference/usage/view-usage"},{"title":"View Metrics","href":"/model-inference/usage/view-metrics"},{"title":"API Keys","href":"/model-inference/usage/api-keys"}]},{"group":"API Guides","pages":[{"title":"Error Handling","href":"/model-inference/api/error-handling"}]},{"group":"Tool Integrations","pages":[{"title":"Integrations Overview","sidebarTitle":"Overview","href":"/model-inference/integrations/overview"},{"group":"Coding Agents","expanded":false,"pages":[{"title":"DeepSeek Harness","href":"/model-inference/integrations/deepseek-harness"},{"title":"Claude Code","description":"Learn how to configure the endpoint and API Key in Claude Code CLI and the VS Code extension, connect to the ScitiX endpoint, and use ScitiX models that support the Anthropic protocol for coding.","href":"/model-inference/integrations/claude-code"},{"title":"Codex","href":"/model-inference/integrations/codex"},{"title":"OpenCode","description":"Learn how to configure OpenCode with ScitiX Model Inference for terminal and IDE-based AI coding workflows.","href":"/model-inference/integrations/opencode"},{"title":"Qwen Code","href":"/model-inference/integrations/qwen-code"},{"title":"Aider","href":"/model-inference/integrations/aider"},{"title":"Goose","href":"/model-inference/integrations/goose"},{"title":"Crush","href":"/model-inference/integrations/crush"},{"title":"CC-Switch","href":"/model-inference/integrations/cc-switch"}]},{"group":"IDEs \u0026 Extensions","expanded":false,"pages":[{"title":"Cline","href":"/model-inference/integrations/cline"},{"title":"Cursor","href":"/model-inference/integrations/cursor"},{"title":"Roo Code","href":"/model-inference/integrations/roo-code"},{"title":"Kilo Code","href":"/model-inference/integrations/kilo-code"},{"title":"TRAE","href":"/model-inference/integrations/trae"},{"title":"Continue","href":"/model-inference/integrations/continue"},{"title":"Zed","href":"/model-inference/integrations/zed"}]},{"group":"Chat Clients","expanded":false,"pages":[{"title":"Cherry Studio","href":"/model-inference/integrations/cherry-studio"},{"title":"LobeChat","href":"/model-inference/integrations/lobechat"},{"title":"Open WebUI","href":"/model-inference/integrations/open-webui"},{"title":"NextChat","href":"/model-inference/integrations/nextchat"},{"title":"Chatbox","href":"/model-inference/integrations/chatbox"},{"title":"LibreChat","href":"/model-inference/integrations/librechat"}]},{"group":"Knowledge \u0026 RAG","expanded":false,"pages":[{"title":"RAGFlow","href":"/model-inference/integrations/ragflow"},{"title":"AnythingLLM","href":"/model-inference/integrations/anythingllm"},{"title":"FastGPT","href":"/model-inference/integrations/fastgpt"},{"title":"DB-GPT","href":"/model-inference/integrations/db-gpt"},{"title":"wiseflow","href":"/model-inference/integrations/wiseflow"}]},{"group":"Notes \u0026 Writing","expanded":false,"pages":[{"title":"Obsidian Copilot","href":"/model-inference/integrations/obsidian-copilot"},{"title":"Zotero","href":"/model-inference/integrations/zotero"},{"title":"SiYuan","href":"/model-inference/integrations/siyuan"}]},{"group":"Workflow \u0026 App Platforms","expanded":false,"pages":[{"title":"Dify","href":"/model-inference/integrations/dify"},{"title":"OpenClaw","href":"/model-inference/integrations/openclaw"},{"title":"Langflow","href":"/model-inference/integrations/langflow"},{"title":"Flowise","href":"/model-inference/integrations/flowise"},{"title":"n8n","href":"/model-inference/integrations/n8n"},{"title":"Deep Research","href":"/model-inference/integrations/deep-research"},{"title":"LangBot","href":"/model-inference/integrations/langbot"},{"title":"Refly","href":"/model-inference/integrations/refly"}]},{"group":"Frameworks \u0026 SDKs","expanded":false,"pages":[{"title":"LangChain","href":"/model-inference/integrations/langchain"},{"title":"LlamaIndex","href":"/model-inference/integrations/llamaindex"},{"title":"Vercel AI SDK","href":"/model-inference/integrations/vercel-ai-sdk"},{"title":"Pydantic AI","href":"/model-inference/integrations/pydantic-ai"},{"title":"LiteLLM","href":"/model-inference/integrations/litellm"},{"title":"CrewAI","href":"/model-inference/integrations/crewai"},{"title":"AutoGen","href":"/model-inference/integrations/autogen"},{"title":"OpenManus","href":"/model-inference/integrations/openmanus"},{"title":"LazyLLM","href":"/model-inference/integrations/lazyllm"},{"title":"Chat2Graph","href":"/model-inference/integrations/chat2graph"}]},{"group":"Translation","expanded":false,"pages":[{"title":"Immersive Translate","href":"/model-inference/integrations/immersive-translate"},{"title":"PDFMathTranslate Next","href":"/model-inference/integrations/pdfmathtranslate-next"}]}]}]},{"tab":"GPU Cloud","pages":[{"title":"GPU Cloud","href":"/gpu-cloud/get-started/gpu-cloud-overview"}]},{"tab":"Account","pages":[{"title":"Account","href":"/account/account-management/initialize-account"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/model-launch-records"}]}]},"title":"Codex - ScitiX","buildId":"dpl_ZKoZJZWLfCGm5ruRXZxKky7SA7U4","deploymentId":"dpl_ZKoZJZWLfCGm5ruRXZxKky7SA7U4","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-YNAtquhP.js","PlusIcon-BGwWTvXM.js","lightbox-handle-r17bVUz3.js"]}