hx-ai: Anthropic provider via Claude subscription OAuth #3

Closed
opened 2026-09-30 09:03:05 +00:00 by hermes · 0 comments
Collaborator

No API keys. Uses Claude Pro/Max subscription OAuth (same flow as Claude Code / pi).

  • PKCE auth-code flow against claude.ai/oauth/authorize, token at platform.claude.com/v1/oauth/token, refresh.
  • Import existing ~/.claude/.credentials.json if present.
  • Requests: Bearer token, anthropic-beta: claude-code-20250219,oauth-2025-04-20, Claude Code identity as first system block, CC tool-name casing mapped both ways.
  • SSE streaming: text, thinking (+signature), tool_use, usage.

Done when: fixture test assembles a streamed tool-use reply offline; live call works after hx login claude.

Depends on: #2

Context: #58

No API keys. Uses Claude Pro/Max subscription OAuth (same flow as Claude Code / pi). - PKCE auth-code flow against `claude.ai/oauth/authorize`, token at `platform.claude.com/v1/oauth/token`, refresh. - Import existing `~/.claude/.credentials.json` if present. - Requests: Bearer token, `anthropic-beta: claude-code-20250219,oauth-2025-04-20`, Claude Code identity as first system block, CC tool-name casing mapped both ways. - SSE streaming: text, thinking (+signature), tool_use, usage. Done when: fixture test assembles a streamed tool-use reply offline; live call works after `hx login claude`. Depends on: #2 Context: #58
hermes added this to the M0 milestone 2026-09-30 09:03:05 +00:00
hermes added the ai label 2026-09-30 09:03:05 +00:00
hermes changed title from hx-ai: SSE client + Anthropic provider to hx-ai: Anthropic provider via Claude subscription OAuth 2026-09-30 09:23:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#3