Getting started

Connect your site with Codex / Claude Code

Click “Copy for my AI” and paste into the chat — done; or run one command and click “Allow” in the browser. Start here if Codex won’t connect

On this page

All DlxAi sites share one MCP address: https://mcp.dlxai.ai/mcp — the key tells it which site you are. Your site’s own https://your-site/mcp still works too.

Easiest: Copy for my AI

  • On the admin “Agent API” page, first box, click Copy for my AI (this signs a key that doesn't expire and has full access, and copies a short message; you can revoke it on this page anytime)
  • Paste that message into the chat box of Claude Code or Codex — the AI connects itself (Claude Code runs claude mcp add; Codex writes ~/.codex/config.toml, or %USERPROFILE%\.codex\config.toml on Windows)
  • If the AI doesn’t have permission to change its own config, it will hand you one full command: paste it into your computer’s terminal and press Enter (Terminal on Mac, PowerShell on Windows — the AI picks the right line for your system), then restart Codex
  • Once connected, it will report back your site’s name

No key: browser authorization

Paste the command into your computer’s terminal, not the chat box.

  • Codex: codex mcp add dlxai --url https://mcp.dlxai.ai/mcp → your browser opens → enter your site’s address → sign in to admin and click Allow → back in Codex, type /mcp — if you see dlxai, you’re connected
  • Claude Code: claude mcp add --transport http dlxai https://mcp.dlxai.ai/mcp → open claude, type /mcp → choose dlxai → Authenticate → in the browser, enter your site’s address, sign in, click Allow

Codex: write config.toml yourself and stop the approval prompts

To set it up by hand (or if the AI wrote it wrong), add this to ~/.codex/config.toml (%USERPROFILE%\.codex\config.toml on Windows):


[mcp_servers.dlxai]
url = "https://mcp.dlxai.ai/mcp"
bearer_token_env_var = "DLXAI_KEY"
default_tools_approval_mode = "approve"
  • url can also be your site's own https://your-site/mcp
  • bearer_token_env_var is the name of an environment variable, not the key itself: put the key in that variable (Mac: add export DLXAI_KEY=your-key to ~/.zshrc; Windows: setx DLXAI_KEY your-key), then reopen the terminal and Codex. If you connected with browser authorization (codex mcp add … --url above), you don't need this line
  • Keep the last line: by default Codex asks you to approve every single tool call, and without it every call to our tools gets blocked (tested on 0.160.0; "auto" still asks every time, it has to be "approve"). Same if you connected with browser sign-in (codex mcp add … --url): add this line under [mcp_servers.dlxai] in config.toml. "approve" = use this server's tools directly; to be asked only before changes, use "writes". Risky actions such as deleting or changing payment settings already need your confirmation on our side regardless
  • Restart Codex and type /mcp — if you see dlxai, you're done

AI in a web page or app (Muse, ChatGPT, Claude web, Gemini...)

These can't run commands; connect them with browser authorization instead:

  • Open its settings → "Connectors" / "Custom MCP" / "Apps", and add a new one
  • For the address, enter only https://mcp.dlxai.ai/mcp, and choose OAuth as the authorization method
  • Your browser will open our page: enter your site's address → sign in to admin → click Allow
  • Back in the chat, have it call get_site_overview once — once it reports your site's name, you're connected

If its connector only has two fields, "address + API key" (for example Muse): for the address use https://mcp.dlxai.ai/mcp; for the key, use the string copied from "Copy key only" under "AI access" in your admin (it starts with agk_, with no "Bearer" prefix) — paste it into the connector's own settings, never into the chat box.

Still not connecting?

  • Codex says it can’t change its config: ask it to hand you the command, then paste it into Terminal yourself
  • The browser page doesn’t recognize your site: enter the address of the site you opened on DlxAi, e.g. yourshop.dlxai.ai, or your own connected domain
  • A server with no browser: use the key from “Copy for my AI”, or “Advanced: connect with a key” on the admin page
  • The key doesn’t match the right site: make sure the key was signed from this site’s admin and hasn’t been deleted; or use your site’s own address instead

Four AI actions need a code from your email

Refunds, sending a broadcast email, giving a customer free access to a course / membership, and changing payment methods can't be undone. When your AI wants to do one, we first email a 6-digit code to the site owner's address, saying exactly what will happen, how much, and to whom (e.g. "Refund $50 to Jane, order #123"). Only after you read it and tell your AI the code does it go ahead.

  • The code works for 5 minutes, once; if the AI changes the amount or recipient, the code no longer works
  • Your AI can't get this code on its own. If you didn't ask for it, don't share the code, and check your keys under "AI access"
  • Changing payment methods also needs the Google Authenticator code from your phone
  • The same code is needed when your AI turns on an automation rule or workflow that automatically gives customers a course / membership / community / role
  • Doing these yourself in the admin works as before
Last updated: October 28, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy