claudecode/crates
Yeachan-Heo 7d70fd9978 feat(api): match Claude auth headers and layofflabs request format
Trace the local Claude Code TS request path and align the Rust client with its
non-OAuth direct-request behavior. The Rust client now resolves the message base
URL from ANTHROPIC_BASE_URL, uses ANTHROPIC_API_KEY for x-api-key, and sends
ANTHROPIC_AUTH_TOKEN as a Bearer Authorization header when present.

Constraint: Must match the local Claude Code source request/auth split, not inferred behavior
Rejected: Treat ANTHROPIC_AUTH_TOKEN as the x-api-key source | diverges from local TS client path
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep direct /v1/messages auth handling aligned with src/services/api/client.ts and src/utils/auth.ts when changing env precedence
Tested: cargo test -p api; cargo run -p rusty-claude-cli -- prompt "say hello"
Not-tested: Non-default proxy transport features beyond ANTHROPIC_BASE_URL override
2026-03-31 19:00:48 +00:00
..
api feat(api): match Claude auth headers and layofflabs request format 2026-03-31 19:00:48 +00:00
commands feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
compat-harness feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
runtime feat: make rusty-claude-cli usable end-to-end 2026-03-31 18:40:09 +00:00
rusty-claude-cli feat: make rusty-claude-cli usable end-to-end 2026-03-31 18:40:09 +00:00
tools feat: make rusty-claude-cli usable end-to-end 2026-03-31 18:40:09 +00:00