The login step opens a browser. Approve the connection there and Codex stores the
credential.If codex mcp add rejects --url, your Codex build predates remote HTTP MCP support. Run
codex update and try again.
Check it works
codex mcp list
hive should appear as connected. Then start a session.
codex mcp login needs an interactive terminal.
Ask your client: “What Hive tools do you have?” Expect nine: find_token, get_token_price,
check_token_safety, research_token, analyze_wallet, market_positioning,
market_overview, defi_yields and prediction_markets. An empty list means the connection
or sign-in failed. Go back to the sign-in step on this page.
Ask: “Is PEPE on Ethereum safe to buy, and what is it worth?”
Confirm the answer names GoPlus and CoinGecko with a fetch time. An answer with no source
came from the model’s memory, not from Hive.
Headless use
Codex keeps its MCP servers in ~/.codex/config.toml under mcp_servers. Where no browser is
available, point Codex at an environment variable rather than writing a key to disk:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hive Intelligence","colors":{"primary":"#C54C1A","light":"#F9A47E","dark":"#D14E1E"},"logo":{"light":"https://mintcdn.com/hiveintelligence/z2eI8RG0NmaZGREf/logo/light.png?fit=max\u0026auto=format\u0026n=z2eI8RG0NmaZGREf\u0026q=85\u0026s=0de67fa652fbfa4c39ba17281e04bbbe","dark":"https://mintcdn.com/hiveintelligence/z2eI8RG0NmaZGREf/logo/dark.png?fit=max\u0026auto=format\u0026n=z2eI8RG0NmaZGREf\u0026q=85\u0026s=6cae1fcd67139d0c5020904baaaa3e47"},"favicon":"https://mintcdn.com/hiveintelligence/z2eI8RG0NmaZGREf/favicon.png?fit=max\u0026auto=format\u0026n=z2eI8RG0NmaZGREf\u0026q=85\u0026s=f71a2f79aa7bafab37d0ed80be4d4256","navbar":{"links":[{"href":"https://www.hiveintelligence.xyz/status","label":"Status"},{"href":"https://www.hiveintelligence.xyz/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.hiveintelligence.xyz/dashboard"}},"footer":{"socials":{"x":"https://x.com/Hive_Intel","github":"https://github.com/hive-intel/hive-sdk","telegram":"https://t.me/HiveIntelligence"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity",{"title":"Add Hive to Cursor","description":"Install the Hive MCP server in Cursor","icon":"plug","href":"https://cursor.com/link/mcp/install?name=hive\u0026config=eyJ1cmwiOiJodHRwczovL21jcC5oaXZlaW50ZWxsaWdlbmNlLnh5ei9tY3AifQ%3D%3D"},{"title":"Add Hive to VS Code","description":"Install the Hive MCP server in VS Code","icon":"plug","href":"https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522hive%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fmcp.hiveintelligence.xyz%252Fmcp%2522%257D"},{"title":"Add Hive to Claude","description":"Add Hive as a custom connector in Claude","icon":"plug","href":"https://claude.ai/customize/connectors?modal=add-custom-connector\u0026connectorName=Hive\u0026connectorUrl=https%3A%2F%2Fmcp.hiveintelligence.xyz%2Fmcp"}],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hiveintelligence","hasAudioNarration":false,"actualSubdomain":"hiveintelligence","customDomains":["docs.hiveintelligence.xyz"],"gitSource":{"type":"github","owner":"sharpe-labs","repo":"hive-intelligence","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af4812b0b89564432bd879b","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Install","count":13},{"language":"default","tag":"Tools","count":12},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"CLI","count":2},{"language":"default","tag":"Agent skills","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:not(.dark) footer a[href*=\"utm_campaign=poweredBy\"]{color:#57534e}"}],"page":{"pagePath":"install/codex","slug":"/install/codex","pageMetadata":{"title":"Install the Hive MCP server in Codex CLI","sidebarTitle":"Codex CLI","description":"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.","href":"/install/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 Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\"\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`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`add-and-authorize`,children:`Add and authorize`}),`\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:`#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:` hive`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://mcp.hiveintelligence.xyz/mcp?via=docs-codex'`})]}),`\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:` login`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hive`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The login step opens a browser. Approve the connection there and Codex stores the\ncredential.`}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`codex mcp add`}),` rejects `,_jsx(_components.code,{children:`--url`}),`, your Codex build predates remote HTTP MCP support. Run\n`,_jsx(_components.code,{children:`codex update`}),` and try again.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-it-works`,children:`Check it works`}),`\n`,_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`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hive`}),` should appear as connected. Then start a session.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`codex mcp login`}),` needs an interactive terminal.`]})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Ask your client: “What Hive tools do you have?” Expect nine: `,_jsx(_components.code,{children:`find_token`}),`, `,_jsx(_components.code,{children:`get_token_price`}),`,\n`,_jsx(_components.code,{children:`check_token_safety`}),`, `,_jsx(_components.code,{children:`research_token`}),`, `,_jsx(_components.code,{children:`analyze_wallet`}),`, `,_jsx(_components.code,{children:`market_positioning`}),`,\n`,_jsx(_components.code,{children:`market_overview`}),`, `,_jsx(_components.code,{children:`defi_yields`}),` and `,_jsx(_components.code,{children:`prediction_markets`}),`. An empty list means the connection\nor sign-in failed. Go back to the sign-in step on this page.`]}),`\n`,_jsx(_components.li,{children:`Ask: “Is PEPE on Ethereum safe to buy, and what is it worth?”`}),`\n`,_jsx(_components.li,{children:`Confirm the answer names GoPlus and CoinGecko with a fetch time. An answer with no source\ncame from the model’s memory, not from Hive.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`headless-use`,children:`Headless use`}),`\n`,_jsxs(_components.p,{children:[`Codex keeps its MCP servers in `,_jsx(_components.code,{children:`~/.codex/config.toml`}),` under `,_jsx(_components.code,{children:`mcp_servers`}),`. Where no browser is\navailable, point Codex at an environment variable rather than writing a key to disk:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_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:`mcp_servers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`hive`}),_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:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://mcp.hiveintelligence.xyz/mcp?via=docs-codex\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bearer_token_env_var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HIVE_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you need the key inline instead, use `,_jsx(_components.code,{children:`http_headers`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_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:`mcp_servers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`hive`}),_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:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://mcp.hiveintelligence.xyz/mcp?via=docs-codex\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`http_headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_HIVE_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/authentication`,children:`authentication`}),` for where to get a key.`]})]})}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":"Install the Hive MCP server in Codex CLI","sidebarTitle":"Codex CLI","description":"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.","href":"/install/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Add and authorize","slug":"add-and-authorize","depth":2,"children":[]},{"title":"Check it works","slug":"check-it-works","depth":2,"children":[]},{"title":"Headless use","slug":"headless-use","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"hiveintelligence","siteName":"Hive Intelligence","title":"Install the Hive MCP server in Codex CLI - Hive Intelligence","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T09:03:16.067Z","originalFileLocation":"install/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 Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hive Intelligence\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_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/hiveintelligence/gzUiV1UR4fTiVCKt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Install the Hive MCP server in Codex CLI - Hive Intelligence\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hive Intelligence\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hiveintelligence.xyz/install/codex\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hiveintelligence.mintlify.site/_mintlify/api/og/v2?division=Install\u0026amp;title=Install+the+Hive+MCP+server+in+Codex+CLI\u0026amp;description=Add+Hive+to+Codex+CLI+with+mcp+add.+Log+in+through+your+browser%2C+or+pass+a+bearer+token+instead%2C+then+test+it+with+a+live+price+question.\u0026amp;theme=b2b42f837d67e4710d5d7220\u0026amp;signature=c61065472bb1ddf4b09c2527e47e3617cd9cda7ce6fb494c146ea1a1598febd0\">\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=\"Install the Hive MCP server in Codex CLI - Hive Intelligence\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hiveintelligence.mintlify.site/_mintlify/api/og/v2?division=Install\u0026amp;title=Install+the+Hive+MCP+server+in+Codex+CLI\u0026amp;description=Add+Hive+to+Codex+CLI+with+mcp+add.+Log+in+through+your+browser%2C+or+pass+a+bearer+token+instead%2C+then+test+it+with+a+live+price+question.\u0026amp;theme=b2b42f837d67e4710d5d7220\u0026amp;signature=c61065472bb1ddf4b09c2527e47e3617cd9cda7ce6fb494c146ea1a1598febd0\">\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/hiveintelligence/gzUiV1UR4fTiVCKt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hive Intelligence\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C54C1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hiveintelligence.xyz/install/codex\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/install/codex.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hiveintelligence.xyz/#organization\",\"name\":\"Hive Intelligence\",\"url\":\"https://docs.hiveintelligence.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hiveintelligence/z2eI8RG0NmaZGREf/logo/light.png?fit=max\u0026auto=format\u0026n=z2eI8RG0NmaZGREf\u0026q=85\u0026s=0de67fa652fbfa4c39ba17281e04bbbe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hiveintelligence.xyz#website\",\"name\":\"Hive Intelligence\",\"url\":\"https://docs.hiveintelligence.xyz\",\"publisher\":{\"@id\":\"https://docs.hiveintelligence.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hiveintelligence.xyz/install/codex#webpage\",\"url\":\"https://docs.hiveintelligence.xyz/install/codex\",\"name\":\"Install the Hive MCP server in Codex CLI\",\"description\":\"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\",\"dateModified\":\"2026-11-06T09:03:16.067Z\",\"isPartOf\":{\"@id\":\"https://docs.hiveintelligence.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hiveintelligence.xyz/install/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hiveintelligence.xyz/install/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Install\",\"item\":\"https://docs.hiveintelligence.xyz/install\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install the Hive MCP server in Codex CLI\",\"item\":\"https://docs.hiveintelligence.xyz/install/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hiveintelligence.xyz/install/codex#article\",\"headline\":\"Install the Hive MCP server in Codex CLI\",\"name\":\"Install the Hive MCP server in Codex CLI\",\"description\":\"Add Hive to Codex CLI with mcp add. Log in through your browser, or pass a bearer token instead, then test it with a live price question.\",\"url\":\"https://docs.hiveintelligence.xyz/install/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hiveintelligence.xyz/install/codex#webpage\"},\"dateModified\":\"2026-11-06T09:03:16.067Z\",\"publisher\":{\"@id\":\"https://docs.hiveintelligence.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hiveintelligence.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hive Intelligence\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hive Intelligence\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/install/codex.md","siteName":"Hive Intelligence","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"Crypto market data MCP for AI agents","sidebarTitle":"Overview","href":"/index"},{"title":"Quickstart: connect Hive to your AI client","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Authenticate with the Hive MCP server","sidebarTitle":"Authentication","href":"/authentication"}]},{"group":"Install","pages":[{"title":"Install the Hive crypto MCP server","sidebarTitle":"Install Hive","href":"/install/index"},{"title":"Install the Hive MCP server in Claude Code","sidebarTitle":"Claude Code","href":"/install/claude-code"},{"title":"Install the Hive MCP server in Claude Desktop","sidebarTitle":"Claude Desktop","href":"/install/claude-desktop"},{"title":"Install the Hive MCP server in Cursor","sidebarTitle":"Cursor","href":"/install/cursor"},{"title":"Install the Hive MCP server in Windsurf","sidebarTitle":"Windsurf","href":"/install/windsurf"},{"title":"Install the Hive MCP server in VS Code","sidebarTitle":"VS Code","href":"/install/vs-code"},{"title":"Install the Hive MCP server in ChatGPT","sidebarTitle":"ChatGPT","href":"/install/chatgpt"},{"title":"Install the Hive MCP server in Grok","sidebarTitle":"Grok","description":"Add Hive to Grok as a custom connector and approve access in your browser. Grok can then answer crypto questions with live, sourced data.","href":"/install/grok"},{"title":"Install the Hive MCP server in Codex CLI","sidebarTitle":"Codex CLI","href":"/install/codex"},{"title":"Install the Hive MCP server in Kimi Code CLI","sidebarTitle":"Kimi Code CLI","description":"Add Hive to Kimi Code CLI as a remote MCP server, authorize in your browser, then confirm the connection with a live price question.","href":"/install/kimi-cli"},{"title":"Install the Hive MCP server in Qwen Code","sidebarTitle":"Qwen Code","href":"/install/qwen-code"},{"title":"Install the Hive MCP server in Gemini CLI","sidebarTitle":"Gemini CLI","href":"/install/gemini-cli"},{"title":"Connect any MCP client to Hive","sidebarTitle":"Compatible MCP clients","href":"/install/generic"}]},{"group":"Concepts","pages":[{"title":"How the Hive MCP server works","sidebarTitle":"How Hive works","href":"/concepts/how-it-works"},{"title":"Receipts: provenance on every answer","sidebarTitle":"Receipts","href":"/concepts/receipts"},{"title":"Limits and credits","sidebarTitle":"Limits and credits","href":"/concepts/limits"},{"title":"Crypto data sources behind Hive","sidebarTitle":"Data sources","href":"/concepts/data-sources"}]},{"group":"CLI","pages":[{"title":"Hive CLI for crypto market data","sidebarTitle":"Hive CLI","href":"/cli/index"},{"title":"Hive CLI command reference","sidebarTitle":"CLI commands","href":"/cli/commands"}]},{"group":"Agent skills","pages":[{"title":"Agent skills for Hive","sidebarTitle":"Agent skills","href":"/skills/index"},{"title":"Hive agent skills reference","sidebarTitle":"Skills reference","href":"/skills/packs"}]},{"group":"Guides","pages":[{"title":"Crypto agent workflow guides","sidebarTitle":"Guides","href":"/guides/index"},{"title":"Example prompts for the nine Hive tools","sidebarTitle":"Example prompts","href":"/guides/example-prompts"},{"title":"Check token contract security with an AI agent","sidebarTitle":"Token security","href":"/guides/token-security"},{"title":"Crypto market intelligence with an AI agent","sidebarTitle":"Market intelligence","href":"/guides/market-intelligence"},{"title":"Analyze a crypto wallet with an AI agent","sidebarTitle":"Wallet analysis","href":"/guides/wallet-analysis"},{"title":"Compare DeFi yields with an AI agent","sidebarTitle":"DeFi yield","href":"/guides/defi-yield"},{"title":"Feed a crypto trading bot live market data","sidebarTitle":"Trading bot","href":"/guides/trading-bot"}]},{"group":"Tools","pages":[{"title":"The nine Hive tools","sidebarTitle":"Tools","href":"/tools/index"},{"title":"Crypto price and market data MCP tools (135 tools)","sidebarTitle":"Market Data \u0026 Price","href":"/tools/market-data"},{"title":"On-chain DEX and pool analytics MCP tools","sidebarTitle":"On-Chain DEX \u0026 Pool Analytics","href":"/tools/dex-analytics"},{"title":"Crypto portfolio and wallet MCP tools","sidebarTitle":"Portfolio \u0026 Wallet","href":"/tools/portfolio"},{"title":"Token and contract data MCP tools","sidebarTitle":"Token \u0026 Contract Data","href":"/tools/token-contract"},{"title":"DeFi protocol analytics MCP tools","sidebarTitle":"DeFi Protocol Analytics","href":"/tools/defi"},{"title":"NFT analytics MCP tools","sidebarTitle":"NFT Analytics","href":"/tools/nft"},{"title":"Token security and risk analysis MCP tools","sidebarTitle":"Security \u0026 Risk Analysis","href":"/tools/security"},{"title":"Blockchain network and infrastructure MCP tools","sidebarTitle":"Network \u0026 Infrastructure","href":"/tools/network"},{"title":"Crypto search and discovery MCP tools","sidebarTitle":"Search \u0026 Discovery","href":"/tools/search"},{"title":"Prediction market MCP tools","sidebarTitle":"Prediction Markets","href":"/tools/prediction-markets"},{"title":"Live Hive tool catalog","sidebarTitle":"Live catalog","href":"/tools/live-catalog"}]},{"group":"Reference","pages":[{"title":"Hive MCP error codes","sidebarTitle":"Errors","href":"/reference/errors"},{"title":"Hive MCP response format and provenance","sidebarTitle":"Response format","href":"/reference/response-format"},{"title":"Hive MCP rate limits by plan","sidebarTitle":"Rate limits","href":"/reference/rate-limits"},{"title":"Known limitations of the Hive MCP server","sidebarTitle":"Known limitations","href":"/reference/known-limitations"},{"title":"Hive MCP FAQ","sidebarTitle":"FAQ","href":"/reference/faq"},{"title":"Hive MCP server changelog","sidebarTitle":"Changelog","href":"/reference/changelog"}]}]},"basePath":"","title":"Install the Hive MCP server in Codex CLI - Hive Intelligence","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}