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
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
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
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
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
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
- The event is created in your Enchant account as a draft. Only you and your team can see it.
- Open the event in the Enchant dashboard to fine-tune anything, or keep asking the AI to change it.
- Send a test stream from OBS, vMix or a hardware encoder to check the picture and sound.
- 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.

