Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit823b14a

Browse files
docs: add base URLs and authentication section to AI Bridge (#20404)
Co-authored-by: Danny Kopping <danny@coder.com>
1 parentf2a4105 commit823b14a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

‎docs/ai-coder/ai-bridge.md‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,44 @@ Bridge is compatible with _[Google Vertex AI](https://cloud.google.com/vertex-ai
8181
>[!NOTE]
8282
>See[Supported APIs](#supported-apis) section below for a comprehensive list.
8383
84+
##Client Configuration
85+
86+
Once AI Bridge is enabled on the server, your users need to configure their AI coding tools to use it. This section explains how users should configure their clients to connect to AI Bridge.
87+
88+
###Setting Base URLs
89+
90+
The exact configuration method varies by client — some use environment variables, others use configuration files or UI settings:
91+
92+
-**OpenAI-compatible clients**: Set the base URL (commonly via the`OPENAI_BASE_URL` environment variable) to`https://coder.example.com/api/experimental/aibridge/openai/v1`
93+
-**Anthropic-compatible clients**: Set the base URL (commonly via the`ANTHROPIC_BASE_URL` environment variable) to`https://coder.example.com/api/experimental/aibridge/anthropic`
94+
95+
Replace`coder.example.com` with your actual Coder deployment URL.
96+
97+
###Authentication
98+
99+
Instead of distributing provider-specific API keys (OpenAI/Anthropic keys) to users, they authenticate to AI Bridge using their**Coder session token** or**API key**:
100+
101+
-**OpenAI clients**: Users set`OPENAI_API_KEY` to their Coder session token or API key
102+
-**Anthropic clients**: Users set`ANTHROPIC_API_KEY` to their Coder session token or API key
103+
104+
Users can generate a Coder API key using:
105+
106+
```sh
107+
coder tokens create
108+
```
109+
110+
Template admins can pre-configure authentication in templates using[`data.coder_workspace_owner.me.session_token`](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace_owner#session_token-1) to automatically configure the workspace owner's credentials.
111+
112+
####Compatibility Notes
113+
114+
Most AI coding assistants that support custom base URLs can work with AI Bridge. However, client-specific configuration requirements vary:
115+
116+
- Some clients require specific URL formats (e.g. try removing the`/v1` suffix)
117+
- Some clients may proxy requests through their own servers, limiting compatibility (e.g. Cursor)
118+
- Some clients may not support custom base URLs at all (e.g. Copilot CLI, Sourcegraph Amp)
119+
120+
Consult your specific AI client's documentation for details on configuring custom API endpoints.
121+
84122
##Collected Data
85123

86124
Bridge collects:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp