复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-e48dfada2ffe ,按照其中的说明把「gaia-cost」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Show cumulative API spend across all stored GAIA runs and project the cost for a planned configuration before you commit to running it.
/gaia cost
/gaia cost --level=1 --limit=53 --models=claude-sonnet-4-6
/gaia cost --level=1 --limit=300 --models=sonnet,haiku --voting=3
| Flag | Default | Description |
|---|---|---|
--level | 1 | Level for projection |
--limit | 53 | Number of questions for projection |
--models | claude-haiku-4-5 | Comma-separated models for projection |
--voting | 1 | Self-consistency attempts multiplier |
--hardness-routing | off | Include hardness-router model-mix estimate |
| Model | Input ($/M tokens) | Output ($/M tokens) |
|---|---|---|
| claude-haiku-4-5 | $0.25 | $1.25 |
| claude-sonnet-4-6 | $3.00 | $15.00 |
| claude-opus-4-5 | $15.00 | $75.00 |
Estimates assume 1,500 input tokens / turn and 512 output tokens / turn, 4.2 mean turns per question (measured baseline).
Cumulative spend (all stored runs)
------------------------------------
Total runs: 3
Total Q's: 159
Total spend: $0.97
Haiku: $0.09 (53 Q × 1 attempt)
Sonnet: $0.88 (106 Q × 1 attempt)
Projection for: L1, 53 Q, sonnet × 3 voting
----------------------------------------------
Questions: 53
Attempts/Q: 3
Effective Q's: 159
Est. input tok: 238,500
Est. output tok: 81,600
Est. cost: $1.94
Above $5 threshold: NO — proceed without confirmation
When a projected run exceeds $5, the /gaia run command will display this
cost estimate and require explicit confirmation before proceeding.
npx @claude-flow/cli@latest memory list --namespace gaia-runsest_cost_usd across all stored runs to produce cumulative spend.effective_questions = limit × voting