Create an event page with OpenAI Codex

Codex is OpenAI's agent for the terminal, desktop and code editors. Connect it to Enchant once with an API key, then describe your event or paste a website, and Codex builds a branded event page that is ready to stream.

Start free

No card needed. 249 € per event when you publish.

Talk to sales

What you need

  • An Enchant account. It is free to create.
  • Codex (the CLI, the Codex app or the IDE extension), signed in with your ChatGPT account.
  • About five minutes.

No account yet? Create a free Enchant account

Connect Codex

  1. 1

    Create an API key in Enchant

    Log in to Enchant, open Settings and find MCP API keys. Give the key a name, press Create key and copy it. It starts with enc_ and is shown only once. Open Enchant settings

  2. 2

    Open the Codex config file

    Open ~/.codex/config.toml in a text editor. Create the file if it doesn't exist. The Codex CLI, app and IDE extension all read this file.

  3. 3

    Add Enchant

    Paste this at the end of the file and replace enc_YOUR_KEY with your key:

    [mcp_servers.enchant]
    url = "https://v2.api.enchant.cloud/mcp"
    
    [mcp_servers.enchant.http_headers]
    Authorization = "Bearer enc_YOUR_KEY"
  4. 4

    Restart Codex and check

    Restart Codex. In the CLI, run codex mcp list and check that enchant is listed. Then describe the event you want in a new session.

Keep the key out of the config file

If you only use the CLI, you can keep the key in an environment variable instead. Add the export line to your shell profile (for example ~/.zshrc) so it survives restarts.

  1. 1

    Add Enchant with an environment variable

    Run this in your terminal, with your own key:

    export ENCHANT_API_KEY=enc_YOUR_KEY
    codex mcp add enchant --url https://v2.api.enchant.cloud/mcp --bearer-token-env-var ENCHANT_API_KEY

What to ask

Try one of these. Replace the example address with a real website.

  • Create an Enchant event page for our webinar "Spring Product Update" on 14 May at 10:00 Helsinki time. Match the look of https://example.com.
  • Make an event site for this conference that looks like the organiser's website: https://example.com/conference. Add the programme and speakers from the page.
  • Add a registration form with name, email and company to my event "Spring Product Update".
  • Give me the stream key for OBS for my event "Spring Product Update".
  • Show me a preview of the event page on mobile.

What happens next

  1. The event is created in your Enchant account as a draft. Only you and your team can see it.
  2. Open the event in the Enchant dashboard to fine-tune anything, or keep asking the AI to change it.
  3. Send a test stream from OBS, vMix or a hardware encoder to check the picture and sound.
  4. When you are ready, press Publish in the dashboard. Publishing costs $249 / 249 € per event (+ VAT) and opens the page, registration and streaming to other platforms to your audience.

Troubleshooting

codex mcp list doesn't show enchant
Check that the block is in ~/.codex/config.toml (not in a project folder) and that the TOML is valid: the section names in square brackets and the values in quotes.
Codex says the Enchant server returned 401
The key is missing or wrong. The header value must be Bearer followed by your full enc_ key. If you used the environment variable, check that it is set in the terminal where Codex runs.
It works in the CLI but not in the Codex app
The app doesn't see variables from your shell profile. Use the config file version with the key in http_headers.
Can I use this in the ChatGPT app?
Not yet. The ChatGPT app connects with a sign-in instead of an API key, and that option is coming to Enchant soon.

Frequently asked questions

Does it cost anything to connect Codex to Enchant?

No. Connecting and building events is free. You pay $249 / 249 € per event (+ VAT) only when you publish an event to your audience.

Can the AI publish or charge anything without me?

No. The AI can create and edit draft events. Publishing and payment always happen in the Enchant dashboard, by you.

How should I handle the API key?

Treat it like a password. It has the same access to Enchant as your account. If it leaks, revoke it in Settings under MCP API keys and create a new one.

What does Enchant see from my Codex conversations?

Enchant only receives what Codex sends to Enchant's tools, such as the event name, colours, texts and images it uses to build the page. It does not see the rest of your conversation.

Can I use Enchant in the ChatGPT app?

Not yet. The ChatGPT app only connects with a sign-in, which is coming to Enchant soon. Until then, use Claude, Codex or Cursor with an API key.

What is MCP?

MCP (Model Context Protocol) is an open standard that lets AI assistants connect to services like Enchant. You add Enchant's address and your API key once, and the AI can use Enchant's tools.

Create your Enchant account first.

Free to build and test. $249 / 249 € per event when you publish.

Start free

No card needed. 249 € per event when you publish.