### OpenAI Compatible
@@ -36,4 +38,22 @@ Roo Code allows you to configure providers via the UI.
* If you encounter issues with the **OpenAI** provider type, use **OpenAI Compatible** to ensure correct endpoint routing.
* Ensure your Coder deployment URL is reachable from your VS Code environment.
+## BYOK (Personal API Key)
+
+
+
+### OpenAI Compatible
+
+1. Open Roo Code in VS Code.
+1. Go to **Settings**.
+1. **Provider**: Select **OpenAI Compatible**.
+1. **Base URL**: Enter `https://coder.example.com/api/v2/aibridge/openai/v1`.
+1. **API Key**: Enter your personal OpenAI API key.
+1. **Model ID**: Enter the model you wish to use (e.g., `gpt-4o`).
+1. **Custom Headers**: Add `X-Coder-AI-Governance-Token` with your **[Coder Session Token](../../../admin/users/sessions-tokens.md#generate-a-long-lived-api-token-on-behalf-of-yourself)**.
+
+
+
+
+
**References:** [Roo Code Configuration Profiles](https://docs.roocode.com/features/api-configuration-profiles#creating-and-managing-profiles)
diff --git a/docs/ai-coder/ai-gateway/clients/vscode.md b/docs/ai-coder/ai-gateway/clients/vscode.md
index 6c100f0c1c..a04c670343 100644
--- a/docs/ai-coder/ai-gateway/clients/vscode.md
+++ b/docs/ai-coder/ai-gateway/clients/vscode.md
@@ -2,7 +2,7 @@
VS Code's native chat can be configured to use AI Gateway with the GitHub Copilot Chat extension's custom language model support.
-## Configuration
+## Centralized API Key
> [!IMPORTANT]
> You need the **Pre-release** version of the [GitHub Copilot Chat extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) and [VS Code Insiders](https://code.visualstudio.com/insiders/).
@@ -47,4 +47,9 @@ _Replace `coder.example.com` with your Coder deployment URL._
> [!NOTE]
> The setting names may change as the feature moves from pre-release to stable. Refer to the official documentation for the latest setting keys.
+## BYOK (Personal API Key)
+
+> [!NOTE]
+> At the time of writing, GitHub Copilot Chat does not support sending custom headers, so BYOK mode is not available.
+
**References:** [GitHub Copilot - Bring your own language model](https://code.visualstudio.com/docs/copilot/customization/language-models#_add-an-openaicompatible-model)
diff --git a/docs/ai-coder/ai-gateway/clients/zed.md b/docs/ai-coder/ai-gateway/clients/zed.md
index 944b9f244a..e3744ef6df 100644
--- a/docs/ai-coder/ai-gateway/clients/zed.md
+++ b/docs/ai-coder/ai-gateway/clients/zed.md
@@ -2,7 +2,7 @@
Zed IDE supports AI Gateway via its `language_models` configuration in `settings.json`.
-## Configuration
+## Centralized API Key
To configure Zed to use AI Gateway, you need to edit your `settings.json` file. You can access this by pressing `Cmd/Ctrl + ,` or opening the command palette and searching for "Open Settings".
@@ -60,4 +60,9 @@ You can set this in two ways:
+## BYOK (Personal API Key)
+
+> [!NOTE]
+> At the time of writing, Zed Agent does not support sending custom headers, so BYOK mode is not available.
+
**References:** [Configuring Zed - Language Models](https://zed.dev/docs/reference/all-settings#language-models)
diff --git a/docs/images/aibridge/clients/cline-byok-openai.png b/docs/images/aibridge/clients/cline-byok-openai.png
new file mode 100644
index 0000000000..9f65ae2c1f
Binary files /dev/null and b/docs/images/aibridge/clients/cline-byok-openai.png differ
diff --git a/docs/images/aibridge/clients/roo-code-byok-openai.png b/docs/images/aibridge/clients/roo-code-byok-openai.png
new file mode 100644
index 0000000000..b4d2d3f0c2
Binary files /dev/null and b/docs/images/aibridge/clients/roo-code-byok-openai.png differ