Your browser opens, you sign in, and you pick which account to connect. The token is stored in your OS keyring.
The consent screen has up to three checkboxes — for your datasets, for managing people on the account, and for author mode. Building, changing, publishing and sharing apps works without any of them. Tick what you need now or later, from Account → Connections, without reconnecting. See what you’re granting.
3
Check it's wired up
codex mcp list
Then, in a session:
> List my Gainable apps
Build something
Drop a spreadsheet in an empty folder and ask:
> Have Gaia build an event planning app using the Excel file in this folder
Codex imports the workbook, walks the contract conversation with you, then runs the build pipeline. When the harness needs a decision it presents the options as a numbered list in chat — reply with the number or the option name and it continues.
Note the “Have Gaia” at the front. The first message has to name the product or Codex will just answer it itself, without ever calling the connector — see Say “Gaia” in your first message.
Then keep talking. The app is in context now, so follow-ups don’t need to name it:
> add a probability column to the deals table> publish it
Long builds
build takes 90–180 seconds and a chat turn can take over a minute. If your client doesn’t send a progress token, the connector hands the wait back after about 50 seconds with outcome:"running" rather than risk the call being abandoned.That is not a failure. The right response is a status call, which Codex should make on its own.
Never ask Codex to run the build again to check on it. The first build is still running server-side, so a second start isn’t a retry — it creates duplicate work someone has to clear by hand. The same goes for re-sending a chat message.
Manage the connection
codex mcp list # what's registeredcodex mcp logout gainable # drop the stored tokencodex mcp remove gainable # remove the server
Same connector, same tools, same harness — only the client’s interface differs:
Claude Code
Codex
Add the server
claude mcp add --transport http
codex mcp add --url
Sign in
/mcp → Authenticate
codex mcp login gainable
Forwarding harness questions
AskUserQuestion picker
Numbered list in chat
Build progress
Live task list
Plain-text stage updates
The connector is an MCP server, not a shell command, so there are no per-command approval rules to configure. Codex asks once when a tool is first used, and that’s it.
Next steps
Tool reference
Every tool the connector exposes.
Claude Code
The same connector, in Claude Code.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gainable","colors":{"primary":"#ff6b34","light":"#ff8a5c","dark":"#e55a24"},"logo":{"light":"https://mintcdn.com/gainable/F4mHtn-Y58puYSFi/images/gainable-logo-v2.svg?fit=max\u0026auto=format\u0026n=F4mHtn-Y58puYSFi\u0026q=85\u0026s=b206d1462666b22c7c765e5583bd41d8","dark":"https://mintcdn.com/gainable/F4mHtn-Y58puYSFi/images/gainable-logo-v2-light.svg?fit=max\u0026auto=format\u0026n=F4mHtn-Y58puYSFi\u0026q=85\u0026s=d8b328870a32131b453796d230c17ef9"},"favicon":"https://mintcdn.com/gainable/F4mHtn-Y58puYSFi/images/icon4.svg?fit=max\u0026auto=format\u0026n=F4mHtn-Y58puYSFi\u0026q=85\u0026s=fcef44deffbc885f02f8f29c049affec","navbar":{"links":[{"href":"mailto:support@gainable.dev","label":"Support"}],"primary":{"type":"button","label":"Start building","href":"https://build.gainable.dev"}},"footer":{"socials":{"github":"https://github.com/gainable-inc","linkedin":"https://linkedin.com/company/gainable"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Get started","icon":"rocket","href":"https://build.gainable.dev"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gainable","hasAudioNarration":false,"actualSubdomain":"gainable","customDomains":["docs.gainable.dev"],"gitSource":{"type":"github","owner":"gainable-inc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a900cdef841464614743afc","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":44},{"language":"default","tag":"Gaia Autopilot","count":11},{"language":"default","tag":"MCP connector","count":6},{"language":"default","tag":"Building apps","count":5},{"language":"default","tag":"Gaia Copilot","count":5},{"language":"default","tag":"Prompt guide","count":5},{"language":"default","tag":"Skills reference","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Concepts","count":3},{"language":"default","tag":"Reference","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@gainable.dev","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"site-roles","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":[]}
{"page":{"pagePath":"mcp/codex","slug":"/mcp/codex","pageMetadata":{"title":"Codex","description":"Add the Gaia connector to OpenAI Codex and build apps from your terminal","href":"/mcp/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: \"Add the Gaia connector to OpenAI Codex and build apps from your terminal\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Note,Step,Steps,Table,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://developers.openai.com/codex`,children:`OpenAI Codex`}),` speaks MCP, so the Gaia connector works there the same way it does in Claude Code — two commands, then you’re building.`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-the-connector`,children:`Add the connector`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Register the server`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gainable`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://build.gainable.dev/mcp`})]}),`\n`]})})})}),_jsxs(Step,{title:`Sign in`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gainable`})]}),`\n`]})})}),_jsx(_components.p,{children:`Your browser opens, you sign in, and you pick which account to connect. The token is stored in your OS keyring.`}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`The consent screen has up to three checkboxes — for your `,_jsx(_components.strong,{children:`datasets`}),`, for `,_jsx(_components.strong,{children:`managing people`}),` on the account, and for `,_jsx(_components.a,{href:`/mcp/tools#author-mode`,children:`author mode`}),`. Building, changing, publishing and sharing apps works without any of them. Tick what you need now or later, from `,_jsx(_components.a,{href:`https://build.gainable.dev/account/connections`,children:`Account → Connections`}),`, without reconnecting. See `,_jsx(_components.a,{href:`/mcp/overview#what-youre-granting`,children:`what you’re granting`}),`.`]})})]}),_jsxs(Step,{title:`Check it's wired up`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`]})})}),_jsx(_components.p,{children:`Then, in a session:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`> List my Gainable apps`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`build-something`,children:`Build something`}),`\n`,_jsx(_components.p,{children:`Drop a spreadsheet in an empty folder and ask:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`> Have Gaia build an event planning app using the Excel file in this folder`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Codex imports the workbook, walks the contract conversation with you, then runs the build pipeline. When the harness needs a decision it presents the options as a numbered list in chat — reply with the number or the option name and it continues.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`No spreadsheet handy? Download the `,_jsx(_components.a,{href:`https://www.gainable.dev/samples/horizon-summit-2026-planning.xlsx`,children:`event planning sample`}),` and use that.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Note the `,_jsx(_components.strong,{children:`“Have Gaia”`}),` at the front. The first message has to name the product or Codex will just answer it itself, without ever calling the connector — see `,_jsx(_components.a,{href:`/mcp/overview#say-gaia-in-your-first-message`,children:`Say “Gaia” in your first message`}),`.`]})}),`\n`,_jsx(_components.p,{children:`Then keep talking. The app is in context now, so follow-ups don’t need to name it:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`> add a probability column to the deals table`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`> publish it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`long-builds`,children:`Long builds`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`build`}),` takes 90–180 seconds and a `,_jsx(_components.code,{children:`chat`}),` turn can take over a minute. If your client doesn’t send a progress token, the connector hands the wait back after about 50 seconds with `,_jsx(_components.code,{children:`outcome:\"running\"`}),` rather than risk the call being abandoned.`]}),`\n`,_jsxs(_components.p,{children:[`That is `,_jsx(_components.strong,{children:`not`}),` a failure. The right response is a `,_jsx(_components.code,{children:`status`}),` call, which Codex should make on its own.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never ask Codex to run the build again to check on it. The first build is still running server-side, so a second start isn’t a retry — it creates duplicate work someone has to clear by hand. The same goes for re-sending a `,_jsx(_components.code,{children:`chat`}),` message.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`manage-the-connection`,children:`Manage the connection`}),`\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:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # what's registered`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` logout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gainable`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # drop the stored token`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` remove`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gainable`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # remove the server`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You can also review or revoke the grant from `,_jsx(_components.a,{href:`https://build.gainable.dev/account/connections`,children:`Account → Connections`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-codex-differs-from-claude-code`,children:`How Codex differs from Claude Code`}),`\n`,_jsx(_components.p,{children:`Same connector, same tools, same harness — only the client’s interface differs:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Claude Code`}),_jsx(_components.th,{children:`Codex`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Add the server`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`claude mcp add --transport http`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`codex mcp add --url`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sign in`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`/mcp`}),` → Authenticate`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`codex mcp login gainable`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Forwarding harness questions`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`AskUserQuestion`}),` picker`]}),_jsx(_components.td,{children:`Numbered list in chat`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Build progress`}),_jsx(_components.td,{children:`Live task list`}),_jsx(_components.td,{children:`Plain-text stage updates`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The connector is an MCP server, not a shell command, so there are no per-command approval rules to configure. Codex asks once when a tool is first used, and that’s it.`})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Tool reference`,icon:`wrench`,href:`/mcp/tools`,children:_jsx(_components.p,{children:`Every tool the connector exposes.`})}),_jsx(Card,{title:`Claude Code`,icon:`terminal`,href:`/mcp/claude-code`,children:_jsx(_components.p,{children:`The same connector, in Claude Code.`})})]})]})}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":"Add the Gaia connector to OpenAI Codex and build apps from your terminal","href":"/mcp/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Add the connector","slug":"add-the-connector","depth":2,"children":[]},{"title":"Build something","slug":"build-something","depth":2,"children":[]},{"title":"Long builds","slug":"long-builds","depth":2,"children":[]},{"title":"Manage the connection","slug":"manage-the-connection","depth":2,"children":[]},{"title":"How Codex differs from Claude Code","slug":"how-codex-differs-from-claude-code","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gainable","siteName":"Gainable","title":"Codex - Gainable","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T11:20:26.748Z","originalFileLocation":"mcp/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=\"Add the Gaia connector to OpenAI Codex and build apps from your terminal\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gainable\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_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/gainable/boC_coHiIdRWZWl9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Codex - Gainable\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add the Gaia connector to OpenAI Codex and build apps from your terminal\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gainable\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gainable.dev/mcp/codex\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gainable.mintlify.site/_mintlify/api/og/v2?division=MCP+connector\u0026amp;title=Codex\u0026amp;description=Add+the+Gaia+connector+to+OpenAI+Codex+and+build+apps+from+your+terminal\u0026amp;theme=de573ed84fa609bd3fc7b27d\u0026amp;signature=d77f1e4ae5eda808953a38fbb51aaa50ae7e80c408a30255617a399e55f297cf\">\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 - Gainable\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add the Gaia connector to OpenAI Codex and build apps from your terminal\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gainable.mintlify.site/_mintlify/api/og/v2?division=MCP+connector\u0026amp;title=Codex\u0026amp;description=Add+the+Gaia+connector+to+OpenAI+Codex+and+build+apps+from+your+terminal\u0026amp;theme=de573ed84fa609bd3fc7b27d\u0026amp;signature=d77f1e4ae5eda808953a38fbb51aaa50ae7e80c408a30255617a399e55f297cf\">\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/gainable/boC_coHiIdRWZWl9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gainable\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff6b34\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gainable.dev/mcp/codex\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mcp/codex.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gainable.dev/#organization\",\"name\":\"Gainable\",\"url\":\"https://docs.gainable.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gainable/F4mHtn-Y58puYSFi/images/gainable-logo-v2.svg?fit=max\u0026auto=format\u0026n=F4mHtn-Y58puYSFi\u0026q=85\u0026s=b206d1462666b22c7c765e5583bd41d8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gainable.dev#website\",\"name\":\"Gainable\",\"url\":\"https://docs.gainable.dev\",\"publisher\":{\"@id\":\"https://docs.gainable.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gainable.dev/mcp/codex#webpage\",\"url\":\"https://docs.gainable.dev/mcp/codex\",\"name\":\"Codex\",\"description\":\"Add the Gaia connector to OpenAI Codex and build apps from your terminal\",\"dateModified\":\"2026-08-13T11:20:26.748Z\",\"isPartOf\":{\"@id\":\"https://docs.gainable.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gainable.dev/mcp/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gainable.dev/mcp/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP connector\",\"item\":\"https://docs.gainable.dev/mcp/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Codex\",\"item\":\"https://docs.gainable.dev/mcp/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gainable.dev/mcp/codex#article\",\"headline\":\"Codex\",\"name\":\"Codex\",\"description\":\"Add the Gaia connector to OpenAI Codex and build apps from your terminal\",\"url\":\"https://docs.gainable.dev/mcp/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gainable.dev/mcp/codex#webpage\"},\"dateModified\":\"2026-08-13T11:20:26.748Z\",\"publisher\":{\"@id\":\"https://docs.gainable.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gainable.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gainable\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gainable\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/mcp/codex.md","siteName":"Gainable","nav":{"global":{"anchors":[{"anchor":"Get started","icon":"rocket","href":"https://build.gainable.dev"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Build from data","href":"/build-from-data"}]},{"group":"Concepts","pages":[{"title":"How it works","href":"/concepts/how-it-works"},{"title":"Build agents","href":"/concepts/agents"},{"title":"Skills","href":"/concepts/skills"}]},{"group":"Prompt guide","pages":[{"title":"Prompt strategy","href":"/prompting/overview"},{"title":"Best practices","href":"/prompting/best-practices"},{"title":"Changing a built app","href":"/prompting/refining"},{"title":"Examples","href":"/prompting/examples"},{"title":"Common patterns","href":"/prompting/common-patterns"}]},{"group":"Building apps","pages":[{"title":"Datasets","href":"/building/data-connectors"},{"title":"Data models","href":"/building/data-models"},{"title":"Views","href":"/building/views"},{"title":"Real-time updates","href":"/building/real-time"},{"title":"Collaboration","href":"/building/collaboration"}]},{"group":"Gaia Copilot","pages":[{"title":"Gaia Copilot","href":"/copilots/overview"},{"title":"Configuring a Copilot","href":"/copilots/configuring"},{"title":"Data access","href":"/copilots/data-access"},{"title":"Knowledge bases","href":"/copilots/knowledge"},{"title":"Embedding","href":"/copilots/embedding"}]},{"group":"Gaia Autopilot","pages":[{"title":"Gaia Autopilot","href":"/autopilot/overview"},{"title":"Objectives","href":"/autopilot/objectives"},{"title":"Playbooks","href":"/autopilot/playbooks"},{"title":"Triggers","href":"/autopilot/triggers"},{"title":"Tools","href":"/autopilot/tools"},{"title":"Risk tiers","href":"/autopilot/risk-tiers"},{"title":"Inbox","href":"/autopilot/inbox"},{"title":"Scopes","href":"/autopilot/scopes"},{"title":"Agent action log","href":"/autopilot/agent-action-log"},{"title":"Connect outbound","href":"/autopilot/connect-outbound"},{"title":"Recipes","href":"/autopilot/recipes"}]},{"group":"Skills reference","pages":[{"title":"Charts \u0026 visualization","href":"/skills/chartjs"},{"title":"Kanban boards","href":"/skills/kanban"},{"title":"Collaboration features","href":"/skills/weavy"},{"title":"Design \u0026 theming","href":"/skills/design"}]},{"group":"MCP connector","pages":[{"title":"Overview","href":"/mcp/overview"},{"title":"Claude Code","href":"/mcp/claude-code"},{"title":"Claude and Cowork","description":"Add the Gaia connector to Claude chat, Cowork, and Claude Desktop","href":"/mcp/claude"},{"title":"Codex","href":"/mcp/codex"},{"title":"Tool reference","description":"Every tool the Gaia connector exposes, and what each parameter does","href":"/mcp/tools"},{"title":"Recurring data pipelines","href":"/mcp/datasets"}]},{"group":"Reference","pages":[{"title":"API reference","href":"/reference/api"},{"title":"Troubleshooting","href":"/reference/troubleshooting"}]}]}]},"basePath":"","title":"Codex - Gainable","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}