You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai-coder/ai-bridge.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,100 @@ Bridge is compatible with _[Google Vertex AI](https://cloud.google.com/vertex-ai
81
81
>[!NOTE]
82
82
>See[Supported APIs](#supported-apis) section below for a comprehensive list.
83
83
84
+
##Client Configuration
85
+
86
+
Once Bridge is enabled and configured on the server side, you need to configure your AI clients (IDEs, agents, CLI tools) to route their requests through Bridge instead of directly to OpenAI or Anthropic.
87
+
88
+
###Setting Base URLs
89
+
90
+
Configure your AI client to point to your Coder deployment's Bridge endpoints:
For the best user experience, you can pre-configure AI Bridge settings in your Coder templates so that users don't need to manually set environment variables. This is especially useful for:
137
+
138
+
-**IDE workspaces** (VS Code, Cursor, JetBrains) where AI extensions are used
139
+
-**Agent workspaces** where tools like Goose or Claude Code run
140
+
-**Development environments** that include AI tooling out of the box
141
+
142
+
Coder provides the[`data.coder_workspace_owner.me.session_token`](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace_owner) data source which gives you access to the workspace owner's session token. This token automatically authenticates requests through Bridge.
143
+
144
+
####Configuring AI Agents in Tasks
145
+
146
+
For Coder Tasks templates, you can pre-configure agents to use Bridge: