AI

ChatGPT Codex for ecommerce: build and run an online store

Build an online store with ChatGPT Codex: connect it to CloudCart via MCP and a PAT token, compare Codex pricing and use prompts that fill your catalog.

The CloudCart team16 min read
A terminal conversation with Codex next to an online store admin where products and categories are appearing
In this article · 19 sections
  1. Can ChatGPT build an online store?
  2. What is ChatGPT Codex, and how much does it cost?
  3. ChatGPT in the browser, the ChatGPT app or Codex?
  4. How Codex gets into your store: MCP, CLI and the platform reference
  5. How to install Codex on Windows and Mac: the CLI and the Codex app
  6. What do you need before you start?
  7. How to build an online store with ChatGPT Codex, step by step
  8. The first conversation: from an empty store to a finished catalog
  9. What ChatGPT can't do alone: payments, shipping, VAT and invoices
  10. What Codex can do in your store every day
  11. 5 sales-growth tasks to give Codex
  12. ChatGPT Shopping: will ChatGPT recommend your store?
  13. Bulk changes with Codex: how to avoid surprises
  14. Security: permissions, keys and what OpenAI sees
  15. How much does an online store with ChatGPT Codex cost?
  16. ChatGPT Codex or Claude Code for an online store?
  17. Common mistakes with a Codex-run store
  18. Checklist: a Codex-built store ready for its first order
  19. Frequently asked questions

In short: Codex is OpenAI's AI agent inside ChatGPT, and with it you build and run an online store by writing plain sentences (for regular work, the Plus plan at $20 a month is enough). You open a CloudCart store, give Codex the connection sentence and a PAT access key, and Codex creates the products. The platform supplies the cart, card payments, shipping and invoices. A new store costs €1 a month for the first 3 months.

Can ChatGPT build an online store?

The ChatGPT chat cannot do it on its own. It writes a product description or a list of categories, but the text stays in the window: there is no cart, no checkout and no shipping. Ask it to "build me an online store" and you get code that someone then has to host, update and secure.

The route that works has two parts: a hosted ecommerce platform that provides the cart, payments, couriers, invoices, security and hosting, and an AI agent that works inside it for you. At OpenAI that agent is Codex. It connects to your store and saves what you tell it: products, prices, categories, descriptions, discounts, the way a member of staff would in the admin.

What is ChatGPT Codex, and how much does it cost?

Codex is OpenAI's agent for code and commands, and it is part of ChatGPT: same account, same subscription. Unlike the chat, it carries out the task itself: it runs tools, checks the result and shows you what it did. (In 2021 "Codex" was also the name of an OpenAI code model, so older articles may describe something else.)

Form of CodexFor a CloudCart store
Codex CLI in your terminalThe recommended route: it runs the local Dev MCP and the CloudCart CLI
The Codex app or Codex mode in the ChatGPT desktop app (macOS, Windows)Works if you prefer a window; same MCP settings as the CLI in ~/.codex/config.toml
Editor extension (VS Code and compatible editors)If you already work in a code editor
Codex in the cloudCannot reach the tools on your computer, so not for running the store

Codex pricing. Codex CLI is open source and costs nothing to download, but the model needs a ChatGPT plan. The plans on OpenAI's Codex pricing page, in US dollars a month:

ChatGPT planPriceCodex in the plan
Entry plan$0Quick tasks in the desktop app with GPT-6 Luna (rolling out); enough to try it
Go$8Lightweight tasks with GPT-6 Luna
Plus$20Web, CLI, editor and iOS, with GPT-6.1 Sol and GPT-6 Luna; enough for most stores
Pro$100, $200 or $500Higher limits, no five-hour limit
Business$20 per user billed annually (2+ users), $25 monthlyNo training on business data by default

OpenAI estimates that Plus gives, per 5 hours, 15 to 160 messages with GPT-6.1 Sol and 350 to 3,000 with the lighter GPT-6 Luna, and a weekly limit may apply. So build the catalog with Sol, category by category, and ask small daily questions with Luna. When the limit runs out, Plus and Pro let you buy credits. Codex and ChatGPT Work share the same limits. GPT-5.5 is no longer offered in Codex with ChatGPT sign-in, so ignore older "GPT-5 Codex" guides on that point. Connecting Codex to CloudCart has no fee.

ChatGPT in the browser, the ChatGPT app or Codex?

