Skip to Content
AI agents

Connect Codex

Connect Codex to Sell so it can search the Sell docs and check your store data while it writes code.

All agents
OpenAI

Codex is OpenAI's coding agent, in the terminal or the ChatGPT desktop app.

Quick start

Add Sell to Codex

Add Sell from the terminal or from the ChatGPT desktop app. Both use the same configuration, so one is enough.

In the terminal, run these commands. The second one opens your browser:

codex mcp add sellapp --url https://sell.app/mcp
codex mcp login sellapp

In the desktop app, open Settings, then MCP servers. Choose Add server, enter sellapp as the name, choose Streamable HTTP, enter https://sell.app/mcp, then choose Save, Restart and Authenticate.

Codex saves the server in ~/.codex/config.toml. To use it in one project only, add this to the project's .codex/config.toml instead. Codex reads that file only in trusted projects:

[mcp_servers.sellapp]
url = "https://sell.app/mcp"

Sign in to Sell

When Codex opens your browser, sign in to Sell if asked.

Approve access

On the Connect to Sell MCP screen, check that it names Codex and that Signed in as shows the Sell account you want, then choose Authorize MCP. If the screen says SellApp can't confirm its name, that's expected for a tool on your computer. Codex can then reach every store you can open, limited by your role in each.

Try a prompt

Ask Codex:

List my Sell stores, then find the API operation that lists products and show me one product.

It worked when /mcp in Codex, or in the desktop app's composer, lists sellapp.

The desktop app, Codex CLI and the Codex IDE extension share this configuration, so a server added in one shows up in the others.

Example prompts

Create a checkout for my Design kit product with the Node SDK.
Write a webhook receiver that verifies Sell signatures and saves each event before it replies.
Which API operation refunds an order, and what does it need?
Search the Sell docs for how pagination works, then list every order in my store.

The code your agent writes calls the Sell API with an API key, not with this connection. Create a key as shown in Authentication and keep it in an environment variable such as SELLAPP_API_KEY. Sell MCP does not accept API keys, and the REST API does not accept the MCP sign-in.

What you can do

While it writes code that uses the Sell API and SDKs, Codex can search the Sell docs and API reference, read your store data to check its work, and change your store. Most changes show you a preview and wait for your approval. Changes are real; there's no test store. Your role in each store limits what Codex can do. You can disconnect it any time under MCP access in your Sell account.

The Sell CLI can also install a ready-made Sell skill for your coding agent.

Troubleshoot

Use Sell MCP covers more errors.

FAQ

Other agents

On this page