Skip to content

Epic: Providers and model catalog #151

Open
0 of 6 issues completed
Open

Description

@hakula139

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-messages and openai-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

Sub-issues

0 of 6 Issues completed
Loading 6 sub-issues

Metadata

Metadata

Assignees

Labels

area: clientenhancementepic

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions