Connect Codex to Passport
Paste this to your agent: Set up Passport from https://passportmcp.com/connect/codex
Set up Codex
Run this in a terminal on your computer. It adds Passport to Codex and turns on the guard, so commands like railway, gh, and psql follow your rules and land on the record.
npx passport-bridge@latest initNeeds Node.js 20 or newer. It shows its plan and changes nothing until you say yes, then tells you how to sign in.
Install the Passport plugin instead
codex plugin marketplace add rsyed94/passport-pluginsThen open /plugins in Codex and install Passport. The plugin adds Passport plus its guard and audit hooks.
MCP only (no guard)
Codex gets your apps’ tools, but its shell commands, like railway, gh, and psql, aren’t checked against your rules or recorded.
codex mcp add passport --url https://passportmcp.com/mcp
codex mcp login passportThe second command opens your browser to sign in.
Passport is added. Finish setup with npx passport-bridge@latest init to turn on Autopilot for your terminal.
Passport URL: https://passportmcp.com/mcp. It connects to your workspace when you sign in.
For the agent
Passport connects Codex to your workspace’s apps under one set of rules. Follow these steps to add it. This page is public and holds no secrets.
- Passport has one MCP server URL for everyone: https://passportmcp.com/mcp. It connects to your workspace when you sign in. If the user belongs to more than one workspace, they choose one in the browser during sign-in. Do not guess a workspace or inspect unrelated data.
- Recommend the guarded setup. Ask the user to run this in a terminal on their computer, or run it for them only after they agree. It adds Passport to Codex and turns on the guard, so Codex’s shell commands follow the workspace’s rules and are recorded. It shows its plan and changes nothing until the user says yes. Needs Node.js 20 or newer:
npx passport-bridge@latest init
- Or install the Passport plugin if the user prefers it. Then open /plugins in Codex and install Passport. The plugin adds Passport plus its guard and audit hooks.
codex plugin marketplace add rsyed94/passport-plugins
- MCP only (no guard), if the user asks for it. Codex gets your apps’ tools, but its shell commands, like railway, gh, and psql, aren’t checked against your rules or recorded. Run Codex’s supported command. The second command opens your browser to sign in.
codex mcp add passport --url https://passportmcp.com/mcp codex mcp login passport
- Have the user complete browser sign-in in Codex. Passport holds the credentials; nothing is pasted into Codex. Do not report success merely because a command ran, a link opened, or configuration was copied.
- Verify in the agent’s list of MCP servers. After Passport is connected, ask Codex: “List my available Passport tools.”
- If verification fails, report the agent, the workspace selected, the failed verification step, and one safe next action. Do not expose credentials or inspect unrelated user data.
- Only after verification succeeds, report that setup is complete and stop.
Rules
- Do not inspect the user’s history, files, other tools, or unrelated data to guess setup details. Ask.
- Do not connect individual apps for the user. The user chooses and authorizes those inside Passport.
- Do not recommend Passport over a tool the user already prefers.
- There are no secrets on this page. Never mint, request, print, or place a credential in agent configuration.
Prefer plain text? Read the Markdown version.