# How to connect your own AI provider keys

Add your own OpenAI, Anthropic, Google, or Mistral API key on the AI Providers page and those models appear in your picker, billed through your provider.

BYOK (bring your own key) means connecting your own provider accounts to GPTree: you add an API key, that provider's models show up in your model picker, and usage on those models is billed through your provider while GPTree stays the workflow and organization layer. It's included on Pro and Team. The Free plan doesn't have it.

1. Open the AI Providers page.
2. Add a provider. Supported: OpenAI, Anthropic, Google AI, Mistral, Azure OpenAI, GitHub Copilot, Microsoft Copilot, plus a generic HTTP option.
3. Paste your API key. Two providers skip the key entirely: GitHub Copilot uses "Connect with GitHub" and Microsoft Copilot uses "Connect with Microsoft", so you authorize instead of pasting anything.
4. Verify it. Once the key checks out, the provider's models appear in the model picker alongside everything else.
5. Set one as your default model if that's where you want new conversations to start.

Your keys are stored encrypted, and the AI Providers page is where you come back later to add another provider or point the default somewhere else.

Why bother, when GPTree already ships with models? Because you may already be paying a provider directly. If your company runs an Azure OpenAI deployment, or you hold provider credits you'd rather use, this is how that spend flows through GPTree instead of sitting next to it. You keep branching, comparing, and merging here; the model bill lands where it already lands.

And since you can switch models mid-conversation, the models a key brings in aren't a separate world. They sit in the same picker, ready whenever you want to swap one in partway through a thread.

One honest note on scope: BYOK covers the providers listed above. The generic HTTP option exists for other endpoints, but if you're unsure whether yours fits, try it on something low-stakes before you move real work over.