The browser chat cannot run local tools, so it cannot reach your store; use it for ideas and copy. The ChatGPT desktop app reaches the store only in Codex mode: OpenAI's MCP documentation says the desktop app, Codex CLI and the editor extension share one MCP configuration. If you are starting from scratch, choose Codex CLI in the terminal; CloudCart's instructions also say to use Codex if the app cannot start the local server. The terminal is only the window you type into, and after the first sentence it reads like an ordinary chat.

How Codex gets into your store: MCP, CLI and the platform reference

MCP (Model Context Protocol) is an open standard that tells an AI agent which tools exist in an outside system and how to call them. Claude Code, Cursor, Gemini CLI and VS Code get a CloudCart plugin; Codex has none, so after the connection sentence it installs the parts itself:

PartWhat it doesTouches store data?
CloudCart CLICarries every real read and change, signed in with your keyYes, only this part
Dev MCPSearches the Admin GraphQL API schema and checks every request before it runsNo
Platform referenceA public copy of the CloudCart documentation, about 2,500 pagesNo
Rules in ~/.codex/AGENTS.mdStanding instructions: data only through the CLI, requests checked firstNo
Storefront MCPFor a custom Nitrogen storefront, only if you choose developmentNo

Dev MCP knows what can be called, and the CLI calls it with your key's permissions, so Codex checks each request against the live schema before it runs.

How to install Codex on Windows and Mac: the CLI and the Codex app

The commands come from OpenAI's official repository at github.com/openai/codex:

SystemCommand in the terminal
macOS or Linuxcurl -fsSL https://chatgpt.com/codex/install.sh | sh
Windows (PowerShell)powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
Any system with Node.jsnpm install -g @openai/codex
macOS with Homebrewbrew install --cask codex

Then type codex and choose "Sign in with ChatGPT". For a window instead of a terminal, type codex app. Check that node -v shows version 20 or newer, because the CloudCart CLI and Dev MCP run on Node.js.

Note: sign in with your ChatGPT account. An OpenAI API key also works, but usage is then billed at API prices, separately from your subscription.

What do you need before you start?

  • A CloudCart store and owner access: only the owner can create PAT tokens.
  • Codex with a ChatGPT plan that includes it, or an OpenAI API key.
  • Node.js 20 or newer and git. Codex installs them where it can and tells you when it needs administrator rights.
  • Your product list: a supplier spreadsheet, an old export or a description in words.

How to build an online store with ChatGPT Codex, step by step

  1. Open your store in CloudCart and note its address, for example mystore.cloudcart.net, or use your own domain.
  2. Start Codex by typing codex in the terminal.
  3. Paste the connection sentence and press Enter:
    Fetch and follow the instructions at https://raw.githubusercontent.com/cloudcart/ai-toolkit/main/prompt.md to set up my AI agent for CloudCart
  4. Answer two questions: your language, and whether the connection is for running the store (the default) or for development.
  5. Approve the commands. Codex registers Dev MCP, downloads the reference, installs the CloudCart CLI and writes its rules. Read each command before you approve it.
  6. Create an access key. In the admin, open the bottom-left menu (or Settings) → "PAT Tokens" → Create Token. Name it "Codex" and choose permissions. The key starts with cc_pat_ and is shown only once.
  7. Give Codex the key and your store address, without https://. It signs in with cloudcart auth login and checks with cloudcart auth status.
  8. Restart Codex once if it asks, so the new MCP tools load. It then confirms the connection.

To add Dev MCP by hand, run codex mcp add cloudcart-dev-mcp -- npx -y @cloudcart/dev-mcp@latest or add a [mcp_servers.cloudcart-dev-mcp] section to ~/.codex/config.toml. The instructions are public at github.com/cloudcart/ai-toolkit and on the ChatGPT Codex integration with CloudCart page.

The first conversation: from an empty store to a finished catalog

Here is a store selling loose-leaf tea, one message per step:

  1. The plan. "Before you change anything in the store, always show me the plan and wait for my yes." With Codex this comes first (see bulk changes below).
  2. Categories. "I sell about 40 loose-leaf teas plus teapots. Create categories by tea type, plus Teaware and Gift Sets."
  3. Products from a file. "Here is my spreadsheet. Create the products with names, prices, SKUs and stock. Save them as hidden and show me which rows have no photo."
  4. Variants. "Every tea comes in 50 g and 250 g. Make them variants at €8 and €32."
  5. Descriptions and SEO. "For Green Tea, write 3-sentence descriptions from the spreadsheet only, plus an SEO title up to 60 characters. Show me a table before saving."
  6. Going live. "Show me hidden products with a price and a photo. If they look right, make them visible."

