Skip to main content
Use your own API keys for cost control and billing transparency with official OpenAI and Anthropic models.

Configuration

Add to ~/.factory/settings.json:

Getting API Keys

Anthropic

  1. Sign up at console.anthropic.com
  2. Navigate to API Keys section
  3. Create a new API key
  4. Copy and use in your configuration

OpenAI

  1. Sign up at platform.openai.com
  2. Go to API Keys section
  3. Create a new secret key
  4. 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