Skip to content

Commit fe74f3f

Browse files
committed
docs update
1 parent cc58d82 commit fe74f3f

3 files changed

Lines changed: 15 additions & 31 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ The harness uses the [Claude Agent SDK](https://pypi.org/project/claude-agent-sd
6868

6969
You can also set `base_url` in your config to point at a custom Anthropic-compatible endpoint.
7070

71+
If no API key is set, the SDK will use your Claude Code subscription credentials from `~/.claude/credentials.json` (requires Claude Pro/Max). Usage is covered by your subscription with rate limits rather than per-token billing.
72+
73+
> **Cost reporting caveat:** Cost figures in `run_meta.json` and the web UI come from the SDK and are based on Anthropic's list pricing regardless of provider. They may not match your actual bill (especially on OpenRouter, Bedrock, or Vertex) and are purely informational when using a Claude Code subscription.
74+
7175
Example configs:
7276

7377
```yaml

docs/guide/configuration.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ sessions:
9090
| Anthropic | `anthropic` | `ANTHROPIC_API_KEY` | Direct Anthropic API |
9191
| AWS Bedrock | `bedrock` | AWS credentials | Sets `CLAUDE_CODE_USE_BEDROCK=1` |
9292
| GCP Vertex AI | `vertex` | GCP credentials | Sets `CLAUDE_CODE_USE_VERTEX=1` |
93+
| Claude Code subscription | `anthropic` | *(none needed)* | If no `ANTHROPIC_API_KEY` is set, the SDK uses your Claude Code subscription credentials from `~/.claude/credentials.json`. Usage is covered by your subscription (Pro/Max) with rate limits rather than per-token billing. |
94+
95+
### Cost reporting
96+
97+
Cost figures shown in `run_meta.json`, `harness inspect`, and the web UI come from the Claude Agent SDK's `total_cost_usd` field, which is calculated using Anthropic's list pricing regardless of which provider you use. This means:
98+
99+
- **OpenRouter** — reported cost reflects Anthropic list prices, not your actual OpenRouter bill (which may differ)
100+
- **Bedrock / Vertex** — reported cost may not match AWS or GCP billing
101+
- **Claude Code subscription** — cost is reported but you're not actually billed per-token
102+
103+
Treat cost figures as rough estimates, not authoritative billing data.
93104

94105
## Automatic behaviors
95106

docs/guide/roadmap.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)