



























@@ -8,22 +8,27 @@ title: "Anthropic"
88Anthropic builds the **Claude** model family. OpenClaw supports two auth routes:
991010- **API key** — direct Anthropic API access with usage-based billing (`anthropic/*` models)
11-- **Claude CLI** — reuse an existing Claude CLI login on the same host
11+- **Claude CLI** — reuse an existing Claude Code login on the same host
12121313<Warning>
14-Anthropic staff told us OpenClaw-style Claude CLI usage is allowed again, so
15-OpenClaw treats Claude CLI reuse and `claude -p` usage as sanctioned unless
16-Anthropic publishes a new policy.
14+OpenClaw's Claude CLI backend runs the installed Claude Code CLI in
15+non-interactive print mode. Anthropic's current Claude Code docs describe
16+`claude -p` as Agent SDK/programmatic usage. Starting June 15, 2026, Anthropic
17+says subscription-plan `claude -p` usage no longer draws from normal Claude
18+plan limits; it draws from a separate monthly Agent SDK credit first, then from
19+usage credits at standard API rates when those credits are enabled.
172018-For long-lived gateway hosts, Anthropic API keys are still the clearest and
19-most predictable production path.
21+Interactive Claude Code still draws from the signed-in Claude plan limits. API
22+key auth remains direct pay-as-you-go API billing. For long-lived gateway hosts,
23+shared automation, and predictable production spend, use an Anthropic API key.
20242125Anthropic's current public docs:
222623-- [Claude Code CLI reference](https://code.claude.com/docs/en/cli-reference)
24-- [Claude Agent SDK overview](https://platform.claude.com/docs/en/agent-sdk/overview)
25-- [Using Claude Code with your Pro or Max plan](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan)
26-- [Using Claude Code with your Team or Enterprise plan](https://support.anthropic.com/en/articles/11845131-using-claude-code-with-your-team-or-enterprise-plan/)
27+- [Claude Code CLI reference](https://code.claude.com/docs/en/cli-usage)
28+- [Use the Claude Agent SDK with your Claude plan](https://support.claude.com/en/articles/15036540-use-the-claude-agent-sdk-with-your-claude-plan)
29+- [Use Claude Code with your Pro or Max plan](https://support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan)
30+- [Use Claude Code with your Team or Enterprise plan](https://support.claude.com/en/articles/11845131-using-claude-code-with-your-team-or-enterprise-plan)
31+- [Manage Claude Code costs](https://code.claude.com/docs/en/costs)
27322833</Warning>
2934@@ -128,8 +133,28 @@ Anthropic's current public docs:
128133compatibility, but new config should keep provider/model selection as
129134`anthropic/*` and put the execution backend in provider/model runtime policy.
130135136+### Billing and `claude -p`
137+138+OpenClaw uses Claude Code's non-interactive `claude -p` path for Claude CLI
139+runs. Anthropic currently treats that path as Agent SDK/programmatic usage:
140+141+- Until June 15, 2026, subscription-plan handling follows Anthropic's active
142+ Claude Code rules for the signed-in account.
143+- Starting June 15, 2026, subscription-plan `claude -p` usage draws from the
144+ user's monthly Agent SDK credit first, then from usage credits at standard
145+ API rates if usage credits are enabled.
146+- Console/API-key logins use pay-as-you-go API billing and do not receive
147+ the subscription Agent SDK credit.
148+149+Anthropic can change Claude Code billing and rate-limit behavior without an
150+OpenClaw release. Check `claude auth status`, `/status`, and
151+Anthropic's linked docs when billing predictability matters.
152+131153<Tip>
132-If you want the clearest billing path, use an Anthropic API key instead. OpenClaw also supports subscription-style options from [OpenAI Codex](/providers/openai), [Qwen Cloud](/providers/qwen), [MiniMax](/providers/minimax), and [Z.AI / GLM](/providers/zai).
154+For shared production automation, use an Anthropic API key instead of
155+Claude CLI. OpenClaw also supports subscription-style options from
156+[OpenAI Codex](/providers/openai), [Qwen Cloud](/providers/qwen),
157+[MiniMax](/providers/minimax), and [Z.AI / GLM](/providers/zai).
133158</Tip>
134159135160 </Tab>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。