Anthropic-compatible provider
This specification defines the target behavior owned by the planned
plugins/anthropic-compatible package.
It covers:
- the
anthropicprovider identity and API-key baseline; - ordinary and streaming Anthropic Messages requests;
- official capability-based model discovery;
- configurable Anthropic-compatible endpoints;
- provider-native message, content-block, and history contracts;
- separate tools, reasoning, usage, and prompt-caching extensions;
- cancellation, safe generic request errors, redaction, and compatibility degradation;
- deterministic, local Ollama, and hosted Anthropic verification.
The baseline does not include OAuth acquisition, server web tools, fast mode, native compaction, the Files API, PDFs, token counting, advanced server tools, image attachments, model-price cost estimation, a portable structured provider request-error contract, batch processing, or structured outputs. OAuth and selected provider features are tracked by separate tasks and must refine this package specification before implementation.
Specification documents:
- Product specification
- Technical specification
- Messages protocol
- Compatible endpoint capabilities
- Security and errors
- Verification
- Requirements and evidence
Decision records:
- Package identity and extension boundaries
- Compatibility and capability discovery
- Anthropic SDK transport
Related portable contract:
Active delivery work:
tasks/20260824-direct-claude-provider-and-plugin-login/010-direct-claude-provider-runtime.mdtasks/20260824-direct-claude-provider-and-plugin-login/017-anthropic-image-attachments.mdtasks/20260824-direct-claude-provider-and-plugin-login/018-provider-cost-estimation-and-pricing-catalog.mdtasks/20260824-direct-claude-provider-and-plugin-login/019-portable-provider-request-errors.md