Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@emesoft/tokenhub

Latest version: v0.9.18

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: chuongnd26
43 Versions
6.2K Downloads

Scan summary

@emesoft/tokenhub was last scanned on 29 Nov 2026 at version 0.9.18. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 43 versions; the latest 2 were published on 29 Nov 2026.
  • Findings: No rules fired in version 0.9.18.
  • Downloads: 6,194 downloads.

Versions

43 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.18 LATEST 29 Nov 2026 No rules fired
0.9.17 29 Nov 2026 No rules fired
0.9.16 20 Nov 2026 No rules fired
0.9.15 20 Nov 2026 Not shown
0.9.14 20 Nov 2026 Not shown

No rules fired in 0.9.18

Findings

Findings for v0.9.18. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.9.18; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@emesoft/tokenhub

Connect Claude Code to your company's TokenHub in one command, and keep an eye on your spend from the terminal.

  • One-step setup: pair in the browser, no keys to copy.
  • Spend at a glance: a status line under the Claude Code prompt, plus usage and a live dashboard.
  • Zero dependencies: Node.js 18 or later, macOS, Linux and Windows.

Quick start

npm install -g @emesoft/tokenhub
tokenhub connect <your tenant name>
claude

Your tenant name is the first part of your TokenHub address: for https://acme.aimpact.io.vn it is acme (connect asks if you leave it out; a full URL works too). Ask your admin if you don't know it.

connect shows a short code and opens your browser. Sign in to the pool, check the code matches, and confirm. That's it: Claude Code now runs through the pool.

From then on, today's spend and your credit sit under the Claude Code prompt:

Prefer not to install? Use npx @emesoft/tokenhub connect <your tenant name> instead.

Commands

