惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
腾讯CDC
Jina AI
Jina AI
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
小众软件
小众软件
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
月光博客
月光博客
L
LangChain Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
C
Check Point Blog
U
Unit 42
人人都是产品经理
人人都是产品经理

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: audit and fix 5 pages (typography hygiene + dup H1)...
vincentkoc · 2026-05-06 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -64,7 +64,7 @@ Authoritative advertised **discovery** inventory lives in

6464

## Current pipeline

6565
6666

- `pnpm protocol:gen`

67-

- writes JSON Schema (draft07) to `dist/protocol.schema.json`

67+

- writes JSON Schema (draft-07) to `dist/protocol.schema.json`

6868

- `pnpm protocol:gen:swift`

6969

- generates Swift gateway models

7070

- `pnpm protocol:check`

Original file line numberDiff line numberDiff line change

@@ -20,12 +20,12 @@ title: "Usage tracking"

2020
2121

## Where it shows up

2222
23-

- `/status` in chats: emojirich status card with session tokens + estimated cost (API key only). Provider usage shows for the **current model provider** when available as a normalized `X% left` window.

23+

- `/status` in chats: emoji-rich status card with session tokens + estimated cost (API key only). Provider usage shows for the **current model provider** when available as a normalized `X% left` window.

2424

- `/usage off|tokens|full` in chats: per-response usage footer (OAuth shows tokens only).

2525

- `/usage cost` in chats: local cost summary aggregated from OpenClaw session logs.

2626

- CLI: `openclaw status --usage` prints a full per-provider breakdown.

2727

- CLI: `openclaw channels list` prints the same usage snapshot alongside provider config (use `--no-usage` to skip).

28-

- macOS menu bar: Usage section under Context (only if available).

28+

- macOS menu bar: "Usage" section under Context (only if available).

2929
3030

## Providers + credentials

3131
Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ title: "Hetzner"

1414
1515

Run a persistent OpenClaw Gateway on a Hetzner VPS using Docker, with durable state, baked-in binaries, and safe restart behavior.

1616
17-

If you want OpenClaw 24/7 for ~$5, this is the simplest reliable setup.

17+

If you want "OpenClaw 24/7 for ~$5", this is the simplest reliable setup.

1818

Hetzner pricing changes; pick the smallest Debian/Ubuntu VPS and scale up if you hit OOMs.

1919
2020

Security model reminder:

Original file line numberDiff line numberDiff line change

@@ -8,7 +8,7 @@ title: "Tests"

88

- Full testing kit (suites, live, Docker): [Testing](/help/testing)

99

- Update and plugin package validation: [Testing updates and plugins](/help/testing-updates-plugins)

1010
11-

- `pnpm test:force`: Kills any lingering gateway process holding the default control port, then runs the full Vitest suite with an isolated gateway port so server tests dont collide with a running instance. Use this when a prior gateway run left port 18789 occupied.

11+

- `pnpm test:force`: Kills any lingering gateway process holding the default control port, then runs the full Vitest suite with an isolated gateway port so server tests don't collide with a running instance. Use this when a prior gateway run left port 18789 occupied.

1212

- `pnpm test:coverage`: Runs the unit suite with V8 coverage (via `vitest.unit.config.ts`). This is a default-unit-lane coverage gate, not whole-repo all-file coverage. Thresholds are 70% lines/functions/statements and 55% branches. Because `coverage.all` is false and the default lane scopes coverage includes to non-fast unit tests with sibling source files, the gate measures source owned by this lane instead of every transitive import it happens to load.

1313

- `pnpm test:coverage:changed`: Runs unit coverage only for files changed since `origin/main`.

1414

- `pnpm test:changed`: cheap smart changed test run. It runs precise targets from direct test edits, sibling `*.test.ts` files, explicit source mappings, and the local import graph. Broad/config/package changes are skipped unless they map to precise tests.

@@ -72,7 +72,7 @@ Usage:

7272
7373

- `source ~/.profile && pnpm tsx scripts/bench-model.ts --runs 10`

7474

- Optional env: `MINIMAX_API_KEY`, `MINIMAX_BASE_URL`, `MINIMAX_MODEL`, `ANTHROPIC_API_KEY`

75-

- Default prompt: Reply with a single word: ok. No punctuation or extra text.

75+

- Default prompt: "Reply with a single word: ok. No punctuation or extra text."

7676
7777

Last run (2025-12-31, 20 runs):

7878
Original file line numberDiff line numberDiff line change

@@ -6,8 +6,6 @@ read_when:

66

title: "Token use and costs"

77

---

88
9-

# Token use & costs

10-
119

OpenClaw tracks **tokens**, not characters. Tokens are model-specific, but most

1210

OpenAI-style models average ~4 characters per token for English text.

1311

@@ -63,7 +61,7 @@ For a practical breakdown (per injected file, tools, skills, and system prompt s

6361
6462

Use these in chat:

6563
66-

- `/status`**emojirich status card** with the session model, context usage,

64+

- `/status`**emoji-rich status card** with the session model, context usage,

6765

last response input/output tokens, and **estimated cost** (API key only).

6866

- `/usage off|tokens|full` → appends a **per-response usage footer** to every reply.

6967

- Persists per session (stored as `responseUsage`).

@@ -149,7 +147,7 @@ per agent with `agents.list[].params.cacheRetention`.

149147

For a full knob-by-knob guide, see [Prompt Caching](/reference/prompt-caching).

150148
151149

For Anthropic API pricing, cache reads are significantly cheaper than input

152-

tokens, while cache writes are billed at a higher multiplier. See Anthropics

150+

tokens, while cache writes are billed at a higher multiplier. See Anthropic's

153151

prompt caching pricing for the latest rates and TTL multipliers:

154152

[https://docs.anthropic.com/docs/build-with-claude/prompt-caching](https://docs.anthropic.com/docs/build-with-claude/prompt-caching)

155153