v0.1.0 — Initial Release
Keyway v0.1.0 — Initial Release
A lightweight self-hosted LLM routing gateway with OpenAI & Anthropic dual-protocol support.
Install
pip install keyway-routerFeatures
- Dual-protocol proxy: OpenAI
/v1/chat/completions+ Anthropic/v1/messages - Model aliases: map client-facing names to any upstream model
- Group isolation: keys are bound to groups; clients can only access their group's providers/routes
- Self-issued
db_sk_API keys: plaintext retrievable by admin - Fernet encryption at rest: all upstream API keys and key plaintexts encrypted
- Built-in tools: Tavily web search auto-injected into OpenAI tool-use loops
- Request logging: status, latency, and token counts for every upstream call
- E2E testing: one-click probe of all enabled routes
- Generation forwarding: image/video/3D endpoints via configurable
upstream_path - Zero external dependencies: just Python + SQLite
- Web admin UI: full CRUD management interface, zero-dependency vanilla JS
- Docker support:
docker compose upfor one-command deployment
Quick Start
pip install keyway-router
python -c "import secrets; print('KEYWAY_SECRET=' + secrets.token_urlsafe(48))" > .env
echo "KEYWAY_ADMIN_TOKEN=my-admin-token" >> .env
keywayThen open http://localhost:9233/ to access the admin UI.
Links
- PyPI: https://pypi.org/project/keyway-router/0.1.0/
- GitHub: https://github.com/DeconBear/keyway
- Docs: Integration guide available at
/docs.htmlafter starting the server