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

Commit7dce5e2

Browse files
committed
added screenshots and when to use bridge
1 parentd522faf commit7dce5e2

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

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

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
>[!NOTE]
44
>AI Bridge is currently an_experimental_ feature.
55
6+
![](https://i.imgur.com/wIQiLHv.png)
7+
68
AI Bridge is a smart proxy for AI. It acts as a man-in-the-middle between your users' coding agents / IDEs
79
and AI providers like OpenAI and Anthropic. By intercepting all the AI traffic between these clients and
810
the upstream APIs, AI Bridge can record user prompts, token usage, and tool invocations.
@@ -17,12 +19,27 @@ AI Bridge solves 3 key problems:
1719
3.**Centralized MCP administration**: define a set of approved MCP servers and tools which your users may
1820
use, and prevent users from using their own.
1921

22+
###When to use AI Bridge
23+
24+
As the library of LLMs and their associated tools grow, administrators are pressured to provide auditing, measure adoption, provide tools through MCP, and track token spend. Disparate SAAS platforms provide_some_ of these for_some_ tools, but there is no centralized, secure solution for these challenges.
25+
26+
If you are administrator or devops leader looking to:
27+
- Measure AI tooling adoption across teams or projects
28+
- Provide an LLM audit trail to security administrators
29+
- Manage token spend in a central dashboard
30+
- Investigate opportunities for AI automation
31+
- Uncover the high-leverage use cases from experienced engineers
32+
33+
We advise trying Bridge as self-hosted proxy to monitor LLM usage agnostically across AI powered IDEs like Cursor and headless agents like Claude Code.
34+
2035
##Setup
2136

37+
AI Bridge runs inside the Coder control plane, requiring no separate compute to deploy or scale. Once enabled,`coderd` hosts the bridge in-memory and brokers traffic to your configured AI providers on behalf of authenticated users.
38+
2239
**Required**:
2340

24-
1. A**Premium**license
25-
1. Feature must be[enabled](#activation)
41+
1. A**premium**licensed Coder deployment
42+
1. Feature must be[enabled](#activation) using the server flag
2643
1. One or more[provider](#providers) API keys must be configured
2744

2845
###Activation
@@ -56,8 +73,7 @@ The API to which AI Bridge will relay requests.
5673
-`CODER_AIBRIDGE_OPENAI_BASE_URL` or`--aibridge-openai-base-url`, defaults to`https://api.openai.com/v1/`
5774
-`CODER_AIBRIDGE_ANTHROPIC_BASE_URL` or`--aibridge-anthropic-base-url`, defaults to`https://api.anthropic.com/`
5875

59-
If you're using_[Google Vertex AI](https://cloud.google.com/vertex-ai?hl=en)_,_[AWS Bedrock](https://aws.amazon.com/bedrock/)_, or others,
60-
you may specify the base URL(s) above to the appropriate API endpoint.
76+
AI bridge is compatible with_[Google Vertex AI](https://cloud.google.com/vertex-ai?hl=en)_,_[AWS Bedrock](https://aws.amazon.com/bedrock/)_, and other LLM brokers. You may specify the base URL(s) above to the appropriate API endpoint for your provider.
6177

6278
---
6379

@@ -69,10 +85,19 @@ you may specify the base URL(s) above to the appropriate API endpoint.
6985
AI Bridge collects:
7086

7187
- The last`user` prompt of each request
72-
- All token usage
73-
- All tool invocations
88+
- All token usage (associated with each prompt)
89+
- Every tool invocation
90+
91+
All of these records are associated to an "interception" record, which maps 1:1 with requests received from clients but may involve several interactions with upstream providers. Interceptions are associated with a Coder identity, allowing you to map consumption and cost with teams or individuals in your organization:
7492

75-
All of these records are associated to an "interception" record, which maps 1:1 with requests received from clients but may involve several interactions with upstream providers.
93+
![User Prompt logging](https://i.imgur.com/TZLgkLy.png)
94+
95+
96+
These logs can be used to determine usage patterns, track costs, and evaluate tooling adoption.
97+
98+
This data is currently accessible through the API and CLI (experimental), which we advise administrators export to their observability platform of choice. We've configured a Grafana dashboard to display Claude Code usage internally which can be imported as a starting point for your tooling adoption metrics.
99+
100+
![Grafana Dashboard](https://i.imgur.com/kyWqES5.png)
76101

77102
##Implementation Details
78103

@@ -235,3 +260,7 @@ Where relevant, both streaming and non-streaming requests are supported.
235260
**Passthrough**:
236261

237262
-[`/v1/models(/*)`](https://docs.claude.com/en/api/models-list)
263+
264+
##Troubleshooting
265+
266+
To report a bug, file a feature request, or see a list of known issues please see our Github repository for Bridge. If you encounter issues with Bridge during early access, please contact our Support team or reach out via our Discord.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp