LLM Providers
Anthropic Plugin
Claude models integration for ElizaOS
The Anthropic plugin provides access to Claude models for text generation. Note that it does not support embeddings, so you’ll need a fallback plugin.
Features
- Claude 3 models - Access to Claude 3 Opus, Sonnet, and Haiku
- Long context - Up to 200k tokens context window
- XML formatting - Optimized for structured responses
- Safety features - Built-in content moderation
Installation
Configuration
Environment Variables
Character Configuration
Supported Operations
Operation | Support | Notes |
---|---|---|
TEXT_GENERATION | ✅ | All Claude models |
EMBEDDING | ❌ | Use fallback plugin |
OBJECT_GENERATION | ✅ | Via XML formatting |
Important: Embedding Fallback
Since Anthropic doesn’t provide embedding models, always include a fallback:
Model Configuration
The plugin uses two model categories:
- SMALL_MODEL: For faster, cost-effective responses
- LARGE_MODEL: For complex reasoning and best quality
You can use any available Claude model, including:
- Claude 3.5 Sonnet (latest and dated versions)
- Claude 3 Opus, Sonnet, and Haiku
- Claude 3.5 Haiku
- Any new models Anthropic releases
Usage Tips
- XML Templates - Claude excels at XML-formatted responses
- System Prompts - Effective for character personality
- Context Management - Leverage the 200k token window