Skip to content
Browse docs
Docs / Connect your agent

Connect Codex

One command, one browser sign-in, and Codex reads your priorities.

01 Run this

In your terminal, run:

codex mcp add annsa --url https://app.annsa.ai/mcp

Codex opens your browser to sign in. If it doesn't, run:

codex mcp login annsa

Or add it by hand. Put this in ~/.codex/config.toml:

[mcp_servers.annsa]
url = "https://app.annsa.ai/mcp"
auth = "oauth"

Then run codex mcp login annsa. Added by hand, Codex doesn't sign in on its own: until you run it, Annsa shows as not logged in.

02 Sign in

Adding Annsa, or running codex mcp login annsa, opens Annsa's sign-in in your browser. Approve once. There's no API key to paste. Codex signs in as you, with your full rights. See What your agent can do. All Codex sessions share this sign-in.

03 Check it worked

Ask Codex for your priorities. The reply names the environment, host and workspace. It should say production, app.annsa.ai and your workspace. If it says anything else, stop and fix the connection before your agent writes anything.

04 Choose what runs without asking

Five Annsa tools can change things. Let annsa.work and annsa.file run without asking. Approve annsa.decide, annsa.board and annsa.share each time, because they change what you decided or what your customers hear.

Allow without asking:

  • annsa.work: Do the work on a priority, and settle routine asks with undo.
  • annsa.file: Add what a customer said, what an agent found, or a new idea.

Approve each time:

  • annsa.decide: Record a decision: your answer, a spec edit, or a rule.
  • annsa.board: Arrange the board. A merge retires numbers for good.
  • annsa.share: Tell the customers who asked that it shipped. Emails can't be unsent.

The reads (annsa.priorities, annsa.spec, annsa.ask) change nothing, so allow those too. Every tool.

Your call: what your agent does without asking.

05 Try this first

Ask: what should I work on? You get your ranked list, with why each priority ranks where it does. Then: show me the spec for #N, and claim it if nobody else has.

06 If it doesn't connect

Server not listed: run codex mcp list. If annsa is missing, run the add command again, or check that the section header is exactly [mcp_servers.annsa] in ~/.codex/config.toml.

Auth loop: check the url line. Then run codex mcp login annsa and read the error.

Unauthorized or expired: run codex mcp login annsa again.

Codex in the ChatGPT app: it reads the same ~/.codex/config.toml. If Annsa shows as not logged in there, run codex mcp login annsa in a terminal, then start a new Codex session.

Empty list: a new workspace has nothing to rank yet. Bring in your feedback.

Next guideConnect your agent