anon-router CLI — pay crypto for AI inference, privately, from your terminal
No account, no card, no email. Deposit crypto, get an anonymous key, call any model. Your spends can't be linked to your deposit, and the model provider only ever sees the router — never you.
Testnet alpha: deposits use Sepolia test ETH (valueless). Don't put real funds in. See PRIVACY.md for exactly what is and isn't private.
Install
python3 -m venv .venv && .venv/bin/pip install . # from this repo (Python 3.10+)
That puts an anon-router command on your PATH. It talks to the hosted router by
default; to use your own set export ANON_ROUTER_URL=https://your-router (or
--url).
Use it
# 1. Mint an anonymous key (no signup). This is a wallet — back up ~/.anon-router.
anon-router account
# 2a. Fund it by depositing test ETH on-chain. Put YOUR Sepolia key in a file
# {"private_key": "0x..."} (or export ANON_DEPOSIT_KEY), then:
anon-router deposit 0.001 --key myfunding.json # waits for the credit (~30s)
# ...or 2b. redeem a voucher code someone gave you:
anon-router redeem ar-XXXXXXXXXXXXXXXXXXXX
# 3. Convert your balance into unlinkable ecash (this breaks the deposit link).
anon-router claim 5000
# 4. Chat — paid per request with ecash, unlinkable to your deposit.
anon-router chat "hello there" --model openai/gpt-4o-mini
anon-router balance
anon-router models --search gpt
(Running from the repo without installing? .venv/bin/python cli.py <same args>.)
Use it from your agent / tool ("swap the API")
Already have something that speaks the OpenAI API (Cursor, aider, the OpenAI SDK, your own agent)? Two ways to point it here:
Private (recommended) — run the local proxy, point your tool at it:
anon-router claim 5000 # make sure your wallet has ecash
anon-router serve # local proxy on http://127.0.0.1:8788/v1
# then in your tool: base_url = http://127.0.0.1:8788/v1 (api_key = anything)
Every request the tool makes is paid with blind-signed ecash — the router can't
link your tool's requests to each other or to your deposit. No code changes in
the tool. (Set ANON_DAEMON_KEY to require a bearer key on the proxy.)
Convenient (pseudonymous) — no local proxy: point base_url at <router>/v1
and use your sk-anon-… account key as the bearer token. Spends the account
balance directly; simplest, but the router can link that key's requests.
Claude Code
The proxy also speaks the Anthropic Messages API (streaming + tool use), so Claude Code runs against it with two env vars:
anon-router serve # local proxy, leave it running
export ANTHROPIC_BASE_URL=http://127.0.0.1:8788
export ANTHROPIC_API_KEY=anon-router # any non-empty value
claude # every request now pays private ecash
The model names Claude Code sends are mapped to a valid router model automatically; full agentic tool use works.
Or just chat in the terminal
anon-router chat "…" — private (ecash), no other tool needed.
Privacy hygiene
Fund from a fresh wallet, deposit a common round amount, spend over time, and
rotate keys (cli.py account) so sessions don't link. Reach the router over its
Tor .onion (--tor) to hide your IP. The model still reads your prompt — for
content privacy use a local/* model.
Metadata
Release files for anon-router 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anon_router-0.1.0.tar.gz | 45.3 kB | Without provenance | Details for anon_router-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anon_router-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for anon_router-0.1.0-py3-none-any.whl |
Total release size: 89.6 kB
Release files / anon_router-0.1.0.tar.gz
| Download URL | anon_router-0.1.0.tar.gz |
|---|---|
| Size | 45.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca52ad11d2fe9d0902c3267e687d8b4977609b7a793ca13939fc1678e5bf5196
|
|
BLAKE2b-256 checksum How to use checksums |
bd80db04f7c81da5fbb811ff8dca148f34ba7c45c0794f9e232d819eaaa8ccac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / anon_router-0.1.0-py3-none-any.whl
| Download URL | anon_router-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
818d5f2e001da1aa1d2930ecd01801d2efc2e5289b884321adbd6446e5caa92f
|
|
BLAKE2b-256 checksum How to use checksums |
21bd521e755ef94539040825c94341966455b14d1ffbbc088cb0d33a14caf021
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for anon-router 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.