Selling in several EU countries? A common set-up is a separate store per country with its own language, currency and domain. Each has its own PAT tokens, so tell Codex which store a task is for. See multilanguage, multicurrency and multistore selling.

What ChatGPT can't do alone: payments, shipping, VAT and invoices

ChatGPT writes a product page in minutes. Money, parcels and tax need contracts and connections that someone maintains every day.

TaskChatGPT aloneIn CloudCart
Card paymentsWrites payment code; contract and security stay with youCloudCart Pay with Visa, Mastercard, Apple Pay and Google Pay; Stripe and PayPal can be connected too
ShippingNo courier connectionIntegrations such as GLS for Europe, DHL worldwide and Sendcloud, with the price in the cart
VAT across EU countriesExplains the rulesA tax rule per country with the "One Stop Shop" switch, for B2C sales above the EU-wide €10,000 threshold under the OSS scheme, in place since 1 July 2021
InvoicesWrites a templateInvoice numbers on orders, PDF download and CSV export for your accountant
Abandoned cartsCannot see who leftAn automatic email with a link back after a set time (depends on the plan)
Shopper questionsAnswers you, not your customersAura Chat answers shoppers from your catalog and pages

Codex can guide you through these settings, but courier contracts, VAT registrations and your company details for CloudCart Pay are yours. More in EU VAT and the One Stop Shop and cross-border ecommerce in the EU.

What Codex can do in your store every day

Codex works with everything the CloudCart Admin GraphQL API offers: products, variants, stock, orders, customers, discounts, blog and settings. Typical messages:

  • "Take 15% off everything in Winter until Sunday."
  • "Here is the supplier's new price list. Update prices by SKU and show me which are missing."
  • "Which products are under 5 units? Make me a reorder table."
  • "How does the abandoned cart email work, and where do I change it?"

"How do I" questions are answered from the CloudCart reference; "what is in my store" questions from your data, which needs at least a read key.

5 sales-growth tasks to give Codex

GoalPrompt for Codex
Higher average order"Which products are most often bought together? Suggest 5 bundles priced 10% below the total."
Free shipping threshold"What was my average order value over 90 days? Suggest a free shipping threshold just above it."
More Google traffic"Show products with descriptions under 50 words, sorted by sales."
Lost sales"Which products have 0 stock but sold last month?"
Visibility in ChatGPT"What should my store's llms.txt file say?"

Go further with raising your average order value, lifting your conversion rate, the SEO checklist for an online store and the automatic emails every store needs.

ChatGPT Shopping: will ChatGPT recommend your store?

According to OpenAI's page for merchants, shopping in ChatGPT is live only for users in the United States, with other regions to follow, and merchants join a waitlist to share product data. For a European seller, what you control today:

  • The llms.txt file. In Marketing → SEO → "Llms.txt file", say what you sell and which pages matter. It is published at your-domain/llms.txt within five minutes. One text serves every domain of a store, so with a store per country each country gets its own.
  • Complete product data: price, stock, brand, weight, origin. AI assistants quote concrete facts.
  • Pages with answers: shipping, returns, warranty, which Aura Chat also answers from.

The full guide: GEO: how to get AI search to recommend your store.

Bulk changes with Codex: how to avoid surprises

A store change has no undo button. The paid daily backup either restores the whole store to a chosen day, losing what came after, or only brings back deleted records. In Claude Code and the other plugin agents, CloudCart's skills enforce a preview before bulk changes; Codex only has its AGENTS.md rules, so ask for these yourself:

  • A plan first: "Show me which products you will change, old and new values, and wait for my yes."
  • A small test: "Do it for 3 products only."
  • A copy of old values: "Save the current prices to a CSV file on my computer first."
  • Hide instead of delete: a hidden product comes back with one sentence.

Note: the simplest safeguard is a Read Only key while you get used to Codex. Swap it for a write key when you start building the catalog.

Security: permissions, keys and what OpenAI sees

Codex has no account of its own; it works with the key you created under PAT Tokens and only within its limits:

Access levelWhat it allows
Read OnlySees everything, changes nothing
Full AccessReads and changes everything
Custom PermissionsSelected areas only, for example products and nothing else

