TokenHub v0.7.0 is officially released: Introducing forward-looking database evolution, fine-grained credit calculation, and enterprise-level security enhancements.

TokenHub v0.7.0 is officially released: Introducing forward-looking database evolution, fine-grained credit calculation, and enterprise-level security enhancements.

2 months ago
duguying
31 views
Source: GitHub Releases

Enterprise-grade AI Token Governance Infrastructure, TokenHub, releases version 0.7.0. This update introduces features such as a forward-compatible database evolution system (including migration ledger, dry run, and automatic rollback), aggregated credit and billing control, enhanced administrator security, and OpenAPI gateway documentation. It also improves multi-instance deployment and observability.

Related tags

#TokenHub#AI网关#Token治理#开源发布

Overview of Release

The enterprise-grade AI Token governance infrastructure, TokenHub, was released in version v0.7.0 on August 25, 2026. This release focuses on improving the reliability and precision of database evolution, refining quota and billing management, strengthening administrator security, enhancing compatibility with vendors/gateways, and further optimizing multi-instance deployment and observability capabilities.

Key Highlights

1. Forward-Only Database Evolution System

A new forward-only database evolution mechanism has been added, allowing for more controlled and reversible upgrades of production databases:

  • A migration ledger records each evolution step.
  • Contract preflight simulations before deployment.
  • Frozen SQLite/PostgreSQL baselines.
  • Instance heartbeat monitoring and rollback compatibility checks.
  • Automatic rollbacks in case of failed startup.

2. Quota and Billing Control

  • Aggregation of user quota limits.
  • Owner-safe quota history.
  • Atomic image admission accounting.
  • Granular pricing controls.
  • Redis access rollback hardening.
  • Separate billing domain, persistence, and adapter modules.

3. Administrator Security Enhancements

Comprehensive enhancements have been made in areas such as OAuth, password reset, CSP, session boundary control, API Key change authorization, vendor/resource credential obfuscation, alert delivery key management, image task access, forwarded header validation, and vendor egress proxy verification.

4. Vendor and Gateway Compatibility

  • Configurable global egress proxy.
  • Preservation of Codex explicit background null values.
  • Cross-adapter support for max_completion_tokens.
  • Implicit TLS/STARTTLS SMTP encryption mode.
  • More secure routing for older vendors.

5. Management Console Upgrade

  • Detailed usage information for each API Key.
  • Daily usage dashboard.
  • Improved API Key usage charts.
  • Localized numeric formatting.
  • Redesigned localized login homepage.

Other Improvements and Modularization

  • New OpenAPI gateway reference documentation.
  • Refined Token governance positioning.
  • Restart-safe bootstrap checks.
  • Stream quality observability for TTFB (Time to First Byte) and interruptions.
  • Continuous modularization: Breaking down the service responsibilities of billing, reconciliation, and method routing into smaller domain modules, and expanding regression test coverage.

Release Artifacts

  • Release workflow built with Linux native archive (amd64 / arm64), and checksums.txt.
  • Container images: ghcr.io/astaxie/tokenhub-backend:0.7.0, :0.7, :latest
  • Frontend and SDK smoke test versions have been updated to 0.7.0 in chore(release): prepare v0.7.0.

About TokenHub

TokenHub is an enterprise-grade AI Token governance infrastructure: It provides model routing, access control, token cost optimization, vendor reconciliation, and managed access to every upstream model provider. It places a governance layer before each model call – including selecting models based on scenario/cost/performance/health/degradation strategy, controlling token access based on individuals/teams/projects/applications, reducing AI spending through caching and quotas, and reconciling internal usage with vendor invoices, allowing finance, platform, and business teams to accurately understand their AI costs.

The project is open-source under the Apache 2.0 license, supports OpenAI compatible interfaces and Anthropic Messages interface, and offers both SQLite private deployment and PostgreSQL multi-instance deployment options.

Getting Started and Upgrading

curl -fsSL https://raw.githubusercontent.com/astaxie/TokenHub/main/deploy/native/install.sh \
  -o /tmp/tokenhub-install.sh
sudo bash /tmp/tokenhub-install.sh install

Docker Compose:

cp deploy/.env.example deploy/.env
# Replace all "change-me" in deploy/.env with strong keys
./deploy/install.sh

More News

Want to see more quality content?

Browse all news