Codex + SingIt in one line
One installer, one local proxy, one wallet. Paid models under caps you set; a free first call with no key.
1. Install
curl -fsSL https://singitai.app/singit-codex-install | bashThe installer downloads @singitai/proxy from npm and runs singit-codex setup. Node 20+ is required. Options: --dry-run changes nothing; --skip-codex skips the missing-Codex hint. Install Codex itself using the official guidance. Installer checked live on 15 November 2026.
2. What setup does
- Creates or reuses the session wallet at
~/.singit/sessionand prints only the public address, a Base USDC funding hint and a QR. The facilitator pays gas, so no ETH is needed. The private key is never printed and never passed on a command line. - Writes the Codex profile
~/.codex/singit.config.toml: modelsingit/auto, providersingit,wire_api = "responses",base_url = "http://127.0.0.1:8787/v1", plus the remote SingIt MCP serverhttps://app.singitai.app/mcpwithbearer_token_env_var = "SINGIT_API_KEY". No token values are written. - Backs up an existing SingIt profile to a timestamped
.bakbefore replacing it. The baseconfig.tomlis never changed.
SINGIT_HOME changes the wallet directory; CODEX_HOME changes the profile directory. The launcher strips SINGIT_WALLET_KEY from the Codex child environment.
3. Start
singit-codex startstart runs the local proxy on 127.0.0.1:8787, writes the profile if it is missing and launches codex --profile singit. Arguments after -- are forwarded to Codex. singit-codex start --no-launch runs the proxy alone. Fund the wallet with USDC on Base before paid models; the receive address is printed at setup and shown at http://127.0.0.1:8787/wallet.
How the limits work
Receipts
Every settled answer carries a receipt: the PAYMENT-RESPONSE and X-SingIt-Receipt headers. The proxy forwards the PAYMENT-RESPONSE to the client unchanged and never logs it. From any MCP client, get_receipts lists what was charged. See How a payment is charged.
Free first call, no key
The profile wires the SingIt MCP server, whose chat_free tool answers with the free model free/deepseek-v4.1-flash (up to 400 tokens) - no key and no wallet balance needed. Ask Codex to use it. Free answers are a small daily allowance counted per network, with a shared daily budget that can run out for the day.
Troubleshooting
singit-codex doctordoctor reports the Node version, Codex on PATH, the session file, proxy health, the profile provider and the caps - without creating a wallet.
- Proxy down: run
singit-codex start --no-launchand openhttp://127.0.0.1:8787/health. - HTTP 402: a payment demand, never a successful answer - fund the wallet with USDC on Base.
- Changed ports after setup: rerun
singit-codex setupto refresh the profile. singit-codexnot on PATH after install: add the npm global bin directory to PATH, then runsingit-codex setup.
Status
Verified on 15 November 2026: the installer is live and singit-codex ships in @singitai/proxy 0.1.3 on npm. Honest caveat: loading a separate singit.config.toml with the installed Codex version, and the remote MCP authentication behavior, still need a manual compatibility check - tests used a fake Codex binary and a local merchant; no live production Codex turn has been run yet.