@tokenade/cli 0.7.3 → 0.7.5
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 +23 -23
- package/install.js +18 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# Tokenade
|
|
4
4
|
|
|
5
5
|
### The #1 tool to cut your AI agent's token bill.
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ Set it up once, save on every prompt — same results, a fraction of the tokens.
|
|
|
16
16
|
[](https://nodejs.org)
|
|
17
17
|
[](https://tokenade.net/signup)
|
|
18
18
|
|
|
19
|
-
[
|
|
19
|
+
[**Start free**](https://tokenade.net/signup) · [**Pricing**](https://tokenade.net/pricing) · [**Dashboard**](https://tokenade.net/dashboard) · [**Report an issue**](https://github.com/pi-infected/tokenade-npm/issues)
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
@@ -38,22 +38,22 @@ Your coding agent burns tokens on things the model never needed to see — whole
|
|
|
38
38
|
|
|
39
39
|
> **Less tokens, same results — automatically, on every prompt.**
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## What it does
|
|
42
42
|
|
|
43
|
-
|
|
|
44
|
-
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
43
|
+
| Feature | What you get |
|
|
44
|
+
|---|---|
|
|
45
|
+
| **Semantic code search** | Finds the right files by *meaning*, so your agent reads only what matters — not your whole project. |
|
|
46
|
+
| **Command optimization** | Trims long command outputs (logs, builds, tests) down to what counts before your agent ever sees them. |
|
|
47
|
+
| **MCP optimization** | Loads only the MCP tools your agent actually needs, on demand — instead of every tool, every time. |
|
|
48
|
+
| **Token dashboard** | See exactly how many tokens Tokenade saved you — clear numbers, no guesswork. |
|
|
49
|
+
| **Free to start** | Save up to **10M tokens/month** on the free plan — unlimited machines, no credit card. |
|
|
50
|
+
| **One-command install** | Ready in seconds. Connects to your agent automatically, with zero configuration. |
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## Works with the agents you already use
|
|
53
53
|
|
|
54
54
|
**Claude Code** · **Cursor** · **Codex** · **GitHub Copilot** · **Gemini CLI** · **Qwen Code** · **Windsurf** · **Cline** · **Kilo Code** · **OpenCode** · **Aider** · **Hermes** · **OpenClaw** · **Antigravity** · **Grok**
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Install
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
59
|
npm install -g @tokenade/cli
|
|
@@ -63,7 +63,7 @@ The `postinstall` step downloads the prebuilt binary for your platform from the
|
|
|
63
63
|
|
|
64
64
|
**Supported:** Linux · macOS · Windows · x64 & arm64 · Node ≥ 18.
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## Activate (browser — no key to type)
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
69
|
tokenade login # opens tokenade.net so you (logged into your dashboard) approve this device
|
|
@@ -72,34 +72,34 @@ tokenade install # registers the hooks with your coding agent
|
|
|
72
72
|
|
|
73
73
|
**Free** and **Pro** include **unlimited machines**; **Enterprise** includes 3 (plus paid extra seats). Manage them anytime at [tokenade.net/dashboard](https://tokenade.net/dashboard).
|
|
74
74
|
|
|
75
|
-
##
|
|
75
|
+
## What leaves your machine
|
|
76
76
|
|
|
77
77
|
**Nothing**, except anonymous token-savings counts and an update check. Tokenade runs **locally**; its agent hooks live in your editor/agent config — **inspectable and reversible**.
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Pricing
|
|
80
80
|
|
|
81
81
|
| | **Free** | **Pro** | **Enterprise** |
|
|
82
82
|
|---|---|---|---|
|
|
83
83
|
| Token savings | Up to **10M / mo** | Up to **100M / mo** | **Unlimited** |
|
|
84
84
|
| Machines | **Unlimited** | **Unlimited** | 3 (+ paid seats) |
|
|
85
|
-
| All reduction features |
|
|
86
|
-
| Token-savings dashboard |
|
|
87
|
-
| Priority support | — |
|
|
85
|
+
| All reduction features | ✓ | ✓ | ✓ |
|
|
86
|
+
| Token-savings dashboard | ✓ | ✓ | ✓ |
|
|
87
|
+
| Priority support | — | ✓ | ✓ |
|
|
88
88
|
| Price | **$0** — no card | **$19.90/mo** — flat, no per-token billing | **$2,990/yr** — 3 seats incl. |
|
|
89
89
|
| | [Start free →](https://tokenade.net/signup) | [Go Pro →](https://tokenade.net/pricing) | [Go Enterprise →](https://tokenade.net/pricing) |
|
|
90
90
|
|
|
91
|
-
##
|
|
91
|
+
## Found a bug? Tell us!
|
|
92
92
|
|
|
93
93
|
Tokenade is in **active beta** and your reports make it better — fast.
|
|
94
94
|
|
|
95
95
|
- **Open an issue:** https://github.com/pi-infected/tokenade-npm/issues
|
|
96
96
|
- **Join the beta testers on WhatsApp:** https://chat.whatsapp.com/JmBZxT41XB6AtQWgW9oNif
|
|
97
97
|
|
|
98
|
-
When reporting, please include your OS, `tokenade --version`, your coding agent, and what you expected vs. what happened. The more detail, the faster we fix it.
|
|
98
|
+
When reporting, please include your OS, `tokenade --version`, your coding agent, and what you expected vs. what happened. The more detail, the faster we fix it.
|
|
99
99
|
|
|
100
100
|
---
|
|
101
101
|
|
|
102
|
-
##
|
|
102
|
+
## CLI reference — every command
|
|
103
103
|
|
|
104
104
|
> **You rarely need any of these by hand.** After `tokenade install`, Tokenade works automatically through your agent's hooks. The CLI below is for power users, scripting, and inspection. Run `tokenade help` for the live list, and `tokenade <command> --help` where available.
|
|
105
105
|
|
|
@@ -208,7 +208,7 @@ When reporting, please include your OS, `tokenade --version`, your coding agent,
|
|
|
208
208
|
|
|
209
209
|
---
|
|
210
210
|
|
|
211
|
-
##
|
|
211
|
+
## Examples & recipes
|
|
212
212
|
|
|
213
213
|
Real commands, real (trimmed) output — so both humans **and coding agents** know exactly what each command does and when to reach for it. Every compactor reads a file **or `-` for stdin**, so you can pipe: `some-noisy-cmd | tokenade auto -`.
|
|
214
214
|
|
package/install.js
CHANGED
|
@@ -171,19 +171,24 @@ function get(targetUrl, redirects = 0) {
|
|
|
171
171
|
err.httpStatus = res.statusCode;
|
|
172
172
|
return reject(err);
|
|
173
173
|
}
|
|
174
|
-
https
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
174
|
+
const tunneled = https.get(
|
|
175
|
+
{
|
|
176
|
+
host: t.hostname,
|
|
177
|
+
port,
|
|
178
|
+
path: `${t.pathname}${t.search}`,
|
|
179
|
+
socket,
|
|
180
|
+
agent: false,
|
|
181
|
+
servername: t.hostname,
|
|
182
|
+
},
|
|
183
|
+
onResponse,
|
|
184
|
+
);
|
|
185
|
+
tunneled.on("error", reject);
|
|
186
|
+
// The outer setTimeout only guards the CONNECT request — a
|
|
187
|
+
// stall AFTER the tunnel is established used to hang the
|
|
188
|
+
// attempt until the OS TCP timeout.
|
|
189
|
+
tunneled.setTimeout(REQUEST_TIMEOUT_MS, () => {
|
|
190
|
+
tunneled.destroy(new Error(`timeout after ${REQUEST_TIMEOUT_MS}ms (tunneled)`));
|
|
191
|
+
});
|
|
187
192
|
});
|
|
188
193
|
req = connectReq;
|
|
189
194
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenade/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "Tokenade — cut your AI coding agent's token bill. Installs the Tokenade CLI (a local, paid token-reduction tool; activate via your browser).",
|
|
5
5
|
"homepage": "https://tokenade.net",
|
|
6
6
|
"license": "UNLICENSED",
|