Configuration
Configuration examples for~/.factory/config.json
:
Getting API Keys
Anthropic
- Sign up at console.anthropic.com
- Navigate to API Keys section
- Create a new API key
- Copy and use in your configuration
OpenAI
- Sign up at platform.openai.com
- Go to API Keys section
- Create a new secret key
- Copy and use in your configuration
Notes
- These configurations use the official APIs with full prompt caching support
- Factory automatically handles prompt caching when available
- Use
/cost
command in CLI to view cost breakdowns and cache hit rates