Command What it does
tokenhub connect [tenant] Pair this machine with your tenant (acme = https://acme.aimpact.io.vn, or a full URL). Asks for it when left out.
tokenhub desktop [tenant] The same pairing, for Claude Desktop: writes its third-party inference config and turns that mode on. Restart the app afterwards.
tokenhub usage [--json] Today's and this week's spend against your limits, your credit and pool health.
tokenhub dashboard Live full-screen view of spend and your recent requests.
tokenhub overlay <tenant> Install the TokenHub desktop overlay (Windows).
tokenhub remote status TokenHub Remote: installed version, whether its daemon runs, the relay it is set up for, the claude launcher and your Remote page.
tokenhub disconnect Undo connect, including TokenHub Remote.
tokenhub disconnect --desktop Undo desktop: quit Claude Desktop first. Removes the TokenHub configuration (other Desktop configurations stay), turns the 3p mode off and revokes the machine's key on the pool. Desktop seals the key after its first start, which the CLI cannot read; it then names the key so you can revoke it on the pool's Keys page. Desktop returns to signing in.
tokenhub --help / --version Help and version.
Options
Option Applies to Effect
--no-statusline connect Don't add the spend status line to Claude Code.
--no-model-picker connect Don't offer to install the TokenHub model picker.
--remote / --no-remote connect Set up TokenHub Remote without asking / skip its question.
--reconnect connect Pair again even when the key in settings.json still works (by default that key is kept and no pairing starts).
--plain connect One plain line per finished step instead of the progress bar (also used without a terminal or with NO_COLOR).
--verbose connect Also print what is otherwise only kept in ~/.tokenhub/remote/install.log (download sizes, backup paths, the settings diff, PATH details).
--force disconnect Stop the Remote daemon even while it hosts Claude sessions (they end).
--admin connect, disconnect Pair (or forget) this machine as an admin device. See For admins.
--desktop disconnect Undo tokenhub desktop instead of connect (Claude Desktop, not Claude Code).
--json usage Print the raw report.
--interval <sec> dashboard Refresh rate in seconds (default 3, minimum 2).
--once dashboard Print one frame and exit.

Exit codes: usage and dashboard --once exit 2 while the pool would refuse your requests (out of credit or over budget), so scripts can check before starting a job.

What connect changes

connect edits Claude Code's settings file, ~/.claude/settings.json (or $CLAUDE_CONFIG_DIR/settings.json):

  • Sets env.ANTHROPIC_BASE_URL and env.ANTHROPIC_AUTH_TOKEN to the pool and a new key for this machine.
  • Adds a statusLine showing today's spend and credit, unless you already have one or pass --no-statusline.
  • Asks whether to install the TokenHub model picker, unless you pass --no-model-picker or there is no terminal to ask on. On yes it copies a Claude Code plugin to ~/.tokenhub/claude-plugin and registers it as extraKnownMarketplaces.tokenhub and enabledPlugins["tokenhub-models@tokenhub"]. After a restart, a bare /model opens a picker of TokenHub models above the prompt: providers side by side, ↑/↓ and Enter or a click to pick (rows are numbered by position), , / . or a click for effort (hover highlights), and [ or a click for 1M: each model shows its context window, and with 1M on, a model whose window is 1M is picked as <id>[1m] so Claude Code compacts at 1M instead of 200K (only for models whose window TokenHub knows to be 1M). /model <id> and other hosts keep Claude Code's own picker. The list is read from your tenant (/member/api/models: the providers your key may use, with a skeleton while it loads); when the pool does not answer within a few seconds it falls back to a built-in list, marked "offline list". The plugin relies on Claude Code's early-access plugin hooks, which can change between Claude Code releases. Claude Code reports the mouse only in its fullscreen layout, so after installing the picker connect asks whether to turn that on ("tui": "fullscreen", default no); in the classic layout the picker works from the keyboard and says /tui fullscreen turns the mouse on. disconnect leaves tui as it is. The same install adds a second plugin, tokenhub-usage (enabledPlugins["tokenhub-usage@tokenhub"]): for an admin device (tokenhub connect --admin), a bare /usage opens a panel above the prompt listing every pool account with its 5h and weekly usage, status, resets and balance (Refresh re-reads it). Without an admin device it says to run tokenhub connect --admin; /usage <args> and other hosts keep Claude Code's own /usage. A third plugin, tokenhub-remote (enabledPlugins["tokenhub-remote@tokenhub"]), shows a phone's request for access to a TokenHub Remote session above the prompt with Approve and Deny buttons (hover, click, a / x), and clears it when answered; it does nothing in a session Remote did not start.
  • Asks whether to set up TokenHub Remote, unless you pass --remote or --no-remote (see TokenHub Remote).
  • Keeps every other setting, and saves the previous file as settings.json.bak.

Each machine gets its own key, which you can revoke from the pool's Keys page. disconnect removes exactly these entries (and the model picker's copy) and nothing else.

If ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY is set in your shell, it takes precedence over settings.json. connect warns you when it finds one.

Dashboard

tokenhub dashboard shows your daily and weekly spend as bars against your limits (green below 70%, orange to 90%, red above), your credit, pool health and your latest requests. Press r to refresh now and q to quit. If the connection drops, it keeps the last screen and reconnects on its own. With --once, NO_COLOR or no terminal, it prints a single plain frame.

Desktop overlay

tokenhub overlay downloads the TokenHub overlay installer from the pool and starts it (Windows). The overlay is a small always-on-top widget that shows your own usage after connect, or the whole pool after connect --admin.

Screenshots use sample data.

TokenHub Remote

Drive the Claude Code session on your computer from your phone, while the terminal keeps working (Windows and macOS). connect asks "Use Claude from your phone (TokenHub Remote)?" (English or Vietnamese by your system language, or TOKENHUB_LANG=vi); the default is no. On yes it:

  1. downloads the Remote daemon from your pool (/downloads/remote/), checks its SHA-256 and installs it in ~/.tokenhub/remote/<version>;
  2. pairs this computer for Remote: one more approval in the browser (revoke it any time on https://<tenant>.aimpact.io.vn/member/remote), and saves the token where the daemon reads it (relay.json, readable by you only);
  3. adds the /tf-remote command and its hooks to Claude Code's settings (a backup settings.json.tf-remote.bak-<time> is made and the change is printed);
  4. asks whether to make claude start through Remote: it puts a small launcher in ~/.tokenhub/bin first on your PATH (Windows: your user Path; macOS: a marked block in ~/.zprofile, and ~/.bash_profile if you have one). claude mcp, claude -p, --version, --help and piped input or output run Claude Code untouched. Say no and start Claude with the tfc program that connect prints. Then open a new terminal, run claude, type /tf-remote and scan the QR code with your phone. Run connect again to update the daemon (your token is kept unless you revoked it). tokenhub remote status shows what is installed; tokenhub disconnect stops the daemon, revokes the token, and removes the launcher, the PATH entry, the hooks and /tf-remote, touching only what connect wrote (it refuses while Remote hosts open Claude sessions; --force ends them).

For admins

tokenhub connect --admin pairs this machine as an admin device for the desktop overlay's pool view:

  • You confirm the code in the pool's admin console, so only a signed-in admin can approve it.
  • The device token is saved to ~/.tokenhub/admin.json (or $TOKENHUB_CONFIG_DIR/admin.json). Claude Code's settings are not touched.
  • The token can read account names and quota levels and switch accounts on or off. It cannot see emails, tokens, members or settings.

Revoke a device from the admin Devices page (/admin/pair). tokenhub disconnect --admin only forgets the token on this machine.

Privacy

The CLI talks to the pool you connect to. Requests carry your key and one header, x-tokenhub-cli: <version>. connect and desktop also read the package's latest version from the npm registry (registry.npmjs.org, a plain GET with a 2 second limit, nothing of yours in it) to warn you when a newer @emesoft/tokenhub is out. Set NO_UPDATE_NOTIFIER=1 to skip that. Nothing else is collected or sent.

Troubleshooting

Problem Fix
tokenhub: command not found after npm install Install globally with -g. A plain npm install puts it in the current folder, which isn't on your PATH (only npx finds it there).
Command missing after switching Node with nvm Global packages belong to one Node version. Run npm install -g @emesoft/tokenhub again.
The pool rejected this key The key was revoked. Run tokenhub connect <tenant> again.
Claude Code ignores the pool A shell variable is overriding settings.json (see the note under What connect changes).

Links

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @emesoft/tokenhub

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229