Connect OpenAI’s Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.
Codex is OpenAI’s assistant, the one you use in its app, in your editor or
in the terminal. Connected to DarkFunnels, it works on your business while you
chat with it: it reads your agent’s playbook, the catalog, the conversations
and the customers, and suggests changes.
It is optional. You don’t need it to sell: your agent handles WhatsApp
just the same. It is a convenience if you already use Codex.
The dashboard is in Spanish, so its buttons and on-screen messages are quoted
here exactly as you will see them, with the English meaning in parentheses.
Before you start
You need an OpenAI account with access to Codex.
The Codex app, its editor extension and the terminal share the same
connection. You connect it once and it works in all three.
Have the account you use to sign in to the DarkFunnels dashboard at hand.
That is the one you will authorize with.
This is the link you will paste:
https://mcp.darkfunnels.ai/mcp?features=all
Thanks to ?features=all, you don’t have to touch it again: the features we
release later reach it on their own.
You also have it in the dashboard, ready to copy. In the left-hand menu,
inside Ventas (Sales), click Personalizar (Customize) and choose
Asistentes IA (AI assistants). At the top is the link with its Copiar
link (Copy link) button. Further down, under ¿Dónde lo pego? (Where do
I paste it?), the Codex tab has the settings path and the two terminal
commands, each with its Copiar (Copy) button.
The «¿Dónde lo pego?» (Where do I paste it?) card: one tab per assistant. In the screenshot the Claude Code one is selected; click the Codex one to see its settings path and its two commands.
Connect it from the app or the editor extension
1
Add the server
In Codex, go to Settings → MCP servers → Add server and choose
Streamable HTTP.
2
Paste the link and save
https://mcp.darkfunnels.ai/mcp?features=all
Leave the token field empty. Authorization happens separately, with
your account, not with a key.
3
Authorize with your account
Your browser opens on the DarkFunnels Autorizar acceso (Authorize
access) screen. Look at the Autorizas como… (You are authorizing
as…) line: it has to show the email you use to sign in to the dashboard.
If it does, click Autorizar (Authorize).If you weren’t signed in, it first asks you to sign in. And if you had
already authorized Codex with that account, it may go straight through,
without showing you the button.
Connect it from the terminal
It takes two commands. The first saves the server in Codex; the second opens
your browser to authorize.
Copy the whole command, quotes included. Without them, the terminal may
take the ? in the link as a wildcard and the command fails.
optimind is the name Codex saves this connection under. If you choose
another one, use the same name in both commands.
Depending on your Codex version, the first command may already open the
browser. If you authorized there, you are done. The second one is for
authorizing, or authorizing again, whenever you need to.
In the browser you see the same Autorizar acceso screen as above: check the
email and click Autorizar.To check that it was saved, type codex mcp list: optimind has to appear.
Try it
Open a new thread in Codex and ask it something, just like this:
“Review my conversations from yesterday and tell me where I’m losing
sales.”
“Read my agent’s playbook and suggest an improvement to the closing chapter;
save it once I approve it.”
“Give me the customers who have gone more than 3 days without a reply, and
what the agent would say to them to pick the conversation back up.”
Check which account it signed in with. Ask it “Which DarkFunnels account
are you connected to?”. It tells you the email and the company.If you manage your company’s apps, in the dashboard under Personalizar →
Asistentes IA you also see the Conectado · última actividad (Connected ·
last activity) badge, with the date, as soon as an assistant has worked in
your company.
What it can do with this link
With ?features=all your assistant can, among other things:
Read and edit the agent’s sales playbook, with a version history so you can
undo.
Review, create and update products in the catalog.
Review conversations and customers, and tag whoever needs a follow-up.
Warn you when your credit balance is about to run out, if your account can
see the balance.
That link also includes the features that have a real effect. Some send
real WhatsApp messages, such as replying to a customer as an operator. Others
spend credits, such as optimizing the playbook with AI or asking the copilot.
And creating a new funnel takes up a slot in your subscription.Would you rather it only read? Connect it with this link:
To change the link later, remove the server and add it again with the new
link. The link’s options are in The connection URL,
and each feature in the Tool reference.
It sees and does what your account can in the dashboard, nothing more. If
you don’t have access to an app in your company, your assistant can’t use its
features either.It doesn’t charge your customers or transfer money: it has no features for
that. Your customers’ messages reach it marked as data, not as commands. And
every action is logged: which tool it used, when, and with what result.
Cutting off access
There are two places, and it is best to use both.
1
In the dashboard: cut off access
Go to Personalizar → Asistentes IA and scroll down to the Seguridad
y acceso (Security and access) card. Under Asistentes con acceso a
tu cuenta (Assistants with access to your account) you see the ones you
authorized, each with the date you did it.Click Revocar (Revoke) next to the one you want to cut off and
confirm with Revocar. It loses access to your account within a few
seconds. To use it again, you have to connect it again.
2
In Codex: remove it from the list
In the app or the extension: Settings → MCP servers, and delete it. In
the terminal:
codex mcp remove optimind
«Seguridad y acceso» (Security and access): how the connection is protected and the «Asistentes con acceso a tu cuenta» (Assistants with access to your account) list. In this screenshot it is empty; each assistant you authorize shows up there with its «Revocar» (Revoke) button.
If an assistant shows up as Asistente sin nombre (Unnamed assistant), it
registered without a name: go by the date.
If something goes wrong
It can't see your data, or sees it empty
The most common cause is that you authorized with a different account.
Picking the wrong account doesn’t give an error: Codex stays connected to
that other account’s business.Ask it “Which DarkFunnels account are you connected to?”. It tells you
the email and the company.
If the account is yours but the company isn’t the one you expected, see
“It says your account changed company and won’t save changes”, below.
If both are right, see “It sees your data, but some features are
missing”.
If the account isn’t yours:
In the dashboard (optimind.darkfunnels.ai),
open your account menu (the circle with your initials, top right) and
click Cerrar sesión (Log out). Sign in with the right account.
Authorize Codex again. In the terminal: codex mcp logout optimind and
then codex mcp login optimind. In the app: remove the server and add
it again.
It says your account changed company and won't save changes
This happens if your account is in several companies. Each connection
is tied to the company you had selected in the dashboard the first time
your assistant used it. If you later switch companies in the dashboard, or
accept an invitation from another company (that also switches you to it),
it stops saving changes until you take one of the two steps below: that
way it doesn’t write to the wrong company. What it reads, on the other
hand, comes from the company you have selected now.
To stay in the first company: open your account menu in the
dashboard and click that company (under its name it says Cambiar a
esta empresa, Switch to this company).
To work in the new one: authorize Codex again. In the terminal:
codex mcp logout optimind and then codex mcp login optimind. In the
app: remove the server and add it again.
If instead it says «No se pudo confirmar en qué empresa trabaja esta
conexión» (Could not confirm which company this connection works in),
it was a hiccup while checking and it didn’t make the change. Ask it to
try again in a few seconds.More on this in Invite your team,
in the part about one account in several companies.
It sees your data, but some features are missing
Your assistant works with your permissions in that company. If you
don’t have access to an app (for example, Órdenes, Orders), or your
company doesn’t have it switched on, it can’t use its features. Ask
whoever manages your team for access:
Invite your team.If you have just been given access, wait a minute and open a new thread.Also check the link. If it has read_only=true, or if it doesn’t have
features=all, it connects fewer features. To change it, remove the server
and add it with the link above; then open a new thread.
New features don't show up
Start a new thread. Each conversation keeps the list of features it
had when you opened it.
You authorized fine, but the tools don't show up in the app's thread
Some versions of the Codex desktop app have had a bug that stops the tools
from loading in threads, even when authorization goes through
(openai/codex#20009).Update Codex and open a new thread. If nothing changes, use Codex from
the terminal or from the editor extension: they share the connection, so
you don’t have to connect it again.
The terminal command fails with «no matches found»
You copied it without the quotes and the terminal took the ? in the
link as a wildcard. Copy the whole command, with the quotes around the
link.
It says the session with DarkFunnels was revoked or expired
Someone clicked Revocar in the dashboard, or the authorization
expired. Authorize again: in the terminal, codex mcp login optimind; in
the app, remove the server and add it again.
The browser screen says «No se pudo autorizar» (Could not authorize)
The reason is written under the title. The most common one is that the
authorization request expired or arrived incomplete: go back to Codex and
start the authorization again, for example with
codex mcp login optimind.If it says it could not connect to the server, check your internet
connection and try again.
It says «Sin créditos» (Out of credits)
Your balance ran out, and the AI features stay stopped until you top up.
Top up in Administración → Dinero → Saldo y facturación
(Administration → Money → Balance and billing). In the side menu, click
Administración to expand it.If you don’t see that entry with the block expanded, your account doesn’t
have access to the company’s money: ask someone who does to top up. The
step by step is in
Credits and top-ups.
Last modified on October 19, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DarkFunnels","description":"Vende por WhatsApp con un agente de ventas IA — y opéralo desde tu asistente.","colors":{"primary":"#C2562A","light":"#D86A3C","dark":"#9A3F1C"},"logo":{"light":"https://mintcdn.com/darkfunnels/Df-1lKh1Aj5k8c-r/logo/light.svg?fit=max\u0026auto=format\u0026n=Df-1lKh1Aj5k8c-r\u0026q=85\u0026s=db60a9a883ed42e13a06aded18a08fb0","dark":"https://mintcdn.com/darkfunnels/Df-1lKh1Aj5k8c-r/logo/dark.svg?fit=max\u0026auto=format\u0026n=Df-1lKh1Aj5k8c-r\u0026q=85\u0026s=ab6a8b17d7e5e0d3b45de82ecd342327"},"favicon":"https://mintcdn.com/darkfunnels/Df-1lKh1Aj5k8c-r/favicon.svg?fit=max\u0026auto=format\u0026n=Df-1lKh1Aj5k8c-r\u0026q=85\u0026s=caa397a60f25d85c3d14d40fc8bb4841","navbar":{"primary":{"type":"button","label":"Entrar al panel","href":"https://optimind.darkfunnels.ai"}},"footer":{"socials":{"website":"https://darkfunnels.ai"}},"seo":{"metatags":{"og:locale":"es_PE"},"organization":{"id":"https://darkfunnels.ai/#organization","name":"DarkFunnels","url":"https://darkfunnels.ai","sameAs":["https://github.com/darkfunnels-ai"]},"indexing":"navigable"},"fonts":{"family":"Manrope"},"errors":{"404":{"redirect":false}},"contextual":{"options":["copy","view","claude","chatgpt","perplexity","cursor","vscode","mcp"],"display":"header"},"metadata":{"timestamp":true},"markdown":{"instructions":["DarkFunnels is a WhatsApp AI sales-agent platform used mainly in Peru and Latin America. The product interface and most of this documentation are in Spanish; the /en tree is the English mirror.","A business connects the WhatsApp number it already uses by scanning a QR code from the dashboard, the same linked-device mechanism as WhatsApp Web. It does not go through the Meta Cloud API (WhatsApp Business Platform), so there is no application to get approved and no message templates to submit. DarkFunnels is not a Meta product and is not affiliated with Meta.","DarkFunnels also publishes a remote MCP server at https://mcp.darkfunnels.ai/mcp?features=all (without parameters it only carries the default, mostly read-only set) so an assistant such as Claude, ChatGPT or Codex can operate the workspace on the owner's behalf, in one company and within the permissions of the person who connects it. The tool reference is at /referencia/tools and the connection parameters at /referencia/url-de-conexion.","The dashboard is https://optimind.darkfunnels.ai, the marketing site is https://darkfunnels.ai and the page written for AI agents is https://darkfunnels.ai/agents."]},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","default":true,"href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"darkfunnels","hasAudioNarration":false,"actualSubdomain":"darkfunnels","customDomains":["docs.darkfunnels.ai"],"gitSource":{"type":"github","owner":"darkfunnels-ai","repo":"optimind-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae23a1d15a6e626a2369abb","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"Guides","count":11},{"language":"es","tag":"Guías","count":11},{"language":"en","tag":"Getting started","count":8},{"language":"es","tag":"Primeros pasos","count":8},{"language":"en","tag":"Optional: run it from Claude or ChatGPT","count":6},{"language":"es","tag":"Opcional: opéralo desde Claude o ChatGPT","count":6},{"language":"en","tag":"Reference","count":3},{"language":"es","tag":"Referencia","count":3},{"language":"en","tag":"Start","count":1},{"language":"en","tag":"Security","count":1},{"language":"es","tag":"Empezar","count":1},{"language":"es","tag":"Seguridad","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:'JetBrains Mono';src:url('/fonts/jetbrains-mono-latin.woff2') format('woff2');font-weight:100 800;font-style:normal;font-display:swap}:root{--primary: 194 86 42;--primary-light: 216 106 60;--primary-dark: 154 63 28;--background-light: 255 255 255;--background-dark: 23 18 14;--gray-50: 247 245 241;--gray-100: 245 243 239;--gray-200: 237 234 228;--gray-300: 224 220 212;--gray-400: 154 144 137;--gray-500: 124 114 106;--gray-600: 107 98 91;--gray-700: 61 53 47;--gray-800: 42 35 29;--gray-900: 33 27 23;--gray-950: 23 18 14;--font-paper-mono: 'JetBrains Mono';--default-mono-font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular,\n Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;--rounded-xl: 18px}"}],"page":{"pagePath":"en/quickstarts/codex","slug":"/en/quickstarts/codex","pageMetadata":{"title":"Connect Codex to your WhatsApp AI agent","sidebarTitle":"Codex","description":"Connect OpenAI's Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.","keywords":["Codex MCP server","OpenAI Codex connector","streamable HTTP MCP","WhatsApp AI agent","codex mcp add"],"href":"/en/quickstarts/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: \"Connect OpenAI’s Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\"\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`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Codex is OpenAI’s assistant`}),`, the one you use in its app, in your editor or\nin the terminal. Connected to DarkFunnels, it works on your business while you\nchat with it: it reads your agent’s playbook, the catalog, the conversations\nand the customers, and suggests changes.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`It is optional.`}),` You don’t need it to sell: your agent handles WhatsApp\njust the same. It is a convenience if you already use Codex.`]})}),`\n`,_jsx(_components.p,{children:`The dashboard is in Spanish, so its buttons and on-screen messages are quoted\nhere exactly as you will see them, with the English meaning in parentheses.`}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You need an `,_jsx(_components.strong,{children:`OpenAI account with access to Codex`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The Codex app, its editor extension and the terminal `,_jsx(_components.strong,{children:`share the same\nconnection`}),`. You connect it once and it works in all three.`]}),`\n`,_jsxs(_components.li,{children:[`Have `,_jsx(_components.strong,{children:`the account you use to sign in to the DarkFunnels dashboard`}),` at hand.\nThat is the one you will authorize with.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This is the link you will paste:`}),`\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:`https://mcp.darkfunnels.ai/mcp?features=all`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Thanks to `,_jsx(_components.code,{children:`?features=all`}),`, you don’t have to touch it again: the features we\nrelease later reach it on their own.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You also have it in the dashboard, ready to copy.`}),` In the left-hand menu,\ninside `,_jsx(_components.strong,{children:`Ventas`}),` (`,_jsx(_components.em,{children:`Sales`}),`), click `,_jsx(_components.strong,{children:`Personalizar`}),` (`,_jsx(_components.em,{children:`Customize`}),`) and choose\n`,_jsx(_components.strong,{children:`Asistentes IA`}),` (`,_jsx(_components.em,{children:`AI assistants`}),`). At the top is the link with its `,_jsx(_components.strong,{children:`Copiar\nlink`}),` (`,_jsx(_components.em,{children:`Copy link`}),`) button. Further down, under `,_jsx(_components.strong,{children:`¿Dónde lo pego?`}),` (`,_jsx(_components.em,{children:`Where do\nI paste it?`}),`), the `,_jsx(_components.strong,{children:`Codex`}),` tab has the settings path and the two terminal\ncommands, each with its `,_jsx(_components.strong,{children:`Copiar`}),` (`,_jsx(_components.em,{children:`Copy`}),`) button.`]})}),`\n`,_jsx(Frame,{caption:`The «¿Dónde lo pego?» (Where do I paste it?) card: one tab per assistant. In the screenshot the Claude Code one is selected; click the Codex one to see its settings path and its two commands.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=28b7d474e69cabc230c0fb4edcf628dd`,alt:`The ¿Dónde lo pego? (Where do I paste it?) card with the claude.ai, Claude Code, Codex and ChatGPT tabs, the Claude Code one selected and its command with the Copiar (Copy) button`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`451`,height:`451`,\"data-path\":`images/asistentes/02-donde-lo-pego.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=280\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=21715574874e5abee5052dc03552398c 280w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=560\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=5e13829955928cc5f145ad55929c1335 560w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=840\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=547d9f0ab82329dcea88de03076ab8d6 840w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=1100\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=81a9cfb1e5fba48dd79a0e6083fd2b52 1100w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=1650\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=52f461d5cb26c984feefd0ae698421d9 1650w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/02-donde-lo-pego.png?w=2500\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=9bea05e217b99d1e4df312f0bd36e0f8 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`connect-it-from-the-app-or-the-editor-extension`,children:`Connect it from the app or the editor extension`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Add the server`,children:_jsxs(_components.p,{children:[`In Codex, go to `,_jsx(_components.strong,{children:`Settings → MCP servers → Add server`}),` and choose\n`,_jsx(_components.strong,{children:`Streamable HTTP`}),`.`]})}),_jsxs(Step,{title:`Paste the link and save`,children:[_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:`https://mcp.darkfunnels.ai/mcp?features=all`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Leave the token field `,_jsx(_components.strong,{children:`empty`}),`. Authorization happens separately, with\nyour account, not with a key.`]})]}),_jsxs(Step,{title:`Authorize with your account`,children:[_jsxs(_components.p,{children:[`Your browser opens on the DarkFunnels `,_jsx(_components.strong,{children:`Autorizar acceso`}),` (`,_jsx(_components.em,{children:`Authorize\naccess`}),`) screen. Look at the `,_jsx(_components.strong,{children:`Autorizas como…`}),` (`,_jsx(_components.em,{children:`You are authorizing\nas…`}),`) line: it has to show the email you use to sign in to the dashboard.\nIf it does, click `,_jsx(_components.strong,{children:`Autorizar`}),` (`,_jsx(_components.em,{children:`Authorize`}),`).`]}),_jsx(_components.p,{children:`If you weren’t signed in, it first asks you to sign in. And if you had\nalready authorized Codex with that account, it may go straight through,\nwithout showing you the button.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-it-from-the-terminal`,children:`Connect it from the terminal`}),`\n`,_jsx(_components.p,{children:`It takes two commands. The first saves the server in Codex; the second opens\nyour browser to authorize.`}),`\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:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` optimind`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://mcp.darkfunnels.ai/mcp?features=all\"`})]}),`\n`]})})}),`\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:` login`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` optimind`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Copy the whole command, quotes included.`}),` Without them, the terminal may\ntake the `,_jsx(_components.code,{children:`?`}),` in the link as a wildcard and the command fails.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`optimind`}),` is the name Codex saves this connection under.`]}),` If you choose\nanother one, use the same name in both commands.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Depending on your Codex version, the first command may already open the\nbrowser.`}),` If you authorized there, you are done. The second one is for\nauthorizing, or authorizing again, whenever you need to.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`In the browser you see the same `,_jsx(_components.strong,{children:`Autorizar acceso`}),` screen as above: check the\nemail and click `,_jsx(_components.strong,{children:`Autorizar`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`To check that it was saved, type `,_jsx(_components.code,{children:`codex mcp list`}),`: `,_jsx(_components.code,{children:`optimind`}),` has to appear.`]}),`\n`,_jsx(Heading,{level:`2`,id:`try-it`,children:`Try it`}),`\n`,_jsxs(_components.p,{children:[`Open a `,_jsx(_components.strong,{children:`new`}),` thread in Codex and ask it something, just like this:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Review my conversations from yesterday and tell me where I’m losing\nsales.”`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Read my agent’s playbook and suggest an improvement to the closing chapter;\nsave it once I approve it.”`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Give me the customers who have gone more than 3 days without a reply, and\nwhat the agent would say to them to pick the conversation back up.”`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check which account it signed in with.`}),` Ask it `,_jsx(_components.em,{children:`“Which DarkFunnels account\nare you connected to?”`}),`. It tells you the email and the company.`]}),`\n`,_jsxs(_components.p,{children:[`If you manage your company’s apps, in the dashboard under `,_jsx(_components.strong,{children:`Personalizar →\nAsistentes IA`}),` you also see the `,_jsx(_components.strong,{children:`Conectado · última actividad`}),` (`,_jsx(_components.em,{children:`Connected ·\nlast activity`}),`) badge, with the date, as soon as an assistant has worked in\nyour company.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-can-do-with-this-link`,children:`What it can do with this link`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`?features=all`}),` your assistant can, among other things:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Read and edit the agent’s sales playbook, with a version history so you can\nundo.`}),`\n`,_jsx(_components.li,{children:`Review, create and update products in the catalog.`}),`\n`,_jsx(_components.li,{children:`Review conversations and customers, and tag whoever needs a follow-up.`}),`\n`,_jsx(_components.li,{children:`Warn you when your credit balance is about to run out, if your account can\nsee the balance.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`That link also includes the features that have a real effect.`}),` Some send\nreal WhatsApp messages, such as replying to a customer as an operator. Others\nspend credits, such as optimizing the playbook with AI or asking the copilot.\nAnd creating a new funnel takes up a slot in your subscription.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Would you rather it only read?`}),` Connect it with this link:`]}),`\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:`https://mcp.darkfunnels.ai/mcp?features=all\u0026read_only=true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`To change the link later, remove the server and add it again with the new\nlink. The link’s options are in `,_jsx(_components.a,{href:`/en/reference/connection-url`,children:`The connection URL`}),`,\nand each feature in the `,_jsx(_components.a,{href:`/en/reference/tools`,children:`Tool reference`}),`.`]}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`It sees and does what your account can in the dashboard, nothing more.`}),` If\nyou don’t have access to an app in your company, your assistant can’t use its\nfeatures either.`]}),_jsx(_components.p,{children:`It doesn’t charge your customers or transfer money: it has no features for\nthat. Your customers’ messages reach it marked as data, not as commands. And\nevery action is logged: which tool it used, when, and with what result.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`cutting-off-access`,children:`Cutting off access`}),`\n`,_jsx(_components.p,{children:`There are two places, and it is best to use both.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`In the dashboard: cut off access`,children:[_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Personalizar → Asistentes IA`}),` and scroll down to the `,_jsx(_components.strong,{children:`Seguridad\ny acceso`}),` (`,_jsx(_components.em,{children:`Security and access`}),`) card. Under `,_jsx(_components.strong,{children:`Asistentes con acceso a\ntu cuenta`}),` (`,_jsx(_components.em,{children:`Assistants with access to your account`}),`) you see the ones you\nauthorized, each with the date you did it.`]}),_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Revocar`}),` (`,_jsx(_components.em,{children:`Revoke`}),`) next to the one you want to cut off and\nconfirm with `,_jsx(_components.strong,{children:`Revocar`}),`. It loses access to your account within a few\nseconds. To use it again, you have to connect it again.`]})]}),_jsxs(Step,{title:`In Codex: remove it from the list`,children:[_jsxs(_components.p,{children:[`In the app or the extension: `,_jsx(_components.strong,{children:`Settings → MCP servers`}),`, and delete it. In\nthe terminal:`]}),_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:` remove`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` optimind`})]}),`\n`]})})})]})]}),`\n`,_jsx(Frame,{caption:`«Seguridad y acceso» (Security and access): how the connection is protected and the «Asistentes con acceso a tu cuenta» (Assistants with access to your account) list. In this screenshot it is empty; each assistant you authorize shows up there with its «Revocar» (Revoke) button.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=d6316745b5b94dbdb26deff97b1fc6b3`,alt:`Seguridad y acceso (Security and access) card with three bullet points about the connection and the Asistentes con acceso a tu cuenta (Assistants with access to your account) list, which reads Ningún asistente tiene acceso a tu cuenta ahora (No assistant has access to your account right now)`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`451`,height:`451`,\"data-path\":`images/asistentes/03-seguridad-y-acceso.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=280\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=bb35604df85a7b0e313b39a26d5028d2 280w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=560\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=0b7e41a5d6a445a3c022810db0582d1f 560w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=840\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=2f49d77a67731728b7b47de2c82238cf 840w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=1100\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=d65d62958e53df8a31d920693a567f36 1100w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=1650\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=ca8cecdf819357ff5ee7723cbf4a9094 1650w, https://mintcdn.com/darkfunnels/fypBH9q351iR9qsC/images/asistentes/03-seguridad-y-acceso.png?w=2500\u0026fit=max\u0026auto=format\u0026n=fypBH9q351iR9qsC\u0026q=85\u0026s=e619620c270842e0aa559eb36a8cd018 2500w`})}),`\n`,_jsxs(_components.p,{children:[`If an assistant shows up as `,_jsx(_components.strong,{children:`Asistente sin nombre`}),` (`,_jsx(_components.em,{children:`Unnamed assistant`}),`), it\nregistered without a name: go by the date.`]}),`\n`,_jsx(Heading,{level:`2`,id:`if-something-goes-wrong`,children:`If something goes wrong`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`It can't see your data, or sees it empty`,id:`it-cant-see-your-data-or-sees-it-empty`,children:[_jsxs(_components.p,{children:[`The most common cause is that you authorized with `,_jsx(_components.strong,{children:`a different account`}),`.\nPicking the wrong account doesn’t give an error: Codex stays connected to\nthat other account’s business.`]}),_jsxs(_components.p,{children:[`Ask it `,_jsx(_components.em,{children:`“Which DarkFunnels account are you connected to?”`}),`. It tells you\nthe email and the company.`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`If the account is yours but the company isn’t the one you expected, see\n“It says your account changed company and won’t save changes”, below.`}),`\n`,_jsx(_components.li,{children:`If both are right, see “It sees your data, but some features are\nmissing”.`}),`\n`]}),_jsx(_components.p,{children:`If the account isn’t yours:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In the dashboard (`,_jsx(_components.a,{href:`https://optimind.darkfunnels.ai`,children:`optimind.darkfunnels.ai`}),`),\nopen your account menu (the circle with your initials, top right) and\nclick `,_jsx(_components.strong,{children:`Cerrar sesión`}),` (`,_jsx(_components.em,{children:`Log out`}),`). Sign in with the right account.`]}),`\n`,_jsxs(_components.li,{children:[`Authorize Codex again. In the terminal: `,_jsx(_components.code,{children:`codex mcp logout optimind`}),` and\nthen `,_jsx(_components.code,{children:`codex mcp login optimind`}),`. In the app: remove the server and add\nit again.`]}),`\n`]})]}),_jsxs(Accordion,{title:`It says your account changed company and won't save changes`,id:`it-says-your-account-changed-company-and-wont-save-changes`,children:[_jsxs(_components.p,{children:[`This happens if your account is in `,_jsx(_components.strong,{children:`several companies`}),`. Each connection\nis tied to the company you had selected in the dashboard the first time\nyour assistant used it. If you later switch companies in the dashboard, or\naccept an invitation from another company (that also switches you to it),\nit stops saving changes until you take one of the two steps below: that\nway it doesn’t write to the wrong company. What it reads, on the other\nhand, comes from the company you have selected now.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`To stay in the first company:`}),` open your account menu in the\ndashboard and click that company (under its name it says `,_jsx(_components.strong,{children:`Cambiar a\nesta empresa`}),`, `,_jsx(_components.em,{children:`Switch to this company`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`To work in the new one:`}),` authorize Codex again. In the terminal:\n`,_jsx(_components.code,{children:`codex mcp logout optimind`}),` and then `,_jsx(_components.code,{children:`codex mcp login optimind`}),`. In the\napp: remove the server and add it again.`]}),`\n`]}),_jsxs(_components.p,{children:[`If instead it says `,_jsx(_components.em,{children:`«No se pudo confirmar en qué empresa trabaja esta\nconexión»`}),` (`,_jsx(_components.em,{children:`Could not confirm which company this connection works in`}),`),\nit was a hiccup while checking and it didn’t make the change. Ask it to\ntry again in a few seconds.`]}),_jsxs(_components.p,{children:[`More on this in `,_jsx(_components.a,{href:`/en/getting-started/invite-your-team`,children:`Invite your team`}),`,\nin the part about one account in several companies.`]})]}),_jsxs(Accordion,{title:`It sees your data, but some features are missing`,id:`it-sees-your-data-but-some-features-are-missing`,children:[_jsxs(_components.p,{children:[`Your assistant works with `,_jsx(_components.strong,{children:`your permissions in that company`}),`. If you\ndon’t have access to an app (for example, `,_jsx(_components.strong,{children:`Órdenes`}),`, `,_jsx(_components.em,{children:`Orders`}),`), or your\ncompany doesn’t have it switched on, it can’t use its features. Ask\nwhoever manages your team for access:\n`,_jsx(_components.a,{href:`/en/getting-started/invite-your-team`,children:`Invite your team`}),`.`]}),_jsx(_components.p,{children:`If you have just been given access, wait a minute and open a new thread.`}),_jsxs(_components.p,{children:[`Also check the link. If it has `,_jsx(_components.code,{children:`read_only=true`}),`, or if it doesn’t have\n`,_jsx(_components.code,{children:`features=all`}),`, it connects fewer features. To change it, remove the server\nand add it with the link above; then open a new thread.`]})]}),_jsx(Accordion,{title:`New features don't show up`,id:`new-features-dont-show-up`,children:_jsxs(_components.p,{children:[`Start a `,_jsx(_components.strong,{children:`new thread`}),`. Each conversation keeps the list of features it\nhad when you opened it.`]})}),_jsxs(Accordion,{title:`You authorized fine, but the tools don't show up in the app's thread`,id:`you-authorized-fine-but-the-tools-dont-show-up-in-the-apps-thread`,children:[_jsxs(_components.p,{children:[`Some versions of the Codex desktop app have had a bug that stops the tools\nfrom loading in threads, even when authorization goes through\n(`,_jsx(_components.a,{href:`https://github.com/openai/codex/issues/20009`,children:`openai/codex#20009`}),`).`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Update Codex`}),` and open a new thread. If nothing changes, use Codex from\nthe terminal or from the editor extension: they share the connection, so\nyou don’t have to connect it again.`]})]}),_jsx(Accordion,{title:`The terminal command fails with «no matches found»`,id:`the-terminal-command-fails-with-no-matches-found`,children:_jsxs(_components.p,{children:[`You copied it `,_jsx(_components.strong,{children:`without the quotes`}),` and the terminal took the `,_jsx(_components.code,{children:`?`}),` in the\nlink as a wildcard. Copy the whole command, with the quotes around the\nlink.`]})}),_jsx(Accordion,{title:`It says the session with DarkFunnels was revoked or expired`,id:`it-says-the-session-with-darkfunnels-was-revoked-or-expired`,children:_jsxs(_components.p,{children:[`Someone clicked `,_jsx(_components.strong,{children:`Revocar`}),` in the dashboard, or the authorization\nexpired. Authorize again: in the terminal, `,_jsx(_components.code,{children:`codex mcp login optimind`}),`; in\nthe app, remove the server and add it again.`]})}),_jsxs(Accordion,{title:`The browser screen says «No se pudo autorizar» (Could not authorize)`,id:`the-browser-screen-says-no-se-pudo-autorizar-could-not-authorize`,children:[_jsxs(_components.p,{children:[`The reason is written under the title. The most common one is that the\nauthorization request expired or arrived incomplete: go back to Codex and\nstart the authorization again, for example with\n`,_jsx(_components.code,{children:`codex mcp login optimind`}),`.`]}),_jsx(_components.p,{children:`If it says it could not connect to the server, check your internet\nconnection and try again.`})]}),_jsxs(Accordion,{title:`It says «Sin créditos» (Out of credits)`,id:`it-says-sin-creditos-out-of-credits`,children:[_jsxs(_components.p,{children:[`Your balance ran out, and the AI features stay stopped until you top up.\nTop up in `,_jsx(_components.strong,{children:`Administración → Dinero → Saldo y facturación`}),`\n(`,_jsx(_components.em,{children:`Administration → Money → Balance and billing`}),`). In the side menu, click\n`,_jsx(_components.strong,{children:`Administración`}),` to expand it.`]}),_jsxs(_components.p,{children:[`If you don’t see that entry with the block expanded, your account doesn’t\nhave access to the company’s money: ask someone who does to top up. The\nstep by step is in\n`,_jsx(_components.a,{href:`/en/getting-started/credits-and-top-ups`,children:`Credits and top-ups`}),`.`]})]})]})]})}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":"Connect Codex to your WhatsApp AI agent","sidebarTitle":"Codex","description":"Connect OpenAI's Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.","keywords":["Codex MCP server","OpenAI Codex connector","streamable HTTP MCP","WhatsApp AI agent","codex mcp add"],"href":"/en/quickstarts/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Connect it from the app or the editor extension","slug":"connect-it-from-the-app-or-the-editor-extension","depth":2,"children":[]},{"title":"Connect it from the terminal","slug":"connect-it-from-the-terminal","depth":2,"children":[]},{"title":"Try it","slug":"try-it","depth":2,"children":[]},{"title":"What it can do with this link","slug":"what-it-can-do-with-this-link","depth":2,"children":[]},{"title":"Cutting off access","slug":"cutting-off-access","depth":2,"children":[]},{"title":"If something goes wrong","slug":"if-something-goes-wrong","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"darkfunnels","siteName":"DarkFunnels","title":"Connect Codex to your WhatsApp AI agent - DarkFunnels","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/quickstarts/codex","matchLevel":1},"en":{"href":"/en/quickstarts/codex","matchLevel":0}}},"lastModified":"2026-10-19T21:13:22.324Z","gitLastModified":"2026-10-19T21:13:00.000Z","originalFileLocation":"en/quickstarts/codex.mdx","locale":"en"},"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=\"Connect OpenAI\u0026#x27;s Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DarkFunnels\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_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/darkfunnels/HUHwZ7TPMDmPGRFh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect Codex to your WhatsApp AI agent - DarkFunnels\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect OpenAI\u0026#x27;s Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DarkFunnels\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.darkfunnels.ai/en/quickstarts/codex\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://darkfunnels.mintlify.site/_mintlify/api/og/v2?division=Optional%3A+run+it+from+Claude+or+ChatGPT\u0026amp;title=Connect+Codex+to+your+WhatsApp+AI+agent\u0026amp;description=Connect+OpenAI%27s+Codex+%28app%2C+editor+extension+or+terminal%29+to+your+DarkFunnels+business%3A+add+the+MCP+server%2C+paste+the+link+and+authorize+with+your+account.\u0026amp;theme=44930cb2340574a89b606982\u0026amp;signature=0aecd891a598ff16b292a3b1aca030f28802117b81f919374a4211599cb11f70\">\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=\"Connect Codex to your WhatsApp AI agent - DarkFunnels\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect OpenAI\u0026#x27;s Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://darkfunnels.mintlify.site/_mintlify/api/og/v2?division=Optional%3A+run+it+from+Claude+or+ChatGPT\u0026amp;title=Connect+Codex+to+your+WhatsApp+AI+agent\u0026amp;description=Connect+OpenAI%27s+Codex+%28app%2C+editor+extension+or+terminal%29+to+your+DarkFunnels+business%3A+add+the+MCP+server%2C+paste+the+link+and+authorize+with+your+account.\u0026amp;theme=44930cb2340574a89b606982\u0026amp;signature=0aecd891a598ff16b292a3b1aca030f28802117b81f919374a4211599cb11f70\">\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/darkfunnels/HUHwZ7TPMDmPGRFh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DarkFunnels\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C2562A\">\u003cmeta data-mint-head name=\"og:locale\" content=\"es_PE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.darkfunnels.ai/en/quickstarts/codex\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/quickstarts/codex.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.darkfunnels.ai/en/quickstarts/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.darkfunnels.ai/quickstarts/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.darkfunnels.ai/quickstarts/codex\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://darkfunnels.ai/#organization\",\"name\":\"DarkFunnels\",\"url\":\"https://darkfunnels.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/darkfunnels/Df-1lKh1Aj5k8c-r/logo/light.svg?fit=max\u0026auto=format\u0026n=Df-1lKh1Aj5k8c-r\u0026q=85\u0026s=db60a9a883ed42e13a06aded18a08fb0\"},\"sameAs\":[\"https://github.com/darkfunnels-ai\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.darkfunnels.ai#website\",\"name\":\"DarkFunnels\",\"url\":\"https://docs.darkfunnels.ai\",\"publisher\":{\"@id\":\"https://darkfunnels.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.darkfunnels.ai/en/quickstarts/codex#webpage\",\"url\":\"https://docs.darkfunnels.ai/en/quickstarts/codex\",\"name\":\"Connect Codex to your WhatsApp AI agent\",\"description\":\"Connect OpenAI's Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\",\"dateModified\":\"2026-10-19T21:13:00.000Z\",\"isPartOf\":{\"@id\":\"https://docs.darkfunnels.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.darkfunnels.ai/en/quickstarts/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.darkfunnels.ai/en/quickstarts/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Optional: run it from Claude or ChatGPT\",\"item\":\"https://docs.darkfunnels.ai/en/quickstarts/claude-ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect Codex to your WhatsApp AI agent\",\"item\":\"https://docs.darkfunnels.ai/en/quickstarts/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.darkfunnels.ai/en/quickstarts/codex#article\",\"headline\":\"Connect Codex to your WhatsApp AI agent\",\"name\":\"Connect Codex to your WhatsApp AI agent\",\"description\":\"Connect OpenAI's Codex (app, editor extension or terminal) to your DarkFunnels business: add the MCP server, paste the link and authorize with your account.\",\"url\":\"https://docs.darkfunnels.ai/en/quickstarts/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.darkfunnels.ai/en/quickstarts/codex#webpage\"},\"dateModified\":\"2026-10-19T21:13:00.000Z\",\"keywords\":\"Codex MCP server, OpenAI Codex connector, streamable HTTP MCP, WhatsApp AI agent, codex mcp add\",\"publisher\":{\"@id\":\"https://darkfunnels.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.darkfunnels.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DarkFunnels\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DarkFunnels\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/quickstarts/codex.md","siteName":"DarkFunnels","nav":{"global":null,"languages":[{"language":"es","default":true,"pages":[{"title":"es","href":"/quickstarts/codex"}]},{"language":"en","groups":[{"group":"Start","pages":[{"title":"DarkFunnels documentation","sidebarTitle":"Overview","href":"/en"}]},{"group":"Getting started","pages":[{"title":"Start your WhatsApp AI sales agent free trial","sidebarTitle":"Create your account","href":"/en/getting-started/create-your-account"},{"title":"Your WhatsApp AI agent dashboard, day one","sidebarTitle":"Your first look","href":"/en/getting-started/first-look"},{"title":"WhatsApp sales platform modules: the apps","sidebarTitle":"The apps","href":"/en/getting-started/the-apps"},{"title":"Your first funnel and its WhatsApp AI sales agent","sidebarTitle":"Your first funnel","href":"/en/getting-started/your-first-funnel"},{"title":"Connect WhatsApp without the Business API","sidebarTitle":"Connect WhatsApp","href":"/en/getting-started/connect-whatsapp"},{"title":"WhatsApp AI agent credits and top-ups","sidebarTitle":"Credits and top-ups","href":"/en/getting-started/credits-and-top-ups"},{"title":"WhatsApp AI agent pricing and plans","sidebarTitle":"Pricing","href":"/en/getting-started/pricing"},{"title":"Invite your team","href":"/en/getting-started/invite-your-team"}]},{"group":"Guides","pages":[{"title":"WhatsApp AI agent sales script: the playbook","sidebarTitle":"The sales playbook","href":"/en/guides/sales-playbook"},{"title":"WhatsApp AI sales agent tools: what the agent can do","sidebarTitle":"The agent's tools","href":"/en/guides/tools"},{"title":"Funnel settings","href":"/en/guides/funnel-settings"},{"title":"Product catalog for a WhatsApp AI agent","sidebarTitle":"The catalog","href":"/en/guides/catalog"},{"title":"Send files from a WhatsApp AI agent: the Library","sidebarTitle":"The file Library","href":"/en/guides/library"},{"title":"WhatsApp shared inbox for AI agents","sidebarTitle":"The conversation inbox","href":"/en/guides/conversations"},{"title":"WhatsApp sales orders and conversion metrics","sidebarTitle":"Orders and metrics","href":"/en/guides/orders-and-metrics"},{"title":"The referral network","href":"/en/guides/referral-network"},{"title":"Your funnels","href":"/en/guides/your-funnels"},{"title":"Meta pixel for WhatsApp conversions","sidebarTitle":"Meta pixel","href":"/en/guides/meta-pixel"},{"title":"Connect your Meta ads","sidebarTitle":"Meta ads","href":"/en/guides/meta-ads"}]},{"group":"Reference","pages":[{"title":"WhatsApp AI sales agent glossary","sidebarTitle":"Glossary","href":"/en/reference/glossary"},{"title":"WhatsApp AI agent troubleshooting FAQ","sidebarTitle":"FAQ","href":"/en/reference/faq"},{"title":"Tool reference","href":"/en/reference/tools"}]},{"group":"Security","pages":[{"title":"WhatsApp AI agent data retention and privacy","sidebarTitle":"Security and privacy","href":"/en/security"}]},{"group":"Optional: run it from Claude or ChatGPT","pages":[{"title":"Connect Claude to your WhatsApp AI agent","sidebarTitle":"claude.ai","href":"/en/quickstarts/claude-ai"},{"title":"Claude Code MCP connector setup","sidebarTitle":"Claude Code","description":"Connect Claude Code to your DarkFunnels business: the terminal command, how to authorize with /mcp, what to do if it hangs and how to cut off access.","href":"/en/quickstarts/claude-code"},{"title":"Connect Codex to your WhatsApp AI agent","sidebarTitle":"Codex","href":"/en/quickstarts/codex"},{"title":"Connect ChatGPT to your WhatsApp agent","sidebarTitle":"ChatGPT","description":"Connect ChatGPT to DarkFunnels with developer mode: which plan you need, the link you paste, how to authorize and how to cut off access.","href":"/en/quickstarts/chatgpt"},{"title":"MCP setup for Cursor, VS Code and others","sidebarTitle":"Cursor, VS Code and others","href":"/en/quickstarts/other-mcp-clients"},{"title":"MCP connection URL parameters","sidebarTitle":"Connection URL","href":"/en/reference/connection-url"}]}]}]},"basePath":"","title":"Connect Codex to your WhatsApp AI agent - DarkFunnels","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-D2acuaLg.js","DynamicMarkdown-Co5nikxh.js","zoom-image-lightbox-BbK2OBGL.js","lightbox-handle-r17bVUz3.js"]}