Anthropic
Use Anthropic’s Claude models with RadarOS through the unifiedModelProvider interface. Claude excels at long-context tasks, analysis, and nuanced reasoning.
Setup
- Install
- Environment
Install the Anthropic SDK (required by RadarOS for Anthropic support):
Factory
The Anthropic model identifier.
Optional configuration. See Config below.
Supported Models
| Model ID | Description |
|---|---|
claude-sonnet-4-20250514 | Claude Sonnet 4. Strong balance of speed and capability. |
claude-3-5-haiku-20241022 | Claude 3.5 Haiku. Fast, cost-effective. |
Using a different Claude model
Using a different Claude model
Pass any valid Anthropic model ID to the factory. Check the Anthropic docs for the latest model IDs.
Config
Anthropic API key. If omitted, uses
ANTHROPIC_API_KEY environment variable.Example
Multi-Modal Support
Anthropic Claude supports images and files/documents as input. Audio is not supported.Images
Pass images as base64 or URL inContentPart[]:
Files & Documents
PDF and other documents can be sent via URL or base64. Anthropic processes them natively as document blocks:Unsupported: Audio
Audio input is not supported by Anthropic. If passed, the provider logs a warning and substitutes a placeholder text block.Reasoning / Extended Thinking
Claude supports extended thinking — the model “thinks” step-by-step before responding. Enable it via thereasoning config on your agent:
Prompt Caching
Anthropic automatically caches prompt prefixes for repeated conversations. This reduces cost and latency when the system prompt or conversation history is reused across requests. No configuration is needed — the SDK handles this transparently. Benefits are most significant when:- System prompts are long (e.g., detailed instructions, few-shot examples)
- Conversations span many turns (the prefix is cached across requests in the same session)
- Multiple users share the same agent instructions