Repository navigation
Description
Goal
oxide-code currently speaks only the Anthropic Messages API. Its endpoints, timeouts, identity, and model table are compiled in. Support Anthropic and OpenAI-compatible providers through one abstraction, with everything except the wire format represented as data:
- Wire (code) encodes requests, decodes streams into provider-neutral events, and classifies errors. Ship two:
anthropic-messagesandopenai-responses. - Provider (data) holds the URL for each wire, along with auth, headers, CA bundle, timeouts, retries, identity, and quirks.
- Model (data) is a catalog entry with limits, efforts, pricing, its wire, and an ID for each provider.
- Profile (data) names a provider and a model for each workload tier: flagship, standard, and mini.
Without a config file, built-in providers use ANTHROPIC_API_KEY / ANTHROPIC_BASE_URL or Claude Code OAuth credentials, and the built-in catalog applies. This keeps ox working out of the box.
Acceptance criteria
- Close every sub-issue.
- A session can switch between an Anthropic model and an OpenAI Responses model with
/model, and tool use and reasoning work with both.
Notes
This builds on the wire-neutral client (#146). Providers, profiles, and models each live in their own config directory (#283), and the active profile is persisted state that ox profile use and /profile switch (#155). Environment-based auth for gateways and long-lived tokens is tracked in #121 and #122. The provider config here generalizes those variables, which remain available as zero-config shortcuts.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
docs: track planned work in GitHub issues (#188)