@fancyrobot/fred-anthropic
v4.0.0
Published
Anthropic provider for Fred AI framework
Maintainers
Readme
@fancyrobot/fred-anthropic
Anthropic provider for Fred AI framework.
See the Phase 68 migration matrix for the compatible core and Effect AI lines.
Installation
bun add @fancyrobot/[email protected] \
@fancyrobot/[email protected] effect@^3.21.5 \
@effect/ai@^0.35.0 @effect/ai-anthropic@^0.25.0Setup
Set your API key:
export ANTHROPIC_API_KEY=your-api-keyUsage
Auto-Registration
Import the package to auto-register the provider:
import '@fancyrobot/fred-anthropic';This is the recommended approach -- the provider registers itself when imported.
Programmatic
import { createFred } from '@fancyrobot/fred';
import '@fancyrobot/fred-anthropic';
const fred = await createFred();
await fred.providers.use('anthropic');Config File (YAML)
providers:
- id: anthropic
type: anthropicAgent File (.md)
---
id: my-agent
platform: anthropic
model: claude-sonnet-4-20250514
---
You are a helpful assistant.Supported Models
See Anthropic documentation for available models.
Related
- Fred core -- main framework documentation
- All packages -- monorepo overview
License
MIT
