@emesoft/tokenhub 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://tokenhub.aimpact.io.vn/readme/banner.jpg" alt="TokenHub" width="520">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://www.npmjs.com/package/@emesoft/tokenhub"><img src="https://img.shields.io/npm/v/@emesoft/tokenhub" alt="npm version"></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@emesoft/tokenhub?activeTab=code"><img src="https://img.shields.io/npm/l/@emesoft/tokenhub" alt="MIT license"></a>
|
|
8
|
+
<img src="https://img.shields.io/node/v/@emesoft/tokenhub" alt="Node.js 18+">
|
|
9
|
+
</p>
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@emesoft/tokenhub?activeTab=code)
|
|
5
|
-

|
|
11
|
+
# @emesoft/tokenhub
|
|
6
12
|
|
|
7
13
|
Connect [Claude Code](https://docs.anthropic.com/en/docs/claude-code) to a [TokenHub](https://tokenhub.aimpact.io.vn) pool in one command, and keep an eye on your spend from the terminal.
|
|
8
14
|
|
|
@@ -20,6 +26,12 @@ claude
|
|
|
20
26
|
|
|
21
27
|
`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.
|
|
22
28
|
|
|
29
|
+
<img src="https://tokenhub.aimpact.io.vn/readme/connect.png" alt="tokenhub connect in a terminal, next to the pool's page confirming the same code" width="100%">
|
|
30
|
+
|
|
31
|
+
From then on, today's spend and your credit sit under the Claude Code prompt:
|
|
32
|
+
|
|
33
|
+
<img src="https://tokenhub.aimpact.io.vn/readme/statusline.png" alt="The TokenHub status line under the Claude Code prompt" width="560">
|
|
34
|
+
|
|
23
35
|
Prefer not to install? Use `npx @emesoft/tokenhub connect` instead.
|
|
24
36
|
|
|
25
37
|
## Commands
|
|
@@ -61,10 +73,16 @@ Each machine gets its own key, which you can revoke from the pool's **Keys** pag
|
|
|
61
73
|
|
|
62
74
|
`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.
|
|
63
75
|
|
|
76
|
+
<img src="https://tokenhub.aimpact.io.vn/readme/dashboard.png" alt="tokenhub dashboard: daily and weekly spend bars, credit, pool health and recent requests" width="100%">
|
|
77
|
+
|
|
64
78
|
## Desktop overlay
|
|
65
79
|
|
|
66
80
|
`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`.
|
|
67
81
|
|
|
82
|
+
<img src="https://tokenhub.aimpact.io.vn/readme/overlay.jpg" alt="The TokenHub desktop overlay, collapsed and expanded, on a desktop" width="100%">
|
|
83
|
+
|
|
84
|
+
<sub>Screenshots use sample data.</sub>
|
|
85
|
+
|
|
68
86
|
## For admins
|
|
69
87
|
|
|
70
88
|
`tokenhub connect --admin` pairs this machine as an **admin device** for the desktop overlay's pool view:
|