Skip to content

Commit 13cb9f8

Browse files
committed
docs: update Anthropic Claude CLI billing guidance
1 parent 8eb5ff0 commit 13cb9f8

3 files changed

Lines changed: 58 additions & 20 deletions

File tree

docs/help/faq-models.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,11 @@ Related: [/concepts/oauth](/concepts/oauth) (OAuth flows, token storage, multi-a
536536
<Accordion title="OAuth vs API key - what is the difference?">
537537
OpenClaw supports both:
538538

539-
- **OAuth** often leverages subscription access (where applicable).
539+
- **OAuth / CLI login** often leverages subscription access where the
540+
provider supports it. For Anthropic, OpenClaw's Claude CLI backend uses
541+
Claude Code `claude -p`; Anthropic currently treats that as Agent
542+
SDK/programmatic usage, with a separate monthly Agent SDK credit starting
543+
June 15, 2026.
540544
- **API keys** use pay-per-token billing.
541545

542546
The wizard explicitly supports Anthropic Claude CLI, OpenAI Codex OAuth, and API keys.

docs/providers/anthropic.md

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,27 @@ title: "Anthropic"
88
Anthropic builds the **Claude** model family. OpenClaw supports two auth routes:
99

1010
- **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
1212

1313
<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.
1720

18-
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.
2024

2125
Anthropic's current public docs:
2226

23-
- [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)
2732

2833
</Warning>
2934

@@ -128,8 +133,28 @@ Anthropic's current public docs:
128133
compatibility, but new config should keep provider/model selection as
129134
`anthropic/*` and put the execution backend in provider/model runtime policy.
130135

136+
### 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>
134159

135160
</Tab>

docs/providers/claude-max-api-proxy.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,31 @@ title: "Claude Max API proxy"
1212
<Warning>
1313
This path is technical compatibility only. Anthropic has blocked some subscription
1414
usage outside Claude Code in the past. You must decide for yourself whether to use
15-
it and verify Anthropic's current terms before relying on it.
15+
it and verify Anthropic's current billing rules before relying on it.
16+
17+
Anthropic's current support docs say `claude -p` is Agent SDK/programmatic usage.
18+
Starting June 15, 2026, subscription-plan `claude -p` usage draws from a separate
19+
monthly Agent SDK credit first, then from usage credits at standard API rates if
20+
usage credits are enabled.
1621
</Warning>
1722

1823
## Why use this?
1924

20-
| Approach | Cost | Best For |
21-
| ----------------------- | --------------------------------------------------- | ------------------------------------------ |
22-
| Anthropic API | Pay per token (~$15/M input, $75/M output for Opus) | Production apps, high volume |
23-
| Claude Max subscription | $200/month flat | Personal use, development, unlimited usage |
25+
| Approach | Cost route | Best for |
26+
| ------------------------- | ----------------------------------------------- | ------------------------------------------ |
27+
| Anthropic API | Pay per token through Claude Console or cloud | Production apps, shared automation, volume |
28+
| Claude subscription proxy | Claude Code / `claude -p` plan and credit rules | Personal experiments with compatible tools |
2429

25-
If you have a Claude Max subscription and want to use it with OpenAI-compatible tools, this proxy may reduce cost for some workflows. API keys remain the clearer policy path for production use.
30+
If you have a Claude Max or Pro subscription and want to use it with
31+
OpenAI-compatible tools, this proxy may fit some personal workflows. It is not an
32+
unlimited flat-rate path. API keys remain the clearer policy and billing path for
33+
production use.
2634

2735
## How it works
2836

2937
```
30-
Your App → claude-max-api-proxy → Claude Code CLI → Anthropic (via subscription)
31-
(OpenAI format) (converts format) (uses your login)
38+
Your App → claude-max-api-proxy → Claude Code CLI / claude -p → Anthropic
39+
(OpenAI format) (converts format) (uses your login)
3240
```
3341

3442
The proxy:
@@ -157,6 +165,7 @@ The proxy:
157165

158166
- This is a **community tool**, not officially supported by Anthropic or OpenClaw
159167
- Requires an active Claude Max/Pro subscription with Claude Code CLI authenticated
168+
- Inherits Claude Code `claude -p` billing, usage-credit, and rate-limit behavior
160169
- The proxy runs locally and does not send data to any third-party servers
161170
- Streaming responses are fully supported
162171

0 commit comments

Comments
 (0)