cd /news/ai-infrastructure/a-private-enterprise-ai-gateway · home topics ai-infrastructure article
[ARTICLE · art-67313] src=github.com ↗ pub= topic=ai-infrastructure verified=true sentiment=· neutral

A private enterprise AI gateway

TokenHub, a private enterprise AI gateway developed by Asta Xie, provides role-based workspaces for users, team leaders, and administrators, separating model usage, team governance, and platform administration. The gateway supports OpenAI-compatible APIs, multiple provider channels including Azure OpenAI, Anthropic, and DeepSeek, and offers features such as project-scoped API keys, usage analytics, and OAuth/OIDC enterprise sign-in, with deployment via Docker Compose and an Apache 2.0 license.

read2 min views1 publishedJul 21, 2026
A private enterprise AI gateway
Image: source

TokenHub is a private enterprise AI gateway with role-based workspaces for users, team leaders, and administrators.

Login Console Gateway Overview
API Documentation Provider Channels
Model Catalog Routing Policies
Usage Analytics System Settings

TokenHub separates everyday model usage, team governance, and platform administration so enterprise users see the workflows that match their responsibility.

Role Workspace Focus Guide
User Find available models, create project-scoped API keys, call the model API, and review personal usage

Team Leader GuideAdministrator Guide- OpenAI-compatible model APIs: /v1/chat/completions

,/v1/responses

,/v1/embeddings

. - Provider channels for OpenAI-compatible, Azure OpenAI, Anthropic, Gemini, DeepSeek, Qwen, local vLLM/Ollama, and custom upstreams.

  • Model catalog and routing policies with priority, weight, failover order, and route health diagnostics.
  • Project-scoped key management with team ownership, member permissions, quotas, and concurrency controls.
  • Usage analytics and request logs attributed to user, project, team, model, and cost center.
  • Identity source configuration for OAuth/OIDC enterprise sign-in, plus RBAC and audit trails.
  • Clean console with compact role-aware navigation, global search, light/dark mode, and split-view API documentation.
  • SQLite-first private deployment with Docker Compose support.
  • Console language switching for English, Chinese, and Japanese.
cp deploy/.env.example deploy/.env
docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d --build

Open:

  • Admin console: http://localhost:3000

  • Backend API: http://localhost:8080

  • Health check: http://localhost:8080/healthz

Default admin login:

  • Username: admin

  • Password: admin123456

Change the default password and secrets in deploy/.env

before exposing TokenHub beyond a local machine.

Backend:

cd backend
go run ./cmd/tokenhub

Frontend:

cd frontend
npm install
npm run dev

Smoke-test the model API with the included SDK example:

cd sdk
npm install
npm run test:deepseek

TokenHub is licensed under the Apache License 2.0.

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @tokenhub 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-private-enterprise…] indexed:0 read:2min 2026-07-21 ·