mrkeyoor.comAsk

astaxie/TokenHubtested 23 Aug 2026commit b297007

TokenHub review

TokenHub merits a controlled evaluation when project ownership, routing policy and provider-bill reconciliation address a specific platform need.

  • Install 32 s
  • Build 82 s
0/1passed, run exited non-zero
  • 107 packages
Self-Hostedevaluationupdated 25 Oct 2026
+5stars / 7d

TokenHub is a self-hosted AI gateway for teams that want project keys, routing policies and usage attribution in one place. Its README describes quotas, role-based administration, audit records and provider-bill reconciliation. Those documented capabilities extend beyond what our recorded backend command run verified.

Verdict

TokenHub merits a controlled evaluation when project ownership, routing policy and provider-bill reconciliation address a specific platform need. Our August 23, 2026 run at b297007 recorded successful setup and build-labelled stages, followed by an unsuccessful backend test command. It did not establish an installed deployment, individual test totals or production reliability. Treat v0.7.0 release information and current documentation as separate evidence from that earlier run. Pin the version you intend to deploy, validate your client protocols and compare usage records with provider bills before depending on it.

We ran it

Lab card: what happened when we ran TokenHub
Lab card from our sandbox run
Screenshot of TokenHub (thinkinai-labs.github.io/tokenhome)
thinkinai-labs.github.io/tokenhome
Install✓ · 32s107 packages
Build✓ · 82s
Tests✗ · 452s0 passed · 1 failed of 1 (go test)
Repo878 files~194,876 lines of source · 24.8 MB · 5 CI workflows · Dockerfile

Answers from our run

Does TokenHub build from source?

Dependencies installed in 32 seconds (107 packages), and the build succeeded in 82 seconds. We cloned commit b297007 into a clean Debian container with 3 CPUs and no project-specific setup.

Do TokenHub's tests pass?

No. The project's own test command finished in 452 seconds and reported 0 passed, 1 failed (go test).

Who should not use TokenHub?

Buyers who need this review to establish production reliability, throughput or billing accuracy. Our recorded run did not measure those workloads.

What are the alternatives to TokenHub?

LiteLLM, Portkey AI Gateway. TokenHub merits a controlled evaluation when project ownership, routing policy and provider-bill reconciliation address a specific platform need.

Setup3/5Native and Compose paths are documented. The August 23, 2026 run at b297007 completed setup and a build-labelled stage but did not verify a working installation.
Docs3/5Supplied deployment and architecture extracts explain databases, secrets, probes and plugin limits. We did not execute their deployment instructions.
Community2/5The supplied release and contributor records show participation, but adoption and support responsiveness were not measured.
Maturity2/5Production workloads and recovery remain unverified. External command plugins are disabled in the supplied architecture; the historical backend test command exited 1 without an established cause.

Who it’s for

Platform teams evaluating shared model access through project-scoped keys rather than distributing upstream credentials to applications.
Organizations that need routing policy, quotas and usage ownership across projects and teams.
Operators prepared to manage a single-instance SQLite deployment or shared PostgreSQL state across replicas.
Teams able to validate their required provider protocols, billing records and recovery procedures before rollout.

Who it’s NOT for

Buyers who need this review to establish production reliability, throughput or billing accuracy. Our recorded run did not measure those workloads.
Operators who require executable external plugins: the supplied architecture documentation says external command execution is disabled.
Teams that require a verified passing backend test run before adoption. Our August 23, 2026 test command exited unsuccessfully, and its retained output does not establish the cause or exhaustive test coverage.
Administrators expecting deployment tooling to configure upstream accounts, project policy and operational recovery for them.

Setup reality

In our recorded run on August 23, 2026 at commit b29700789d86115b8b3a3a3e824e312857497f79, the backend dependency/setup stage succeeded in 32 seconds. The record lists 107 dependencies; this is not evidence that 107 packages were installed. Its retained output shows a Go 1.26.0 toolchain download.

