Language: English | 简体中文 | 日本語
TokenHub documentation is now organized around the three roles used in an enterprise AI gateway. The default documentation language is English. Localized Chinese and Japanese versions use the same English screenshots and the same English sample data set.
- 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.
- PostgreSQL Setup Guide: PostgreSQL configuration, operations, and migration.
- Performance Benchmarking: reproducible gateway comparisons, internal allocation benchmarks, and regression budgets.
| Guide | Audience | Primary workflow |
|---|---|---|
| User Guide | Employees and application developers | Find available models, create project keys, call the model API, and review personal usage |
| Team Leader Guide | Team owners and project maintainers | Manage project spaces, members, API keys, team reports, and project cost attribution |
| Administrator Guide | Platform administrators and security operators | Configure providers, model catalog, routing, identity sources, RBAC, audit, and cost controls |
| Agent Token Cost API | Local reporting agents and platform administrators | Create least-privilege analytics credentials and pull filtered, aggregated, incremental token costs as JSON or CSV |
| Image Generation Guide | Application developers using image models | Generate and edit images, run asynchronous jobs, and distinguish Codex subscription capacity from OpenAI API usage |
| Connect Codex to TokenHub: Profile Quick Setup | Codex users who only need an isolated profile | Create the profile, set the key, validate the connection, and recover |
| Connect Codex to TokenHub: Four Configuration Methods and Recovery | Codex users and developers comparing integration methods | Configure TokenHub through a profile, process-local override, global CLI settings, or the desktop app |
The examples and screenshots use one English data set so every language version stays visually consistent:
| Object | Example |
|---|---|
| Organization | Acme AI Platform |
| Team | Platform Engineering |
| Project | Payments Assistant |
| Cost center | AI Platform Cost Center |
| Model | gpt-4.1-mini |
| API key placeholder | YOUR_TOKENHUB_API_KEY |
Product screenshots are captured from the English UI. The Codex guides use the same real, redacted terminal screenshots in every language version.
| Screen | File |
|---|---|
| Gateway documentation | assets/screenshots/gateway-en.png |
| Overview | assets/screenshots/overview-en.png |
| Models | assets/screenshots/models-en.png |
| Routes | assets/screenshots/routes-en.png |
| Usage | assets/screenshots/usage-en.png |
| Settings | assets/screenshots/settings-en.png |
| Codex Profile configuration | assets/codex-profile/tokenhub-profile-config-redacted.png |
| Codex Profile status | assets/codex-profile/codex-status-redacted.png |
- Start with the guide that matches your role.
- Read the “Concepts” section in the in-app API Documentation page if you need shared vocabulary.
- Use the API examples in the User Guide for application integration.
- Review the Administrator Guide before production rollout.