Catalog npm
Back to packageRELEASE DETAILS

0.4.70

npm

0router

0Router CLI - Start and manage 0Router server

0routeraiapicliproxy9router
Published23 May 2026
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

0Router - FREE AI Router & Token Saver

Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.

Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to 40+ AI Providers & 100+ Models.

npm Downloads Docker Pulls GHCR License

zcuss%2F0router | Trendshift

🌐 Website • 📖 Full Docs


🤔 Why 0Router?

Stop wasting money, tokens and hitting limits:

  • ❌ Subscription quota expires unused every month
  • ❌ Rate limits stop you mid-coding
  • ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
  • ❌ Expensive APIs ($20-50/month per provider)

0Router solves this:

  • ✅ RTK Token Saver - Auto-compress tool_result, save 20-40% tokens
  • ✅ Maximize subscriptions - Track quota, use every bit before reset
  • ✅ Auto fallback - Subscription → Cheap → Free, zero downtime
  • ✅ Multi-account - Round-robin between accounts per provider
  • ✅ Universal - Works with any OpenAI/Claude-compatible CLI

⚡ Quick Start

Option 1 — npm (recommended for desktop):

npm install -g 0router
0router

# Or run directly with npx
npx 0router

Option 2 — Docker (server/VPS):

docker run -d --name 0router -p 20128:20128 \
  -v "$HOME/.0router:/app/data" -e DATA_DIR=/app/data \
  zcuss/0router:latest

Published image: GHCR (multi-platform amd64/arm64).

🎉 Dashboard opens at http://localhost:20128

2. Connect a FREE provider (no signup needed):

Dashboard → Providers → Connect Kiro AI (free Claude unlimited) or OpenCode Free (no auth) → Done!

3. Use in your CLI tool:

Claude Code/Codex/OpenClaw/Cursor/Cline Settings:
  Endpoint: http://localhost:20128/v1
  API Key:  [copy from dashboard]
  Model:    kr/claude-sonnet-4.5

That's it! Start coding with FREE AI models.


🚀 CLI Options

0Router                    # Start with default settings
0Router --port 8080        # Custom port
0Router --no-browser       # Don't open browser
0Router --skip-update      # Skip auto-update check
0Router --help             # Show all options

Dashboard: http://localhost:20128/dashboard


🛠️ Supported CLI Tools

Claude-Code • OpenClaw • Codex • OpenCode • Cursor • Antigravity • Cline • Continue • Droid • Roo • Copilot • Kilo Code • Gemini CLI • Qwen Code • iFlow • Crush • Crusher • Aider

Any tool supporting OpenAI/Claude-compatible API works.


💾 Data Location

  • macOS/Linux: ~/.0Router/db/data.sqlite
  • Windows: %APPDATA%/0Router/db/data.sqlite
  • Docker: /app/data/db/data.sqlite (mount $HOME/.0Router to persist)

📚 Documentation

Full docs, advanced setup, video tutorials & development guide:


🙏 Acknowledgments

📄 License

MIT License - see LICENSE for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
19.2.1runtime
enquirer
Environment
{
  "local_name": "enquirer",
  "alias": false,
  "peer_metadata": null
}
^2.4.1runtime
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
19.2.1runtime
node-forge
Environment
{
  "local_name": "node-forge",
  "alias": false,
  "peer_metadata": null
}
^1.3.3runtime
node-machine-id
Environment
{
  "local_name": "node-machine-id",
  "alias": false,
  "peer_metadata": null
}
^1.1.12runtime
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.25.12development
nodemon
Environment
{
  "local_name": "nodemon",
  "alias": false,
  "peer_metadata": null
}
^3.1.14development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "8954fab9c8f2a7b88e69611750272735bd53b018",
  "tarball": "https://registry.npmjs.org/0router/-/0router-0.4.70.tgz",
  "fileCount": 3025,
  "integrity": "sha512-orm/8YZKxJps/pwKdAPAj4UbmVgIeIHQ6APUclYis5snE//gfXrLb/IGIYre+d5+lj9l5uTunzbXZp6iu3bRiw==",
  "signatures": [
    {
      "sig": "MEUCIQDI89HfMfsOTg4qiZvfkIwmI9KB7qK/DWXAS0jNzROBuwIgKzFyLQ69ahY/+UpSsOp8zRMHR6F58vCQphKO1JSt/Ow=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 46213910
}

Repository

ACCESSIBLE
zcuss/9router

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
master
Last push
23 May 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots20 Oct 2026
10.50
2026-10-20: 0 · observed 2026-10-20T19:29:56.5258419Z
20 Oct20 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2002026-10-20T19:29:56.5258419Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:eb7ef86f5effbc7c0279da926140f4d8d94acf928f4b5d25bea2b1ba8568ed3e

Other collected versions

0.4.7226 May0.4.7126 May0.4.6923 May0.4.6123 MayView all collected versions →