Give each key an expiry date and, if you work from one place, an IP limit; without one the key works for anyone who has it. Switch a key off or delete it and access stops at once. A store holds up to 100 keys, so give Codex its own.

The data Codex reads is processed by OpenAI under your account's terms; on Business it is not used for training by default. Under the GDPR, applicable since 25 May 2018, your store is responsible for customer data, and Article 28 requires a contract with any processor. To keep that data away from the agent, use Custom Permissions without Customers and Orders. See GDPR, cookies and the legal pages of an online store.

How much does an online store with ChatGPT Codex cost?

Your CloudCart plan plus your OpenAI subscription. CloudCart plans, excluding VAT and billed annually, are Baby Pack at €14, Starter Pack at €33, CC Pro at €83 and CC Master at €249 a month, all with 0% commission on your sales. Example: Baby Pack plus Codex on Plus is about €14 + $20 a month after the first 3 months at €1. Every feature by plan is on the CloudCart pricing page.

ChatGPT Codex or Claude Code for an online store?

AgentSafeguards for bulk changesChoose it if
ChatGPT CodexYou ask for them in the conversationYou already pay for ChatGPT
Claude CodeBuilt into the CloudCart plugin's skillsYou want the safeguards ready
Cursor, Gemini CLI, VS CodeCome with the CloudCart skillsYou already work in one of them

All use the same connection sentence. See Claude Code for ecommerce and AI for ecommerce.

Common mistakes with a Codex-run store

  • Full Access on day one. Start Read Only.
  • Descriptions without data. The model can invent a weight or an ingredient, so check food, cosmetics and children's products.
  • 300 products in one command. It burns credits and is hard to check; work by category.
  • A new store when you already have one. From WooCommerce, Shopify, OpenCart or Magento, products, customers and orders move to CloudCart with redirects from the old addresses. See the WooCommerce migration guide.
  • No payment or courier set. Ask Codex: "What is missing before I can take orders?"

Checklist: a Codex-built store ready for its first order

  1. Codex is connected: asked "Which store are you connected to?", it gives your address.
  2. The key has the right permissions and an expiry date.
  3. Products have prices, stock, photos and checked descriptions.
  4. Payments and a courier are on, with shipping prices for each country you sell to.
  5. VAT is set per country, with the One Stop Shop switch where it applies.
  6. Shipping, returns and terms pages are live, including the 14-day right of withdrawal that EU consumers have for online purchases, counted from delivery.
  7. The abandoned cart email is on (see abandoned cart recovery).
  8. A test order goes from the cart to the shipping label.

Create a store for €1 and connect Codex to it. Questions: support@cloudcart.com.

Frequently asked questions

The ChatGPT chat writes copy and code but cannot save them into a store. Codex, OpenAI's agent, connects to a platform such as CloudCart and creates products, categories and descriptions there. Payments, couriers and invoices come from the platform.

Codex is OpenAI's AI agent that runs in the terminal, the Codex app, the ChatGPT desktop app or an editor, and carries out tasks on your computer. It uses your ChatGPT account and subscription.

ChatGPT's $0 plan allows quick tasks; for regular store work you need at least Plus at $20 a month, with extra credits available on Plus and Pro. Connecting to CloudCart has no fee, and the store is €1 a month for the first 3 months.

Paste the connection sentence: Codex runs codex mcp add cloudcart-dev-mcp, installs the CloudCart CLI and saves its rules. Then restart Codex and give it a PAT key and your store address.

Both connect with the same sentence. Codex suits you if you already pay for ChatGPT; Claude Code has bulk-change previews built into the CloudCart plugin.

Codex has only your key's permissions, with an expiry date and an IP limit. Delete the key and access stops. Start with Read Only.

Yes. At setup Codex asks which language to use, so you can write in German, Italian, Polish or any language you choose. Only the connection sentence and terminal commands stay in English.

Sources

  1. OpenAI's Codex pricing pagelearn.chatgpt.com
  2. OpenAI's MCP documentationlearn.chatgpt.com
  3. OSS schemevat-one-stop-shop.ec.europa.eu
  4. OpenAI's page for merchantschatgpt.com
  5. GDPReur-lex.europa.eu
  6. EU consumers have for online purchaseseuropa.eu
The CloudCart teamChecked against the platform documentation. Questions: support@cloudcart.com

Build your online store

The first 3 months on every plan are €1/month. Questions: support@cloudcart.com

Create a store for €1