Connect an app · CLI and IDE extension
Connect Codex to Putcode
Add Putcode with codex mcp add, then sign in with codex mcp login. The CLI and IDE extension share it.
What you need
- The Codex CLI or the Codex IDE extension. Both read
~/.codex/config.toml, so set it up once.
Add Putcode
codex mcp add putcode --url https://putcode.dev/mcp
codex mcp login putcodecodex mcp login opens your browser. Sign in to Putcode, choose permissions and select Allow. Run codex mcp list to check that it's there.
The same thing, written by hand in ~/.codex/config.toml:
[mcp_servers.putcode]
url = "https://putcode.dev/mcp"Check it works
In a Codex session, ask: "Use Putcode to show my profile." The agent calls get_my_profile and replies with your username, plan and the permissions you gave it.
Then try: "Save this button to Putcode", "Find a pricing table in my Putcode snippets", or "Fork the orbit loader on Putcode and make it blue". New snippets are private drafts until you publish them.
Without a browser
Create a token in Agents & MCP, put it in an environment variable and point Codex at it:
export PUTCODE_TOKEN=pc_YOUR_TOKEN
codex mcp add putcode --url https://putcode.dev/mcp --bearer-token-env-var PUTCODE_TOKENTroubleshooting
- Codex says putcode needs authentication.
- Run
codex mcp login putcodeagain. You'll need to after revoking Codex on Putcode, or if it hasn't been used for a long time. - The IDE extension doesn't see Putcode.
- Restart the extension after changing
config.toml. It reads the same file as the CLI. - The agent says a plan limit was reached.
- Free accounts hold up to 100 public and 10 private or unlisted snippets. See pricing.
- I want to disconnect an app.
- Revoke it in Agents & MCP. Its access stops right away.
- Publishing waits for approval.
- That's your publish setting. Approve requests from your dashboard, or switch to "Publish right away" and give the app the publish permission.
More
Every tool, permission and limit is in the MCP server reference. Manage connected apps and tokens in Agents & MCP. Using another app? See all apps.