> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stagewise.io/llms.txt
> Use this file to discover all available pages before exploring further.

# BYOK — Import your API subscriptions into stagewise

> Import provider API keys into the stagewise agentic IDE. Use Claude, GPT, Gemini, Kimi, Qwen, DeepSeek, GLM, or MiniMax subscriptions.

Already paying for a model provider? BYOK (Bring Your Own Key) lets you import existing API keys into stagewise. Your subscriptions power stagewise agents directly — you keep full control over billing, rate limits, and data routing.

## Setting up BYOK

<Steps>
  <Step title="Open Models & Providers">
    Go to **Settings → Agent → Models & Providers**.
  </Step>

  <Step title="Select a provider">
    Scroll to the provider you want to configure.
  </Step>

  <Step title="Switch to Official API mode">
    Select the **Official API** endpoint mode. This routes requests directly to the provider's API instead of through your stagewise Account.
  </Step>

  <Step title="Enter your API key">
    Paste your API key and save.

    <Tip>
      Your API key is encrypted before storage and never leaves your machine unencrypted. It is not synchronized with your stagewise account.
    </Tip>
  </Step>
</Steps>

## Where to get API keys

| Provider       | Key source                                                                                                                   |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Anthropic      | [console.anthropic.com](https://console.anthropic.com) → API Keys                                                            |
| OpenAI         | [platform.openai.com](https://platform.openai.com) → API Keys                                                                |
| Google         | [aistudio.google.com](https://aistudio.google.com) → Get API Key                                                             |
| Moonshot AI    | [platform.moonshot.ai](https://platform.moonshot.ai) → Console → API keys                                                    |
| Alibaba (Qwen) | [dashscope.console.aliyun.com](https://dashscope.console.aliyun.com) → API-KEY                                               |
| DeepSeek       | [platform.deepseek.com](https://platform.deepseek.com/api_keys) → API keys                                                   |
| Z.AI           | [z.ai](https://z.ai/manage-apikey/apikey-list) → Manage API keys                                                             |
| MiniMax        | [platform.minimax.io](https://platform.minimax.io/user-center/basic-information/interface-key) → User Center → Interface key |

## Removing a key

1. Go to **Settings → Agent → Models & Providers**
2. Scroll to the provider
3. Click **Clear** to remove the key from your machine
4. Switch back to **stagewise Account** mode or reconfigure BYOK — otherwise model calls for that provider fail

## Mixing modes

Each provider is configured independently. A typical setup:

* **Anthropic** → Official API (your key)
* **OpenAI** → stagewise Account (managed service)
* **Google** → Custom endpoint (local Ollama instance)

The agent uses whichever mode is active for the provider of the currently selected model.

## Using stagewise without an account

Skip authentication entirely by configuring BYOK for every provider you use. No requests go through the stagewise managed service — everything routes directly to provider APIs using your keys.

## Related

* [Models & providers concept →](/core-concepts/models-and-providers)
* [Custom providers →](/reference/custom-providers)
* [Models & providers configuration →](/reference/models-and-providers)
