TokenHub Documentation

August 21, 2026 · View on GitHub

Language: English | 简体中文 | 日本語

TokenHub documentation is organized around the three roles used in enterprise Token Governance. The default documentation language is English. Localized Chinese and Japanese versions use the same English screenshots and the same English sample data set.

Architecture and Deployment

  • Architecture: deployment modes, control and data planes, model request flow, persistence, and security boundaries.
  • Deployment: Docker Compose, environment variables, databases, reverse proxying, and health checks.
  • Database Evolution: forward-only migrations, adoption baseline, maintenance commands, and rollback compatibility.
  • PostgreSQL Setup Guide: PostgreSQL configuration, operations, and migration.
  • Performance Benchmarking: reproducible gateway comparisons, internal allocation benchmarks, and regression budgets.

Role Guides

GuideAudiencePrimary workflow
User GuideEmployees and application developersFind available models, create project keys, call the model API, and review personal usage
Team Leader GuideTeam owners and project maintainersManage project spaces, members, API keys, team reports, and project cost attribution
Administrator GuidePlatform administrators and security operatorsConfigure providers, model catalog, routing, identity sources, RBAC, audit, and cost controls
Agent Token Cost APILocal reporting agents and platform administratorsCreate least-privilege analytics credentials and pull filtered, aggregated, incremental token costs as JSON or CSV
Image Generation GuideApplication developers using image modelsGenerate and edit images, run asynchronous jobs, and distinguish Codex subscription capacity from OpenAI API usage
Connect Codex to TokenHub: Profile Quick SetupCodex users who only need an isolated profileCreate the profile, set the key, validate the connection, and recover
Connect Codex to TokenHub: Four Configuration Methods and RecoveryCodex users and developers comparing integration methodsConfigure TokenHub through a profile, process-local override, global CLI settings, or the desktop app

Shared English Sample Data

The examples and screenshots use one English data set so every language version stays visually consistent:

ObjectExample
OrganizationAcme AI Platform
TeamPlatform Engineering
ProjectPayments Assistant
Cost centerAI Platform Cost Center
Modelgpt-4.1-mini
API key placeholderYOUR_TOKENHUB_API_KEY

Screenshot Set

Product screenshots are captured from the English UI. The Codex guides use the same real, redacted terminal screenshots in every language version.

ScreenFile
Gateway documentationassets/screenshots/gateway-en.png
Overviewassets/screenshots/overview-en.png
Modelsassets/screenshots/models-en.png
Routesassets/screenshots/routes-en.png
Usageassets/screenshots/usage-en.png
Settingsassets/screenshots/settings-en.png
Codex Profile configurationassets/codex-profile/tokenhub-profile-config-redacted.png
Codex Profile statusassets/codex-profile/codex-status-redacted.png
  1. Start with the guide that matches your role.
  2. Read the “Concepts” section in the in-app API Documentation page if you need shared vocabulary.
  3. Use the API examples in the User Guide for application integration.
  4. Review the Administrator Guide before production rollout.