@tokenzero/cli 0.2.7 → 0.2.9
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/bin/tokenzero.mjs +127 -3
- package/package.json +1 -1
package/bin/tokenzero.mjs
CHANGED
|
@@ -17,11 +17,15 @@ var PRICES = {
|
|
|
17
17
|
// ---- OpenAI (standard tier, ≤272K; cache write = 30m TTL rate) ----
|
|
18
18
|
"gpt-6-astra": P("openai", "frontier", 10, 50, 1, 12.5, { ultrafast: true, longCtxAt: 272e3, longCtx: { input: 20, output: 75, cachedInput: 2, cacheWrite: 25 }, minCacheTokens: 1024 }),
|
|
19
19
|
"gpt-6.1-sol": P("openai", "mid", 2, 10, 0.1, 2.5, { ultrafast: true, longCtxAt: 272e3, longCtx: { input: 4, output: 15, cachedInput: 0.2, cacheWrite: 5 }, minCacheTokens: 1024 }),
|
|
20
|
+
"gpt-6.1-terra": P("openai", "mid", 1, 5, 0.05, 1.25, { longCtxAt: 272e3, longCtx: { input: 2, output: 7.5, cachedInput: 0.1, cacheWrite: 2.5 }, minCacheTokens: 1024 }),
|
|
20
21
|
"gpt-6-sol": P("openai", "mid", 2, 10, 0.2, 2.5, { longCtxAt: 272e3, longCtx: { input: 4, output: 15, cachedInput: 0.4, cacheWrite: 5 }, minCacheTokens: 1024 }),
|
|
21
22
|
"gpt-6-luna": P("openai", "fast", 0.1, 0.5, 0.01, 0.125, { longCtxAt: 272e3, longCtx: { input: 0.2, output: 0.75, cachedInput: 0.02, cacheWrite: 0.25 }, minCacheTokens: 1024 }),
|
|
22
23
|
"gpt-5.6-sol": P("openai", "frontier", 4, 20, 0.4, 5, { longCtxAt: 272e3, longCtx: { input: 8, output: 30, cachedInput: 0.8, cacheWrite: 10 }, minCacheTokens: 1024 }),
|
|
23
24
|
"gpt-5.6-terra": P("openai", "mid", 2, 12, 0.2, 2.5, { longCtxAt: 272e3, longCtx: { input: 4, output: 18, cachedInput: 0.4, cacheWrite: 5 }, minCacheTokens: 1024 }),
|
|
24
25
|
"gpt-5.6-luna": P("openai", "fast", 0.2, 1.2, 0.02, 0.25, { longCtxAt: 272e3, longCtx: { input: 0.4, output: 1.8, cachedInput: 0.04, cacheWrite: 0.5 }, minCacheTokens: 1024 }),
|
|
26
|
+
// Daybreak cyber model: access needs OpenAI approval; 400K window
|
|
27
|
+
"gpt-5.6-cyber": P("openai", "frontier", 12.5, 75, 1.25, 15.625, { longCtxAt: 272e3, longCtx: { input: 25, output: 112.5, cachedInput: 2.5, cacheWrite: 31.25 }, minCacheTokens: 1024 }),
|
|
28
|
+
"gpt-5.3-codex": P("openai", "mid", 1.75, 14, 0.175, void 0, { minCacheTokens: 1024 }),
|
|
25
29
|
"gpt-5.5": P("openai", "frontier", 5, 30, 0.5, void 0, { fastFactor: 2.5, longCtxAt: 272e3, longCtx: { input: 10, output: 45, cachedInput: 1 }, minCacheTokens: 1024 }),
|
|
26
30
|
"gpt-5.5-pro": P("openai", "frontier", 30, 180),
|
|
27
31
|
"gpt-5.4": P("openai", "frontier", 2.5, 15, 0.25, void 0, { longCtxAt: 272e3, longCtx: { input: 5, output: 22.5, cachedInput: 0.5 }, minCacheTokens: 1024 }),
|
|
@@ -86,7 +90,8 @@ var PRICES = {
|
|
|
86
90
|
var MODEL_ALIASES = { "deepseek-v4-flash": "deepseek-flash", "deepseek-v4-flash-vision-exp": "deepseek-flash" };
|
|
87
91
|
var CASCADE_TARGET = {
|
|
88
92
|
"gpt-6-astra": "gpt-6.1-sol",
|
|
89
|
-
"gpt-6.1-sol": "gpt-6-
|
|
93
|
+
"gpt-6.1-sol": "gpt-6.1-terra",
|
|
94
|
+
"gpt-6.1-terra": "gpt-6-luna",
|
|
90
95
|
"gpt-6-sol": "gpt-6-luna",
|
|
91
96
|
"gpt-5.6-sol": "gpt-5.6-terra",
|
|
92
97
|
"gpt-5.6-terra": "gpt-5.6-luna",
|
|
@@ -124,7 +129,7 @@ function normalizeModel(model) {
|
|
|
124
129
|
if (typeof model !== "string" || !model) return null;
|
|
125
130
|
let m = model.toLowerCase().trim();
|
|
126
131
|
m = m.replace(/^(openai|anthropic|google|models|vertex_ai|x-ai|xai|deepseek|bedrock|openrouter)\//, "");
|
|
127
|
-
m = m.replace(/^(us|eu|apac|global)\./, "").replace(/^(anthropic|amazon|meta|mistral)\./, "");
|
|
132
|
+
m = m.replace(/^(us|eu|apac|global)\./, "").replace(/^(anthropic|amazon|meta|mistral|openai)\./, "");
|
|
128
133
|
m = m.replace(/-v\d+(?::\d+)?$/, "");
|
|
129
134
|
if (MODEL_ALIASES[m]) m = MODEL_ALIASES[m];
|
|
130
135
|
m = m.replace(/@\d{8}$/, "");
|
|
@@ -159,6 +164,7 @@ var MODEL_SUNSET = {
|
|
|
159
164
|
"gpt-5-nano": { retires: "2026-12-11", replacement: "gpt-5.6-luna", announced: "2026-06-11" },
|
|
160
165
|
"gpt-5-pro": { retires: "2026-12-11", replacement: "gpt-5.6-sol", announced: "2026-06-11" },
|
|
161
166
|
"gpt-5.1": { retires: "2027-04-01", replacement: "gpt-6-sol", announced: "2026-10-01" },
|
|
167
|
+
"gpt-5.3-codex": { retires: "2027-04-01", replacement: "gpt-6-sol", announced: "2026-10-01" },
|
|
162
168
|
"gpt-5.4-nano": { retires: "2027-04-01", replacement: "gpt-6-luna", announced: "2026-10-01" },
|
|
163
169
|
"o1": { retires: "2026-10-23", replacement: "gpt-5.6-sol", announced: "2026-04-22" },
|
|
164
170
|
"o3": { retires: "2026-12-11", replacement: "gpt-5.6-sol", announced: "2026-06-11" },
|
|
@@ -397,6 +403,121 @@ function resolveScopes(loc, masked, from, depth = 2) {
|
|
|
397
403
|
return out2;
|
|
398
404
|
}
|
|
399
405
|
var AUDIT_AT = new Date(process.env.TOKENZERO_AUDIT_AT || Date.now());
|
|
406
|
+
var CACHE_DIRECTIVE = /cache_control|cacheControl|cachePoint|cache_point|prompt_cache_key|promptCacheKey|cachedContent|cached_content|supports?_?(?:prompt_?)?caching|supports?(?:Prompt)?Caching|enable_?(?:prompt_?)?cach(?:e|ing)|(?:prompt_?)?cache_?enabled|(?:prompt)?[cC]acheEnabled/;
|
|
407
|
+
var MODEL_GATE = /\b(?:if|elif|when|case)\b|&&|\|\||\?/;
|
|
408
|
+
var MODEL_NAME_TEST = /\b(?:model|model_?id|model_?name|modelId|modelName|deployment)\w*\s*(?:\.(?:startswith|startsWith|endswith|endsWith|includes|lower\(\)\.startswith|toLowerCase\(\)\.(?:startsWith|includes))\s*\(\s*\(?\s*["'`](?:claude|anthropic|gpt|gemini|o\d|deepseek|grok|qwen|minimax)|(?:===?|==)\s*["'`](?:claude|anthropic|gpt|gemini|deepseek|grok)[\w.-]*["'`])|["'`](?:claude|anthropic|gemini|gpt)[\w.-]*["'`]\s+in\s+(?:\w+\.)*(?:model|model_?id|model_?name)\b|\/\^?(?:claude|anthropic|gpt|gemini)[^/\n]*\/[a-z]*\.test\(\s*(?:\w+\.)*(?:model|modelId|modelName)/i;
|
|
409
|
+
var VOLATILE_CALL = /\b(?:datetime\.(?:now|utcnow)\(|date\.today\(|time\.time\(|time\.strftime\(|Date\.now\(|new Date\(\s*\)|\.toISOString\(|\.isoformat\(|\.toLocale(?:Date|Time)?String\(|uuid\.?uuid4\(|uuid4\(|randomUUID\(|nanoid\(|Math\.random\(|secrets\.token_hex\()/;
|
|
410
|
+
var INTERPOLATES = /\bf["']|\$\{|\.format\(|%\s*\(|["']\s*\+|\+\s*["']|`/;
|
|
411
|
+
var SYSTEM_CTX = /\bsystem(?:_?prompt|Prompt|_?message|Message|_?instructions?)?\b\s*[:=(]|["']role["']\s*:\s*["']system["']|\brole\s*:\s*["']system["']|\binstructions\s*[:=]/i;
|
|
412
|
+
var RANDOM_ID = /(?:\b(?:tool_call_id|toolCallId|call_id|callId|tool_use_id|toolUseId)\b|["']id["'])\s*[:=]\s*[^,\n]*?(?:uuid\.?uuid4\(|uuid4\(|randomUUID\(|nanoid\(|Math\.random\(|secrets\.token_hex\(|shortuuid)/;
|
|
413
|
+
var SET_TOOLS = /\btools?\s*=\s*\[[^\]\n]*\bfor\s+\w+\s+in\s+(?:set\(|\w*_?set\b|\w+\.keys\(\)\s*\|)/;
|
|
414
|
+
var OPENAI_COMPAT = /\bfrom\s+openai\s+import|\bimport\s+openai\b|from\s+["']openai["']|require\(\s*["']openai["']\s*\)|\bOpenAI\(|openrouter\.ai|chat\.completions\.create|litellm\.completion/;
|
|
415
|
+
var ANTHROPIC_SDK = /\bfrom\s+anthropic\s+import|\bimport\s+anthropic\b|@anthropic-ai\/sdk|\bAnthropic\(|messages\.create\(/;
|
|
416
|
+
var NON_CLAUDE_MODEL = /["'`](?:openai\/|google\/|deepseek\/|x-ai\/|meta-llama\/|mistralai\/|qwen\/)?(?:gpt-[\w.-]+|o[1-9][\w.-]*|gemini-[\w.-]+|deepseek-[\w.-]+|grok-[\w.-]+|llama[\w.-]*|mistral[\w.-]*|qwen[\w.-]*)["'`]/i;
|
|
417
|
+
var USER_ROLE = /["']?role["']?\s*:\s*["']user["']/;
|
|
418
|
+
var USAGE_FIELD = /\b(?:input_tokens|prompt_tokens|promptTokenCount|inputTokens|promptTokens|prompt_token_count)\b/;
|
|
419
|
+
var CACHE_USAGE_FIELD = /cache_read_input_tokens|cache_creation_input_tokens|cacheReadInputTokens|cacheCreationInputTokens|cached_tokens|cachedTokens|cachedContentTokenCount|cached_content_token_count|prompt_tokens_details|promptTokensDetails|cache_read|cacheRead|cache_write|cacheWrite|cacheReadTokens|cacheWriteTokens/;
|
|
420
|
+
var COST_MATH = /\b(?:input_tokens|prompt_tokens|promptTokenCount|inputTokens|promptTokens|prompt_token_count)\b[^;\n]*(?:\*\s*[\w.[\]'"]*(?:price|rate|cost|per_?m|perM|usd)|\/\s*1[_,]?000[_,]?000|\/\s*1e6)|(?:price|rate|cost|per_?m|perM|usd)\w*\s*\*\s*[\w.[\]'"]*\b(?:input_tokens|prompt_tokens|promptTokenCount|inputTokens|promptTokens)\b/i;
|
|
421
|
+
var ZEROED_CACHE_USAGE = /\b(?:cache_creation_input_tokens|cache_read_input_tokens|cacheCreationInputTokens|cacheReadInputTokens|cached_tokens|cachedTokens)["']?\s*[:=]\s*0\b(?!\s*(?:if|\?|\|\||or\b|&&))/;
|
|
422
|
+
var isComment = (raw) => /^\s*(?:#|\/\/|\*|\/\*)/.test(raw);
|
|
423
|
+
function cacheLint(path3, lines, masked) {
|
|
424
|
+
const out2 = [];
|
|
425
|
+
const seen = /* @__PURE__ */ new Set();
|
|
426
|
+
const add = (k, fd) => {
|
|
427
|
+
if (!seen.has(k)) {
|
|
428
|
+
seen.add(k);
|
|
429
|
+
out2.push({ file: path3, ...fd });
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const near = (i, re, before, after) => lines.slice(Math.max(0, i - before), Math.min(lines.length, i + after + 1)).some((l) => !isComment(l) && re.test(l));
|
|
433
|
+
const src = lines.join("\n");
|
|
434
|
+
const hasDirective = CACHE_DIRECTIVE.test(src);
|
|
435
|
+
const nonClaudeViaCompat = OPENAI_COMPAT.test(src) && !ANTHROPIC_SDK.test(src) && NON_CLAUDE_MODEL.test(src);
|
|
436
|
+
const ownerOf = (i) => {
|
|
437
|
+
for (let k = i; k >= Math.max(0, i - 6); k--) {
|
|
438
|
+
const l = lines[k], u = l.search(USER_ROLE), p = l.search(/["']role["']\s*:\s*["'](?:system|developer)["']|\brole\s*:\s*["'](?:system|developer)["']|\bsystem\s*[=:]|\btools?\s*[=:]|["'](?:system|tools)["']\s*:/);
|
|
439
|
+
if (u >= 0 || p >= 0) return u >= 0 && (p < 0 || (k === i ? u < l.search(/cache_control|cacheControl/) && u > p : u > p)) ? "user" : "prefix";
|
|
440
|
+
}
|
|
441
|
+
return null;
|
|
442
|
+
};
|
|
443
|
+
const markers = lines.map((l, i) => !isComment(l) && /cache_control|cacheControl|cachePoint/.test(l) ? i : -1).filter((i) => i >= 0);
|
|
444
|
+
const systemMarked = markers.some((i) => ownerOf(i) === "prefix");
|
|
445
|
+
const USER_MARK = /["']?role["']?\s*:\s*["']user["']|\bcontents\s*[:=]|\bmessages\s*[:=]|\binput\s*[:=]/;
|
|
446
|
+
const inSystemValue = (i) => {
|
|
447
|
+
const raw = lines[i], v = raw.search(VOLATILE_CALL), sp = raw.search(SYSTEM_CTX), up = raw.search(USER_MARK);
|
|
448
|
+
if (sp >= 0 && sp < v) return !(up > sp && up < v);
|
|
449
|
+
if (up >= 0 && up < v) return false;
|
|
450
|
+
for (let k = i - 1; k >= Math.max(0, i - 4); k--) {
|
|
451
|
+
if (isComment(lines[k])) continue;
|
|
452
|
+
const ks = lines[k].search(SYSTEM_CTX), ku = lines[k].search(USER_MARK);
|
|
453
|
+
if (ks >= 0) return !(ku > ks);
|
|
454
|
+
if (ku >= 0) return false;
|
|
455
|
+
}
|
|
456
|
+
return false;
|
|
457
|
+
};
|
|
458
|
+
lines.forEach((raw, i) => {
|
|
459
|
+
if (isComment(raw)) return;
|
|
460
|
+
const code2 = masked[i] ?? "";
|
|
461
|
+
if (hasDirective && MODEL_GATE.test(code2 + raw) && MODEL_NAME_TEST.test(raw) && near(i, CACHE_DIRECTIVE, 3, 10)) add("gating", {
|
|
462
|
+
severity: "medium",
|
|
463
|
+
line: i + 1,
|
|
464
|
+
title: "Prompt caching gated on a hardcoded model-name check",
|
|
465
|
+
detail: 'Caching is turned on only when the model id matches a fixed name or prefix. When a provider renames a model, adds a "-latest" alias or you switch to a new cacheable model, the check stops matching and every call quietly pays the full input rate. This is the most common prompt-caching defect in agent code (31% of 120 studied defects, arXiv:2610.34817).',
|
|
466
|
+
fix: 'Decide caching from the provider (or a capability table that defaults to "on"), not from the model string; or route through TokenZero, which applies the right cache markers for every priced model.',
|
|
467
|
+
est_savings_pct: 10
|
|
468
|
+
});
|
|
469
|
+
if (VOLATILE_CALL.test(raw) && INTERPOLATES.test(raw) && inSystemValue(i) && !RANDOM_ID.test(raw)) add("volatile", {
|
|
470
|
+
severity: "medium",
|
|
471
|
+
line: i + 1,
|
|
472
|
+
title: "Volatile value (time, date or random id) interpolated into the system prompt",
|
|
473
|
+
detail: "A value that changes on every request is written into the system prompt, which sits at the start of the cached prefix. Provider caches match byte-for-byte from the start, so no request ever reuses the previous one and the cache discount is lost on the whole prompt (11% of studied defects, arXiv:2610.34817).",
|
|
474
|
+
fix: "Keep the system prompt static. Put the current time or request id in the last user message (or round it to the day if it must stay in the system prompt).",
|
|
475
|
+
est_savings_pct: 15
|
|
476
|
+
});
|
|
477
|
+
if (RANDOM_ID.test(raw) || SET_TOOLS.test(raw)) add("serialization", {
|
|
478
|
+
severity: "low",
|
|
479
|
+
line: i + 1,
|
|
480
|
+
title: RANDOM_ID.test(raw) ? "Random ids generated for messages or tool calls in the prompt" : "Tool list built from an unordered set",
|
|
481
|
+
detail: RANDOM_ID.test(raw) ? "An id minted with a random generator is written into the conversation. If it is regenerated when the history is rebuilt, the same turn serializes to different bytes and the cached prefix stops matching (nondeterministic serialization, 8% of studied defects, arXiv:2610.34817)." : "Iterating a set gives no stable order, so the same tools can serialize in a different order across processes and break the cached prefix (nondeterministic serialization, 8% of studied defects, arXiv:2610.34817).",
|
|
482
|
+
fix: RANDOM_ID.test(raw) ? "Mint ids once, store them with the message, and reuse the stored value; never regenerate them per request." : "Sort the tools (for example by name) before sending them.",
|
|
483
|
+
est_savings_pct: 5
|
|
484
|
+
});
|
|
485
|
+
if (nonClaudeViaCompat && /cache_control|cacheControl/.test(raw)) add("marker", {
|
|
486
|
+
severity: "medium",
|
|
487
|
+
line: i + 1,
|
|
488
|
+
title: "Anthropic cache_control marker sent through an OpenAI-compatible client to non-Claude models",
|
|
489
|
+
detail: "This file uses an OpenAI-compatible client and names non-Claude models, but attaches Anthropic-style `cache_control` markers. Providers that do not accept the field reject the request or ignore it, so calls fail or run uncached (incompatible marker, 8% of studied defects, arXiv:2610.34817).",
|
|
490
|
+
fix: "Attach `cache_control` only for Claude models; OpenAI, Gemini and DeepSeek cache stable prefixes automatically (use `prompt_cache_key` on OpenAI). TokenZero adds the right marker per provider.",
|
|
491
|
+
est_savings_pct: 0
|
|
492
|
+
});
|
|
493
|
+
if (!systemMarked && /cache_control|cacheControl/.test(raw) && ownerOf(i) === "user" && lines.slice(Math.max(0, i - 4), i + 2).some((l) => INTERPOLATES.test(l) || /\b(?:user_input|query|question|request|input)\b/.test(l))) add("misplaced", {
|
|
494
|
+
severity: "low",
|
|
495
|
+
line: i + 1,
|
|
496
|
+
title: "Cache breakpoint on per-request user content, none on the system prompt or tools",
|
|
497
|
+
detail: "The only `cache_control` marker is on a user message whose text changes per request, while the static system prompt and tools are unmarked. Each call writes a new cache entry (billed at the cache-write surcharge) that the next call cannot read (misplaced marker, 3% of studied defects, arXiv:2610.34817). In multi-turn chats a breakpoint on the latest turn is fine as long as the system prompt or tools also carry one.",
|
|
498
|
+
fix: "Add a breakpoint after the last tool or the system prompt; keep the per-turn one only for long conversations.",
|
|
499
|
+
est_savings_pct: 5
|
|
500
|
+
});
|
|
501
|
+
if (ZEROED_CACHE_USAGE.test(code2)) add("usage", {
|
|
502
|
+
severity: "medium",
|
|
503
|
+
line: i + 1,
|
|
504
|
+
title: "Cached-token usage hardcoded to zero",
|
|
505
|
+
detail: "Cache-read or cache-write token counts are set to 0 instead of read from the response, so cost reports and budgets misstate spend (usage miscount, 19% of studied defects, arXiv:2610.34817).",
|
|
506
|
+
fix: "Read `cache_read_input_tokens` / `cache_creation_input_tokens` (Anthropic), `prompt_tokens_details.cached_tokens` (OpenAI) or `cachedContentTokenCount` (Gemini) from the usage object.",
|
|
507
|
+
est_savings_pct: 0
|
|
508
|
+
});
|
|
509
|
+
});
|
|
510
|
+
const costLine = lines.findIndex((l) => !isComment(l) && COST_MATH.test(l));
|
|
511
|
+
if (costLine >= 0 && !CACHE_USAGE_FIELD.test(src)) add("usage", {
|
|
512
|
+
severity: "medium",
|
|
513
|
+
line: costLine + 1,
|
|
514
|
+
title: "Cost math from token usage ignores cached tokens",
|
|
515
|
+
detail: "Spend is computed from input/prompt token counts with no reference to cached tokens anywhere in this file. Anthropic reports cache reads and writes separately from `input_tokens` (so this undercounts writes and misses the read discount); OpenAI includes cached tokens in `prompt_tokens` (so this overcounts). Either way reported cost is wrong (usage miscount, 19% of studied defects, arXiv:2610.34817).",
|
|
516
|
+
fix: "Price cache reads, cache writes and uncached input separately from the provider usage fields, or read the per-request cost from TokenZero receipts.",
|
|
517
|
+
est_savings_pct: 0
|
|
518
|
+
});
|
|
519
|
+
return out2;
|
|
520
|
+
}
|
|
400
521
|
function analyzeFiles(files, repo = null, manifests2 = []) {
|
|
401
522
|
const findings = [];
|
|
402
523
|
const callSites = [];
|
|
@@ -559,6 +680,9 @@ function analyzeFiles(files, repo = null, manifests2 = []) {
|
|
|
559
680
|
findings.push(...local);
|
|
560
681
|
siteFindings.push(local);
|
|
561
682
|
});
|
|
683
|
+
if (callLines.length || hasCacheControl || USAGE_FIELD.test(src)) {
|
|
684
|
+
for (const fd of cacheLint(f.path, lines, masked)) findings.push({ ...fd, severity: kind === "library" || illustrative ? DOWN[fd.severity] : fd.severity });
|
|
685
|
+
}
|
|
562
686
|
}
|
|
563
687
|
const libTokens = promptLibrary.reduce((a, p) => a + p.tokens, 0);
|
|
564
688
|
if (callSites.length && !repoCaches && libTokens >= 1024 && !findings.some((f) => /static prompt tokens/.test(f.title))) {
|
|
@@ -710,7 +834,7 @@ function canonical(obj) {
|
|
|
710
834
|
}
|
|
711
835
|
|
|
712
836
|
// cli/src/main.ts
|
|
713
|
-
var VERSION = "0.2.
|
|
837
|
+
var VERSION = "0.2.9";
|
|
714
838
|
var BAKED_URL = true ? "https://tokenzero.sh" : "__TOKENZERO_DEFAULT_URL__";
|
|
715
839
|
function parseArgs(argv) {
|
|
716
840
|
const a = { _: [], flags: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenzero/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "TokenZero CLI: connect a project to the TokenZero BYOK gateway, audit LLM token waste locally, check usage and verify signed savings receipts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|