Bring Your Own Key (BYOK)

BYOK lets signed-in CFactory users add provider API keys so certain models call your provider accounts instead of CFactory billing.

Sign in first — there is no BYOK flow without a CFactory account.

When to use BYOK

  • You already have Anthropic, OpenAI, or other provider keys
  • You want specific model traffic on your provider accounts
  • You want features like free-tier Codestral autocomplete through your own Mistral key

How to configure

  1. Sign in to CFactory.
  2. Open factory.cfly.ai/byok, or add keys in CFactory IDE settings.
  3. Add the provider and API key for the models you need.
  4. Select that provider/model in the model picker.

For account models and org policies, see Authentication and Model selection.

Security

  • Prefer environment variables or the editor secret store over committing keys.
  • Never commit API keys to git.

Next