Bring Your Own Key (BYOK)
BYOK lets CFactory call providers with keys you control, instead of (or in addition to) CFactory Gateway.
When to use BYOK
- You already have Anthropic, OpenAI, or other provider keys
- You want traffic to stay on your provider accounts
- You are evaluating CFactory offline from Gateway billing
How to configure
- Open CFactory settings in the editor, or edit
cfactory.jsonfor the CLI. - Add the provider and API key for the models you need.
- Select that provider/model in the model picker.
For Gateway-based models and a unified API, see Models & Providers.
Security
- Prefer environment variables or the editor secret store over committing keys.
- Never commit API keys to git.