Categories
Self-Hosted Developer Tools Observability AI Gateway Access Control Cost Management LLM Proxy Model RoutingStars
Forks
Watchers
Developer links
TokenHub
Give every team, project, and application one governed door to AI models instead of scattering raw provider keys across codebases. TokenHub is an OpenAI-compatible gateway that serves chat completions, responses, embeddings, reranking, and image generation, plus Anthropic Messages endpoints, in front of OpenAI, Azure OpenAI, Anthropic, Gemini, DeepSeek, Qwen, Codex subscriptions, local models, and more than 150 provider templates. Administrators publish a model catalog and write routing policies with priority, weight, failover order, and cost or quality preferences, so a provider outage never reaches client code. Users create project-scoped API keys with quotas and concurrency limits, team leaders manage project spaces and members, and each role gets a workspace that matches its job. Usage analytics and request logs attribute every call to a user, project, team, model, and cost center, and provider reconciliation compares internal usage with upstream bills. Sign in through OAuth or OIDC, control access with RBAC, and keep an audit trail of administrative changes. The console switches between English, Chinese, Japanese, and Russian, and includes an API documentation workspace for developers. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.
Benefits
- One Door To Every Model
- Point applications at a single OpenAI-compatible endpoint and route to OpenAI, Anthropic, Gemini, DeepSeek, Qwen, or local models without copying raw provider keys into each codebase.
- Failover Without Code Changes
- Routing policies with priority, weight, and fallback order let administrators shift traffic or ride out a provider outage without asking any client team to redeploy.
- Spend You Can Explain
- Every request is attributed to a user, project, team, model, and cost center, and provider bills can be reconciled against the usage recorded inside your own gateway.
- Access Matched To Each Role
- Users, team leaders, and administrators get separate workspaces backed by RBAC, OIDC sign-in, and audit trails, so permissions follow responsibility instead of shared credentials.
Features
- OpenAI And Anthropic APIs
- Serve chat completions, responses, embeddings, rerank, image generation, and Anthropic Messages endpoints through one gateway that existing SDKs and coding tools can call.
- Routing Policy Editor
- Configure model routes by priority, weight, failover order, cost, and health, with route diagnostics and per-model provider lists in the admin console.
- Provider Channels And Catalog
- Connect hosted APIs, subscription channels, and local models from 150+ templates, then publish only the approved models employees may call.
- Project-Scoped API Keys
- Issue keys per project with team ownership, member permissions, quotas, and concurrency controls instead of sharing upstream provider credentials.
- Usage Analytics And Logs
- Review token usage, request logs, and cost by department, member, model, and time window, then export reports for finance and platform teams.
- Compose Or Systemd Install
- Run the console and backend with Docker Compose or a checksum-verified native systemd installer, using SQLite by default or PostgreSQL for multi-instance setups.