- Notifications
You must be signed in to change notification settings - Fork1.1k
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
Changes fromall commits
56cd3791630046a1066526999623fb4dc40File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -24,7 +24,30 @@ Again, the exact environment variable or setting naming may differ from tool to | ||
| ## Configuring In-Workspace 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. 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 | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I still think mentioning Coder Tasks here is distracting and unnecessary. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. What do you think about it now?a106652 | ||
| @@ -59,14 +82,6 @@ module "claude-code" { | ||
| } | ||
| ``` | ||
| ## 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. | ||
| @@ -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. | ||
matifali marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| | 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. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -948,9 +948,10 @@ | ||
| "path":"./ai-coder/ai-bridge/client-config.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"] | ||
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Marking the MCP Tools injection section explicitly as | ||
| }, | ||
| { | ||
| "title":"Monitoring", | ||
Uh oh!
There was an error while loading.Please reload this page.