The stage labelled build succeeded in 82 seconds, but its retained output is only vet-exit:0. That supports a successful recorded stage and vet result, not independent confirmation that an executable was compiled or installed. The test command exited 1 after 452 seconds. The parser recorded zero successful packages and one failed package; those are not verified individual test counts.

The recorded checkout had 878 files, 194,876 source lines and a size of 24.8 MB. Detection found 5 CI workflows and a Dockerfile, but no Compose file or tests directory. These are scan results for that checkout, not proof that deployment files or tests are absent from the project.

The supplied current deployment guide documents native systemd and Docker Compose installation. Default console and backend ports are 3000 and 8080. PostgreSQL deployments require stable encryption material shared by replicas and connection pools sized across the fleet. We did not execute either deployment path or check an installed binary.

Does TokenHub fit your platform problem?

TokenHub is worth evaluating when several applications need shared model access with separate ownership and limits. Its README describes project-scoped keys, routing and failover policy, quotas, usage attribution and provider-bill reconciliation. That gives a platform team a concrete evaluation question: can this gateway enforce the policies and explain the charges your organization needs?

The documented workspaces divide responsibilities among users, team leaders and administrators. Users manage project keys and personal usage; team leaders manage project membership and cost attribution; administrators configure providers, identity, routing and audit controls. These are documented workflows, not workflows exercised in our sandbox.

The README lists native provider adapters and more than 150 provider templates. It also says templates without a matching native adapter use an OpenAI-compatible endpoint, and that capabilities vary by upstream service and account. A template count therefore does not establish compatibility with every operation your application uses. No savings or provider-performance benchmark was supplied.

What our August 23 run establishes

Our recorded run started on August 23, 2026 at 04:02:43 UTC against commit b29700789d86115b8b3a3a3e824e312857497f79, in the backend directory. The recorded sandbox configuration was 3 CPUs, 8 GB of memory and image golang:1.24-bookworm. The image label does not establish the toolchain actually used: the setup output shows go: downloading go1.26.0 (linux/amd64), and the test stack includes Go 1.26.0 toolchain paths.

Recorded stage Result What the retained evidence supports
Dependency/setup Exit 0, 32 seconds The stage completed; its tail shows a toolchain download. The dependency count is 107, not a verified installation count.
Build-labelled stage Exit 0, 82 seconds The retained tail is vet-exit:0. It does not independently establish compilation or an installed executable.
Backend test command Exit 1, 452 seconds The command was unsuccessful. The harness did not mark it as timed out.

The parser summary records zero successful packages and one failed package. Unique and exhaustive coverage was not verified, so these numbers cannot support a claim that the repository contains one test or that one individual test failed.

The retained test tail ends with tokenhub/backend/internal/server reporting failure after 360.317 seconds. It includes responseWorker goroutines in select at response_jobs.go:292, alongside database connection and heartbeat goroutines. The tail does not identify a failed assertion or establish a deadlock, timeout or root cause. The package duration and the overall 452-second command duration describe different scopes.

The checkout contained 878 files, 194,876 source lines and occupied 24.8 MB. Detection found 5 CI workflows and a Dockerfile, but no Compose file or tests directory. Tests can live beside Go source files, and the supplied documentation describes Compose deployment. A directory scan is not a test inventory.

We did not connect live providers, verify a running gateway or installed binary, compare bills, benchmark throughput, or test upgrades and recovery. No security audit result was supplied.

Deployment has responsibilities beyond setup

The supplied current deployment guide describes a native Linux systemd installer and Docker Compose deployment. It says the native installer verifies release checksums and bundles the backend, console and matching Node.js runtime. These are documented installer behaviors; our run did not exercise them.

The default console and backend ports are 3000 and 8080. The current guide permits an omitted initial admin password and generates one when appropriate. The static admin token is optional. PostgreSQL and existing databases require a stable encryption root key; a brand-new file-backed SQLite deployment can generate and persist its key beside the database. These distinctions matter when preparing secrets and replacing instances.

