Skip to content
Open Onsite

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.

  • An Onsite account on a team with an active plan.
  • Codex installed and signed in.
  1. 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.

  2. Send it

    Send the message. Codex adds Onsite for you and pauses when it’s time to sign in.

  3. 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.

Open a new Codex chat, so it picks up Onsite, and ask:

Using Onsite, show me the sites I can access.

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.

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.