agentex-cli
v0.1.0
Published
Pair this computer with the Agentex app: npx agentex-cli pair XXXX-XXXX
Readme
agentex-cli
Pairs this computer with the Agentex app so an AI agent can ask you questions on your phone. On the phone: Agents → Add agent → Pair with your computer — it shows a code. Then, on the computer:
npx agentex-cli pair XXXX-XXXXThat exchanges the code for a fresh agent credential and runs
claude mcp add --scope user --transport http agentex <url> --header "Authorization: Bearer …"
for you. The credential is minted when the code is claimed and is never shown on the phone; the code
is single-use and expires after 10 minutes.
--print— print theclaude mcp addcommand instead of running it.--json— print the MCP config JSON block for Cursor, Codex, or any other MCP harness.--replace— swap out an existingagentexentry in Claude Code first.--scope user|local|project— where Claude Code stores it (defaultuser, so it follows you across directories).
Development
npm install && npm run build && npm test
AGENTEX_PAIR_URL=http://127.0.0.1:5001/demo-agentex/us-central1/pair node dist/index.js pair XXXX-XXXX --printThe server side lives in ../connector/src/pairing.ts (createPairingCode callable for the app,
pair HTTP Function for this CLI). Publishing to npm is David's call (CLAUDE.md: never publish
without asking); until it is published, npx agentex-cli will not resolve.
