About

KeyRouter is a small, self-hosted project

It is free, open source, and designed for developers who'd rather spend money on AI they actually use than on plumbing.

What it is

KeyRouter is a router for AI coding tools. It sits between tools like Claude Code, Codex and Cursor and the AI providers you subscribe to, giving you one endpoint, automatic fallback, and token savings. The dashboard runs on your own machine or server; there is no cloud account.

License

KeyRouter is released under the MIT License. You can use it, modify it, and redistribute it freely.

Acknowledgments & attribution

KeyRouter is a derivative and rebrand of 9Router by decolua, released under the MIT license. The original copyright notice and license terms are preserved in the project's LICENSE file.

The token-saving pipeline builds on ideas from several open-source projects:

  • RTK , a Rust token saver whose compression approach inspired the JavaScript implementation in KeyRouter.
  • CLIProxyAPI , the original Go implementation that inspired this JavaScript port.

Many thanks to their authors.