PulseAugur
中
实时 03:56:19
English(EN) Claude Code: How to See Token Usage (and Reduce It)

Claude Code 用户现在可以跟踪令牌使用量和成本

Claude Code 为用户提供了工具,用于监控其令牌使用量和相关成本,包括在交互式会话和无头运行中。`/usage` 命令提供每个模型输入、输出和缓存令牌的会话内明细,以及估计的总美元金额。对于程序化使用,`claude -p` 的 `--output-format json` 标志提供了 `total_cost_usd` 字段和每个模型的成本明细。需要注意的是,这些数字是本地估算值,并不反映实际账单,实际账单可在 Claude Console 的“使用情况”页面找到。此外,像 `ccusage` 这样的工具可以在 Mac 上提供每日令牌报告,区分基于会话和整个账户的使用限制。 AI

影响 为用户提供对 AI 模型消耗和相关费用的更大透明度和控制力。

排序理由 该集群描述了用于监控特定产品 Claude Code 使用情况的功能和工具。

在 dev.to — Claude Code tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 2 个来源。 我们如何撰写摘要 →

Claude Code 用户现在可以跟踪令牌使用量和成本

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该集群描述了用于监控特定产品 Claude Code 使用情况的功能和工具。
Source corroboration
2 independent sources
Multiple independent publishers reporting the same story raises confidence that it's real and newsworthy.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
7 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准。

报道来源 [2]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Aoba Works ·

    Claude Code:如何查看令牌使用量(并减少它)

    <p><em>Originally published at <a href="https://en.aobaworks.com/claude-code-how-to-see-token-usage-and-reduce-it/?utm_source=devto&amp;utm_medium=referral" rel="noopener noreferrer">Unattended</a>.</em></p> <p>To see token usage in Claude Code, type <code>/usage</code> in an int…

  2. dev.to — Claude Code tag TIER_1 (CA) · Thomas Lee ·

    Claude Code 在 Mac 上的使用限制:配额与 token 数量

    <p>A Claude Code token counter can show how much activity was recorded on your Mac. It cannot, by itself, tell you how much of your Claude subscription allowance remains or when your limit resets.</p> <p>If you need to decide whether you can finish a coding task before the next r…