# Bring your own key

Run your agents on your own OpenAI or Gemini key instead of the built-in Foldspace key.

**Path:** Settings → AI Gateway → AI Provider Keys

AI Provider Keys are the LLM provider credentials your agents and task agents run on: your own OpenAI or Gemini key, or the built-in Foldspace key. Foldspace uses them to call the model on your behalf.

A built-in Foldspace key ships by default, so everything works out of the box, and you can add your own key from a supported provider when you would rather own the billing and the rate limits.

Every request records which key served it, so spend and failures stay attributable once your own keys are in play.

## Related

- [AI Provider Keys](/user-guides/settings/ai-api-keys/): add, verify, and manage the keys.
- [Token Quotas](/user-guides/quotas/): cap what agents and users consume.
- [High Availability](/user-guides/high-availability/): failover across keys and providers.
