openclaw/docs
ly-wang19 75af913ba6
feat(gateway-cli): scope usage-cost by agent (#94483)
* feat(gateway-cli): scope usage-cost by agent

The `gateway usage-cost` CLI only sent `{ days }` to the `usage.cost` RPC, so
callers could not break cost down per agent or aggregate across all agents the
way the Control UI can. Add `--agent <id>` (forwards `agentId`, scoping to one
agent) and `--all-agents` (forwards `agentScope: "all"`, aggregating every
agent). The two are mutually exclusive because the gateway honors `agentScope`
only when no `agentId` is set; passing both now errors instead of silently
dropping `--all-agents`. No flag keeps the existing default-agent behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(gateway-cli): scope usage-cost by agent

---------

Co-authored-by: ly-wang19 <ly-wang19@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
2026-06-23 06:05:33 +08:00
..
.generated chore(plugin-sdk): refresh API baseline hash 2026-06-22 21:49:53 +02:00
.i18n feat(channels): add Zalo ClawBot external channel entry and documenta… (#89586) 2026-06-19 13:42:38 +01:00
announcements
assets docs: refresh ClawHub showcase cards (#88734) 2026-06-01 13:08:56 -07:00
automation fix(cron): expose per-job fallbacks in CLI (#93369) 2026-06-22 19:22:20 +00:00
channels Revert "feat(discord): add server management helper actions" 2026-06-22 10:20:19 -06:00
clawhub docs: add ClawHub CLI page (#89297) 2026-06-02 04:13:50 +00:00
cli feat(gateway-cli): scope usage-cost by agent (#94483) 2026-06-23 06:05:33 +08:00
concepts feat(plugins): externalize additional official plugins (#95683) 2026-06-22 16:12:51 +08:00
debug
diagnostics
gateway fix(daemon): keep systemd gateway running after child OOM (#93585) 2026-06-22 18:54:21 +00:00
help feat: forward-port fast talks auto mode (#85104) 2026-06-22 09:37:09 +08:00
images
install feat(docker): support offline setup reruns (#89062) 2026-06-17 13:50:46 +02:00
nodes fix(deadcode): move voicewake settings to sqlite 2026-06-21 20:45:17 +08:00
plan
platforms fix(daemon): keep systemd gateway running after child OOM (#93585) 2026-06-22 18:54:21 +00:00
plugins refactor(providers): share reasoning payload normalization 2026-06-22 19:08:00 +08:00
providers fix(xai): request encrypted reasoning include for all reasoning models (#95686) 2026-06-22 11:50:50 -06:00
refactor fix(sqlite): migrate legacy memory and proxy state 2026-06-19 01:20:06 +08:00
reference fix(webchat): sessions persist after reconnects (#89017) 2026-06-22 20:02:58 +00:00
security
snippets/plugin-publish
specs docs: fix docs metadata spellcheck (#93502) 2026-06-22 17:17:35 +00:00
start fix(auto-reply): skip commented heartbeat scaffolding 2026-06-04 17:03:40 -07:00
tools feat(cli): add --message-file to openclaw agent 2026-06-22 20:13:57 +08:00
web fix(control-ui): make Control UI bootstrap config endpoint base-path-relative (#66946) (#91305) 2026-06-11 08:49:09 +09:00
agent-runtime-architecture.md
AGENTS.md
auth-credential-semantics.md
brave-search.md
ci.md fix(ci): debounce canonical main runner admission (#95681) 2026-06-22 16:55:56 +08:00
CLAUDE.md
date-time.md fix(agents): honor disabled envelope timestamps at model boundary (#93238) 2026-06-16 12:13:24 +08:00
docs.json feat(raft): add wake bridge channel 2026-06-22 14:36:12 +08:00
index.md
logging.md fix(agents): restore model-fetch info logs (#89648) 2026-06-22 17:02:16 +00:00
maturity-scores.yaml docs: clarify external app integration path 2026-06-09 14:56:17 +09:00
nav-tabs-underline.js docs: document repo support scripts 2026-06-04 08:01:15 -04:00
network.md
openclaw-agent-runtime.md
perplexity.md
prose.md
style.css
tts.md
vps.md
whatsapp-openclaw.jpg