777 B
777 B
API client and OAuth
Primary paths: src/services/api/, src/services/oauth/, src/utils/api.ts, src/utils/auth.ts
services/api/client.ts and claude.ts implement HTTP and streaming calls to Anthropic APIs (including retries, errors, session ingress, files API, usage, bootstrap). Provider-specific paths (Bedrock, Vertex, Foundry) are gated through auth and endpoint configuration in utils/aws.ts, utils/auth.ts, and related modules.
services/oauth/ implements the browser-based OAuth flow (auth code listener, token exchange, crypto).
See also: Authentication, Amazon Bedrock, Google Vertex AI.