Keyway
A lightweight self-hosted LLM routing gateway with OpenAI & Anthropic dual-protocol support.
Keyway routes LLM requests from any OpenAI/Anthropic-compatible client (Claude Code, Cursor, OpenAI SDK, etc.) to multiple upstream providers — all through a single self-issued db_sk_ API key.
Quick Start
pip
pip install keyway-router
# Generate a secret and create .env
python -c "import secrets; print('KEYWAY_SECRET=' + secrets.token_urlsafe(48))" > .env
echo "KEYWAY_ADMIN_TOKEN=my-admin-token" >> .env
# Run
keyway
# → http://localhost:9233
Docker
cd docker
cp .env.example .env # edit: set KEYWAY_SECRET and KEYWAY_ADMIN_TOKEN
docker compose up -d
# → http://localhost:9233
From source
git clone https://github.com/DeconBear/keyway.git
cd keyway
pip install -e ".[dev]"
cp .env.example .env # edit: set KEYWAY_SECRET (required) and KEYWAY_ADMIN_TOKEN
python -m keyway
Desktop app (Windows)
pip install -e ".[dev]"
pip install -r keyway-desktop/requirements.txt
python keyway-desktop/main.py
# or: cd keyway-desktop && pyinstaller Keyway.spec → dist/Keyway.exe
Data and secrets persist under %APPDATA%\Keyway. See keyway-desktop/README.md.
Logo / icon assets live in src/keyway/web/assets/ and keyway-desktop/keyway.ico. Regenerate with:
python scripts/generate_logo_assets.py
Next Steps
Docs site: https://deconbear.github.io/keyway/
- First-time setup (add providers, routes, keys): see Getting Started
- Multi-provider + Claude Code walkthrough: see Multi-Provider Setup
- Auto-select, adapter, fusion modes: see Multi-Mode Processing
- Upstream key pool + user quotas: see Key Pool
- Full API reference: see API Reference
- Architecture & development: see Architecture
License
MIT — see LICENSE.
Metadata
Release files for keyway-router 0.2.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 |
|---|---|---|---|---|
| keyway_router-0.2.0.tar.gz | 118.0 kB | Without provenance | Details for keyway_router-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keyway_router-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for keyway_router-0.2.0-py3-none-any.whl |
Total release size: 223.4 kB
Release files / keyway_router-0.2.0.tar.gz
| Download URL | keyway_router-0.2.0.tar.gz |
|---|---|
| Size | 118.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80dd0f25b50ae3999f38de72ea1f4e19e48e72772473b0bbba5ee849c9be5028
|
|
BLAKE2b-256 checksum How to use checksums |
1b9099a59d899cf10fabb5ab99e19ead3f168fec5dd4bfe23ee8c5d7ec0e4d8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / keyway_router-0.2.0-py3-none-any.whl
| Download URL | keyway_router-0.2.0-py3-none-any.whl |
|---|---|
| Size | 105.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7812fa2e14be26d163e7e5af01fad3da14f8ba75ac4cf5e90f153580e8b00a60
|
|
BLAKE2b-256 checksum How to use checksums |
499e1549d35297dda35fc3c45fe1857aae6b6cd686a9ba42e32e9849f1419cff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Security for keyway-router 0.2.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.