Connect your AI tool
Connect Codex to Onsite
Add Onsite to Codex from the Codex app or the command line, sign in, and ask about your sites.
Add Onsite to Codex once and use it in the Codex app and the Codex command line.
Before you start
Section titled “Before you start”- An Onsite account on a team with an active plan.
- Codex installed and signed in.
Add Onsite
Section titled “Add Onsite”Open the setup message
In Onsite, open Settings › MCP, choose Codex, and select Add to Codex. Codex opens a new chat with a setup message in it.
Send it
Send the message. Codex adds Onsite for you and pauses when it’s time to sign in.
Sign in and allow access
Sign in to Onsite with Google, or with a code sent to your email. If you’re on more than one team, pick the one Codex should use, then select Allow.
Add the server
In a terminal, run:
Terminal window codex mcp add onsite --url https://onsite.so/mcpSign in to Onsite
Codex usually opens Onsite in your browser. If it doesn’t, run:
Terminal window codex mcp login onsiteChoose a team and allow access
Sign in with Google, or with a code sent to your email. If you’re on more than one team, pick the one Codex should use, then select Allow.
Check it worked
Section titled “Check it worked”Open a new Codex chat, so it picks up Onsite, and ask:
Using Onsite, show me the sites I can access.
Use a token instead of signing in
Section titled “Use a token instead of signing in”If you can’t sign in from this computer, create a token in Settings › MCP under Connected apps and tokens, and add this to ~/.codex/config.toml:
[mcp_servers.onsite]url = "https://onsite.so/mcp"http_headers = { "Authorization" = "Bearer <your-onsite-token>" }A token lasts 90 days. Keep it private, and revoke it in Settings › MCP when you no longer need it.
If something goes wrong
Section titled “If something goes wrong”Onsite's tools don't show in the chat
Codex loads servers when a chat starts. Open a new chat after you sign in.
Codex shows the wrong team's sites
Each connection uses one team. Run codex mcp logout onsite, then codex mcp login onsite, and pick the other team. See Manage connections.
It worked before and now it doesn't
A connection lasts 90 days, and stops if you revoke it or leave the team. Run codex mcp login onsite to sign in again. See Troubleshooting.