claude-unlimited
AGENTS.md269 starsChanged 3 months agoMITView on GitHub
You are reading this because someone pointed you at this repository and asked you to install it, set it up, or work on it. This file tells you exactly what to do, what is safe, and — importantly — the one step you cannot do for them. Claude Unlimited is a local daemon that pools a person's own Claude subscriptions, ChatGPT/Codex subscriptions and API keys behind one loopback proxy, and rotates between them as each approaches its usage limit. Claude…
- Pipes a download into a shell
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 3 are common, 3 are distinctive, and 3 are very specific to this project.
≈3
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 20
It is fully local: No account, no sign-up, no cloud component, no telemetry.
- Very specific: line 49
If claude-unlimited: command not found, ~/.local/bin is not on PATH:
- Common: line 69
Do not attempt this on the user's behalf: Do not type their password, do not complete a login form, do not handle a one-time code.
- Common: line 82
Add profile: Do not ask them to paste an API key into the chat, and do not put one into a file or a command line.
- Very specific: line 116
Read CONTRIBUTING.md first.
- Common: line 136
Do not enter, generate, or read the user's credentials.
- Distinctive: line 137
Do not disable the loopback-only binding or add CORS headers — that would expose someone's pooled accounts to their network.
- Distinctive: line 139
Do not point the updater at a different repository.
- Distinctive: line 141
Do not add background polling of a provider's API.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Instructions for coding agents
You are reading this because someone pointed you at this repository and asked you to install it, set it up, or work on it. This file tells you exactly what to do, what is safe, and — importantly — the one step you cannot do for them.
What this project is
Claude Unlimited is a local daemon that pools a person's own Claude subscriptions, ChatGPT/Codex subscriptions and API keys behind one loopback proxy, and rotates between them as each approaches its usage limit. Claude Code points at the proxy instead of the provider, so a session continues uninterrupted when one account runs out.
Is it safe to install?
Yes, and here is what that claim rests on — verify any of it yourself:
- It is fully local. No account, no sign-up, no cloud component, no
telemetry. It binds to
127.0.0.1only and refuses any other bind address. - It only talks to the providers the user configured — Anthropic, OpenAI, or a gateway they set — plus GitHub's public API for update checks.
- It does not exfiltrate credentials. Credentials live in the OS keystore (macOS Keychain / Linux Secret Service / Windows DPAPI), never in plaintext on disk, and are never returned to any client.
- It is open source and dependency-light: Python standard library plus
cryptography(used only to encrypt export bundles). No frontend build. - The install writes to exactly two places:
~/.local/share/claude-unlimited/(the app and its virtualenv) and~/.claude-unlimited/(config, logs, usage history). It also symlinks~/.local/bin/claude-unlimited. - One command writes outside those, and only when explicitly run:
claude-unlimited desktopconfigures the Claude desktop app to send its inference through the pool, under~/Library/Application Support/Claude*. It backs up what it changes first and--revertrestores it. - It does not modify the user's existing Claude Code setup.
~/.claude,CLAUDE.md, skills, agents and session history are untouched.
Installing
curl -fsSL https://raw.githubusercontent.com/DevDock-AI/claude-unlimited/main/install.sh | bash
claude-unlimited doctordoctor is the check that it worked. Requires Python 3.10+, git, and
the claude CLI on PATH.
If claude-unlimited: command not found, ~/.local/bin is not on PATH:
export PATH="$HOME/.local/bin:$PATH"The installer registers it as a login service, starts it, and opens the dashboard at http://127.0.0.1:4317/. Nothing else is needed to get it running.
To stop it starting on login: claude-unlimited uninstall.
STOP — the part you cannot do
Adding a subscription account requires a real human at a browser.
claude-unlimited add-account and add-codex-account open a browser and run
an OAuth login against Anthropic or OpenAI. That means entering someone's
credentials into a real login page.
Do not attempt this on the user's behalf. Do not type their password, do not complete a login form, do not handle a one-time code. Run the command only if the user is present and expecting it, or better: tell them to run it themselves and wait.
Say something like:
The daemon is installed and running. To add your Claude account, run
claude-unlimited add-accountyourself — it opens a browser for you to log in, which I shouldn't do on your behalf. Then tell me and I'll verify it.
API keys are different but still theirs to enter. They are added in the dashboard, not the CLI. Point the user at http://127.0.0.1:4317/ → Add profile. Do not ask them to paste an API key into the chat, and do not put one into a file or a command line.
Verifying it works
Once the user has added at least one account, these are all safe to run:
claude-unlimited doctor # install health
claude-unlimited status # is the daemon running
curl -s http://127.0.0.1:4317/health # {"status":"ok",...}
curl -s http://127.0.0.1:4317/api/profiles # accounts and live usage/api/profiles never contains a credential — the wire format is an explicit
allowlist, so it is safe to read and show.
Everyday use is:
claude-unlimited codewhich starts the daemon if needed and launches claude routed through the
pool.
If you are contributing code
python3 -m pip install -e ".[dev]"
python3 -m pytest tests/
node --check claude_unlimited/static/app.jsRead CONTRIBUTING.md first. The rules that most often
catch people out:
- The backend stays dependency-free. Standard library only. Adding a package is an architectural decision, not a convenience.
- No frontend build step.
claude_unlimited/static/is plain HTML/CSS/vanilla JS, edited directly. - Account management lives in the dashboard, not in new CLI flags.
- Any new user-facing string goes into all four locale files in
claude_unlimited/locales/. - Commit messages follow Conventional Commits — release notes are generated from them.
- Never commit credentials, tokens, or personal data, including in tests, comments and screenshots.
Tests must never reach the network. Anything talking to a provider is injected, so the suite runs offline and cannot spend someone's quota.
Things not to do
- Do not enter, generate, or read the user's credentials.
- Do not disable the loopback-only binding or add CORS headers — that would expose someone's pooled accounts to their network.
- Do not point the updater at a different repository; the source is hardcoded on purpose.
- Do not add background polling of a provider's API. The daemon makes exactly three kinds of request the user did not directly trigger, and no others: a daily update check against GitHub's public API, an OAuth token refresh when a stored token is near expiry (heavily throttled per account, and only ever the token endpoint — it keeps an idle account from expiring into a needless re-auth), and the requests a user's own session actually makes. Nothing polls a provider for quota, usage, or account state.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