The guide also documents separate liveness and readiness behavior. Unsafe startup configuration can leave /livez healthy while readiness and application routes return 503 until configuration is corrected and the process restarts. Use the documented probes rather than assuming every configuration problem must produce a restart loop.

SQLite is the documented single-instance default. PostgreSQL supports shared state across replicas. Replicas must use the same stable secret, and their combined connection pools must stay within the database limit. Never share a SQLite file between backend replicas. These deployment options do not establish throughput for a particular workload.

Before rollout, configure upstream credentials and routes, HTTPS, retention rules and backups. Test restoration as well as backup creation. The architecture documentation says the built-in backup API is SQLite-only; PostgreSQL requires platform backup tooling.

Check current capabilities against the version you deploy

The August 23 run predates the August 25 v0.7.0 release. Its result cannot establish whether that release or current main passes tests. Likewise, current documentation cannot retroactively prove what the measured checkout supported.

The supplied current README documents /v1/rerank alongside embeddings. The architecture documentation describes a Core with built-in plugins and external packages, rather than merely a future plugin refactor. It says built-in plugins execute in process, while external command-backed providers, gateway hooks, jobs and actions are rejected before launch. Declarative presentation packages remain a separate supported surface. Teams seeking executable external extensions should treat that boundary as a selection constraint.

Older issue reports also need version context. A reported missing endpoint or console control should become a check against your chosen release, rather than an undated statement about every TokenHub deployment. For a trial, list the exact endpoints, streaming events, tool calls, usage fields and error responses your clients require, then exercise them against the pinned version. Technical subscription connectivity also does not establish permission under a provider agreement.

How to choose a trial

Start with one application and a limited provider set. Check project-key restrictions, quota behavior and fallback results, then reconcile its recorded usage with the provider's bill. Test concurrent requests, interrupted streams, restarts and recovery before expanding traffic. These are recommended evaluation steps, not tests completed for this review.

LiteLLM is a relevant comparison when you want either a Python SDK or a central proxy using OpenAI-format calls. Its README documents both integration modes and centralized access and spend controls. Portkey AI Gateway is relevant when retry, fallback and weighted load-balancing configuration drives the choice. Its README distinguishes features available in hosted or enterprise versions. Neither alternative was benchmarked here.

How the ratings work

Scores are editorial judgments on a 1-to-5 scale, not benchmark results. A 1 means substantial documented obstacles; 2 means important evidence remains missing; 3 means a documented evaluation path with material validation work; 4 requires strong evidence for the category with limited gaps; 5 requires comprehensive evidence across the reviewed scope. Unknown adoption, compatibility and reliability do not earn a high score.

Setup receives 3 because deployment paths are documented, while our run did not establish a working installation. Documentation receives 3 because the supplied deployment and architecture extracts explain operational boundaries, but their instructions were not exercised. Community receives 2 because release and contributor evidence does not establish adoption or support responsiveness. Maturity receives 2 because production recovery and workloads remain unverified, executable external plugins are disabled, and the historical test command was unsuccessful for an unidentified reason.

Use the documentation to design a trial, and use results from your pinned deployment to decide whether TokenHub can become a dependency.

Alternatives

ProjectWhat it isPick it when
LiteLLM gh↗An AI gateway and Python SDK with an OpenAI-format interface to multiple model providers.Evaluate LiteLLM when you want a choice between direct Python SDK integration and a centralized proxy. Its README also documents virtual keys and spend management; this review does not establish a performance or adoption advantage.
Portkey AI GatewayAn open-source AI gateway whose README documents retries, fallbacks and weighted load balancing.Evaluate Portkey when retry, fallback and load-balancing configuration is your main gateway requirement. Check its open-source, hosted and enterprise feature boundaries against your needs.

What people are saying

  1. [github-trending] astaxie/TokenHub

Sources

  1. TokenHub README
  2. TokenHub deployment guide
  3. TokenHub architecture
  4. TokenHub v0.7.0 release
  5. Plugin-mode refactor notice
  6. Codex voice endpoint issue
  7. Secure first-run proposal
  8. API-key provider resource console gap

More self-hosted reviews