claudexor

Local-first control plane for Claude Code, Codex, Cursor, and OpenCode with quota-aware rotation across Claude Code and Codex subscriptions. Pi integration by Ouroboros.

Packages

Package details

extensionskill

Install claudexor from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:claudexor
Package
claudexor
Version
6.4.2
Published
Nov 26, 2026
Downloads
4,071/mo · 637/wk
Author
razzant
License
MIT
Types
extension, skill
Size
33.5 KB
Dependencies
1 dependency · 0 peers
Pi manifest JSON
{
  "skills": [
    "./pi/skills"
  ],
  "extensions": [
    "./pi/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

claudexor

Local-first control plane for Claude Code, Codex, Cursor, and OpenCode. It keeps one Claudexor coding thread moving across harnesses and can track quota and rotate across multiple user-owned Claude Code and Codex subscriptions.

  • Route planning, implementation, and review through different coding agents.
  • Run Best-of-N candidates and cross-model reviews in isolated workspaces.
  • Continue across harness or account lanes with bounded context packets.
  • Inspect evidence, checks, review state, and typed apply gates before delivery.
  • Expose the same control plane to existing agents through a local MCP server.

Quota telemetry and automatic subscription rotation apply to Claude Code and Codex. Cursor and OpenCode participate in the multi-harness pool. Claudexor does not migrate native vendor sessions between credential profiles.

First Ask: did these CI checks already fail on main?

The standalone CLI runs on macOS or Linux with Node.js 24.15 or newer. Install it and connect one coding agent with a working account. Use your existing connection if you have one. Doctor checks availability; on a cold cache it can contact other configured providers and incur charges.

npm install -g claudexor
claudexor doctor

Save ci-checks.txt in an empty folder. It contains the public job and step results for two libgit2 builds; you don't need to clone libgit2 or grant GitHub access. From that folder, ask one read-only question:

claudexor ask 'Read ci-checks.txt. Which checks in the PR had already failed on main? Cite both runs. Can this file tell us whether the change caused the failures?' --web off

Check the answer against the earlier main run and the PR run. The Test step failed in two jobs on both runs: Windows (amd64, Visual Studio, Schannel, reftable) and macOS (reftable). The logs expired: matching job names don't establish a common cause or clear the change. To reread the answer and its evidence without starting another run, use claudexor inspect followed by the run ID printed by Ask.

Ask uses Auto; subscription usage counts against the selected account and an API-key route is billed by its provider. To choose a named account, add --harness <harness-id> --profile <profile-id> with the IDs from its row in claudexor accounts --json.

When you want changes

Run these in the project you actually want to change, not as part of the read-only example. Agent can edit files; Best-of runs competing candidates.

claudexor agent "implement the approved plan" --harness codex
claudexor best-of "implement the fix and add a regression test" --harness codex,claude --n 2

To connect another tool over stdio, use claudexor mcp serve.

This package is the bin wrapper over @claudexor/cli.

Install in Pi

Pi can delegate a question to Claudexor and show the answer in your session. Use a configured CLI and account and a Pi version with built-in MCP and registerMcpServer, such as 1.5.2. Pi integration by Ouroboros.

If npm view claudexor@latest pi.extensions --json lists ./pi/index.js, install the published package in Pi.

pi install npm:claudexor

If the entry is missing, as it is in claudexor@6.2.0 on npm, get a Git checkout containing the extension and keep it in place. Pi loads the local package from that directory.

pi install "$HOME/claudexor-hosts/packages/claudexor"

Start Pi with node and claudexor on its PATH, or use /reload in an existing session with that PATH. Enable built-in MCP and the extension in pi config if needed. In /mcp, check that claudexor is connected and your tool filters permit the first request's tools under mcp__claudexor__. The extension is the source by default. A manual entry named claudexor in ~/.pi/agent/mcp.json or the project's .pi/mcp.json overrides it even when disabled. Keep an intentional entry for a custom Claudexor store. To use the packaged server instead, remove or rename the conflicting entry and /reload. Check status and get your first answer.

Product overview · documentation and source · releases