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

chore(docs): update links and minor improvements to AI Bridge#20714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
matifali merged 5 commits intomainfromaibridge-docs-review
Nov 11, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 41 additions & 26 deletionsdocs/ai-coder/ai-bridge/client-config.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,30 @@ Again, the exact environment variable or setting naming may differ from tool to

## Configuring In-Workspace Tools

Template admins can pre-configure workspaces to route all AI tool requests through AI Bridge, providing a seamless and secure experience for users. This can be done for both Coder Tasks and other AI tools running in the workspace.
AI coding tools running inside a Coder workspace, such as IDE extensions, can be configured to use AI Bridge.

While users can manually configure these tools with a long-lived API key, template admins can provide a more seamless experience by pre-configuring them. Admins can automatically inject the user's session token with `data.coder_workspace_owner.me.session_token` and the AI Bridge base URL into the workspace environment.

In this example, Claude code respects these environment variables and will route all requests via AI Bridge.

This is the fastest way to bring existing agents like Roo Code, Cursor, or Claude Code into compliance without adopting Coder Tasks.

```hcl
data "coder_workspace_owner" "me" {}

data "coder_workspace" "me" {}

resource "coder_agent" "dev" {
arch = "amd64"
os = "linux"
dir = local.repo_dir
env = {
ANTHROPIC_BASE_URL : "${data.coder_workspace.me.url}/api/v2/aibridge/anthropic",
ANTHROPIC_AUTH_TOKEN : data.coder_workspace_owner.me.session_token
}
... # other agent configuration
}
```

### Using Coder Tasks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I still think mentioning Coder Tasks here is distracting and unnecessary.
We're still talking about the basic setup here. Tasks is an optional integration, therefore it should have lower hierarchical priority.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I will try to come up with a different version. Or we can drop Taks. Thoughts@david-fraley?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We should absolutely keep the Tasks section, but not make it sound like Tasks arerequired for Bridge to work.

matifali reacted with thumbs up emoji
Copy link
MemberAuthor

@matifalimatifaliNov 11, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What do you think about it now?a106652


Expand DownExpand Up@@ -59,14 +82,6 @@ module "claude-code" {
}
```

### Other IDEs and Tools

AI coding tools running inside a Coder workspace, such as IDE extensions, can be configured to use AI Bridge.

While users can manually configure these tools with a long-lived API key, template admins can provide a more seamless experience by pre-configuring them. Similar to the Coder Tasks example, admins can use Terraform data sources like `data.coder_workspace_owner.me.session_token` to automatically inject the user's session token and the AI Bridge base URL into the workspace environment.

This is the fastest way to bring existing agents like Roo Code, Cursor, or Claude Code into compliance without adopting Coder Tasks.

## External and Desktop Clients

You can also configure AI tools running outside of a Coder workspace, such as local IDE extensions or desktop applications, to connect to AI Bridge.
Expand All@@ -79,23 +94,23 @@ Users can generate a long-lived API key from the Coder UI or CLI. Follow the ins

The table below shows tested AI clients and their compatibility with AI Bridge. Click each client name for vendor-specific configuration instructions. Report issues or share compatibility updates in the [aibridge](https://github.com/coder/aibridge) issue tracker.

| Client| OpenAI support | Anthropic support | Notes |
|-------------------------------------------------------------------------------------------------------------------------------------------|----------------|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Claude Code](https://docs.claude.com/en/docs/claude-code/settings#environment-variables)| N/A | ✅ | Works out of the box and can be preconfigured in templates. |
| Claude Code (VS Code)| N/A | ✅ | May require signing in once; afterwards respects workspace environment variables. |
| [Cursor](https://cursor.com/docs/settings/api-keys)| ⚠️ | ❌ | Only non-reasoning models like `gpt-4.1` are available when using a custom endpoint. Requests still transit Cursor's cloud. There is no central admin setting to configure this. |
| [Roo Code](https://docs.roocode.com/features/api-configuration-profiles#creating-and-managing-profiles)| ✅ | ✅ | Use the **OpenAI Compatible** provider with the legacy format to avoid `/v1/responses`. |
| [Codex CLI](https://github.com/openai/codex/blob/main/docs/config.md#model_providers)| ✅ | N/A | `gpt-5-codex` support is [in progress](https://github.com/coder/aibridge/issues/16). |
| [GitHub Copilot (VS Code)](https://docs.github.com/en/copilot/configuring-github-copilot/configuring-network-settings-for-github-copilot) | ✅ | ❌ | Requires the pre-release extension. Anthropic endpoints are not supported. |
| Goose | ❓ | ❓ | |
| Goose Desktop | ❓ | ✅ | |
| WindSurf| ❌ | — | No option to override the base URL. |
| Sourcegraph Amp| ❌ | — | No option to override the base URL. |
| Kiro| ❌ | — | No option to override the base URL. |
| [Copilot CLI](https://github.com/github/copilot-cli/issues/104)| ❌ | ❌ | No support for custom base URLs and uses a `GITHUB_TOKEN` for authentication. |
| [Kilo Code](https://kilocode.ai/docs/features/api-configuration-profiles#creating-and-managing-profiles)| ✅ | ✅ | Similar to Roo Code. |
| Gemini CLI | ❌| ❌| Not supported yet (`GOOGLE_GEMINI_BASE_URL`). |
| [Amazon Q CLI](https://aws.amazon.com/q/)| ❌ | ❌ | Limited to Amazon Q subscriptions; no custom endpoint support. |
| Client | OpenAI support | Anthropic support | Notes |
|-------------------------------------------------------------------------------------------------------------------------------------|----------------|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Claude Code](https://docs.claude.com/en/docs/claude-code/settings#environment-variables) | N/A | ✅ | Works out of the box and can be preconfigured in templates. |
| Claude Code (VS Code) | N/A | ✅ | May require signing in once; afterwards respects workspace environment variables. |
| [Cursor](https://cursor.com/docs/settings/api-keys) | ⚠️ | ❌ | Only non-reasoning models like `gpt-4.1` are available when using a custom endpoint. Requests still transit Cursor's cloud. There is no central admin setting to configure this. |
| [Roo Code](https://docs.roocode.com/features/api-configuration-profiles#creating-and-managing-profiles) | ✅ | ✅ | Use the **OpenAI Compatible** provider with the legacy format to avoid `/v1/responses`. |
| [Codex CLI](https://github.com/openai/codex/blob/main/docs/config.md#model_providers) | ✅ | N/A | `gpt-5-codex` support is [in progress](https://github.com/coder/aibridge/issues/16). |
| [GitHub Copilot (VS Code)](https://code.visualstudio.com/docs/copilot/customization/language-models#_use-an-openaicompatible-model) | ✅ | ❌ | Requires the pre-release extension. Anthropic endpoints are not supported. |
|[Goose](https://block.github.io/goose/docs/getting-started/providers/#available-providers) | ❓ | ❓ | |
|[Goose Desktop](https://block.github.io/goose/docs/getting-started/providers/#available-providers) | ❓ | ✅ | |
| WindSurf | ❌ | — | No option to override the base URL. |
| Sourcegraph Amp | ❌ | — | No option to override the base URL. |
| Kiro | ❌ | — | No option to override the base URL. |
| [Copilot CLI](https://github.com/github/copilot-cli/issues/104) | ❌ | ❌ | No support for custom base URLs and uses a `GITHUB_TOKEN` for authentication. |
| [Kilo Code](https://kilocode.ai/docs/features/api-configuration-profiles#creating-and-managing-profiles) | ✅ | ✅ | Similar to Roo Code. |
| Gemini CLI| ❌| ❌ | Not supported yet. |
| [Amazon Q CLI](https://aws.amazon.com/q/) | ❌ | ❌ | Limited to Amazon Q subscriptions; no custom endpoint support. |

Legend: ✅ works, ⚠️ limited support, ❌ not supported, ❓ not yet verified, — not applicable.

Expand Down
4 changes: 2 additions & 2 deletionsdocs/ai-coder/ai-bridge/index.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,9 +11,9 @@ AI Bridge solves 3 key problems:
1.**Centralized authn/z management**: no more issuing & managing API tokens for OpenAI/Anthropic usage.
Users use their Coder session or API tokens to authenticate with`coderd` (Coder control plane), and
`coderd` securely communicates with the upstream APIs on their behalf.
2.**Auditing and attribution**: all interactions with AI services, whether autonomous or human-initiated,
1.**Auditing and attribution**: all interactions with AI services, whether autonomous or human-initiated,
will be audited and attributed back to a user.
3.**Centralized MCP administration**: define a set of approved MCP servers and tools which your users may
1.**Centralized MCP administration**: define a set of approved MCP servers and tools which your users may
use.

##When to use AI Bridge
Expand Down
2 changes: 1 addition & 1 deletiondocs/ai-coder/ai-bridge/mcp.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,4 +63,4 @@ If you have the `oauth2` and `mcp-server-http` experiments enabled, Coder's own
- **Coder MCP tools not being injected**: in order for Coder MCP tools to be injected, the internal MCP server needs to be active. Follow the instructions in the [MCP Server](../mcp-server.md) page to enable it.
- **External Auth tools not being injected**: this is generally due to the requesting user not being authenticated against the External Auth app; when this is the case, no attempt is made to connect to the MCP server.
- **External Auth tools not being injected**: this is generally due to the requesting user not being authenticated against the[External Auth](../../admin/external-auth/index.md) app; when this is the case, no attempt is made to connect to the MCP server.
8 changes: 4 additions & 4 deletionsdocs/ai-coder/ai-bridge/reference.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,22 +17,22 @@ Where relevant, both streaming and non-streaming requests are supported.

### OpenAI

**Intercepted**:
####Intercepted

- [`/v1/chat/completions`](https://platform.openai.com/docs/api-reference/chat/create)

**Passthrough**:
####Passthrough

- [`/v1/models(/*)`](https://platform.openai.com/docs/api-reference/models/list)
- [`/v1/responses`](https://platform.openai.com/docs/api-reference/responses/create) _(Interception support coming in **Beta**)_

### Anthropic

**Intercepted**:
####Intercepted

- [`/v1/messages`](https://docs.claude.com/en/api/messages)

**Passthrough**:
####Passthrough

- [`/v1/models(/*)`](https://docs.claude.com/en/api/models-list)

Expand Down
7 changes: 4 additions & 3 deletionsdocs/manifest.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -948,9 +948,10 @@
"path":"./ai-coder/ai-bridge/client-config.md"
},
{
"title":"MCP",
"description":"How to use AI Bridge with MCP",
"path":"./ai-coder/ai-bridge/mcp.md"
"title":"MCP Tools Injection",
"description":"How to configure MCP servers for tools injection through AI Bridge",
"path":"./ai-coder/ai-bridge/mcp.md",
"state": ["early access"]
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Marking the MCP Tools injection section explicitly asEarly Access. We would like to keep this feature opt-in and EA even after AI Bridge itself graduates to Beta or GA.

dannykopping reacted with thumbs up emoji
},
{
"title":"Monitoring",
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp