Rebranding migration
Update configuration and references after the AI Bridge rename to AI Gateway.
On this page
AI Bridge has been renamed to AI Gateway. This is a cosmetic rebrand to make the feature easier to understand. It changes user-visible names, configuration options, the canonical HTTP API path, and the Prometheus metric names.
Note
Deprecated aliases remain available for gateway and proxy controls. Provider configuration through environment variables, flags, and YAML has been removed under both names. Refer to Provider configuration.
Adopt the ai_gateway names for gateway and proxy settings so your configuration matches the current documentation.
Important
New settings added in every area except the database (configuration options, environment variables, CLI flags, and API paths) will use only the new ai_gateway name, with no aibridge alias.
At a glance
At a glance| Area | Old name | New (canonical) name | Old name still works? |
|---|---|---|---|
| Environment variables | CODER_AIBRIDGE_* | CODER_AI_GATEWAY_* | Yes, except provider setup |
| CLI flags | --aibridge-* | --ai-gateway-* | Yes, except provider setup |
| YAML config group | aibridge: / aibridgeproxy: | ai_gateway: / ai_gateway_proxy: | Yes, except provider setup |
| HTTP API | /api/v2/aibridge | /api/v2/ai-gateway | Yes (legacy route retained) |
| Prometheus metrics | coder_aibridged_* / coder_aibridgeproxyd_* | coder_ai_gateway_* / coder_ai_gateway_proxy_* | No (removed in v2.40) |
| Database | (no change) | (no change) | n/a |
What did not change
What did not change- No database changes.
Table and column names (for example,
aibridge_interceptions) are unchanged. No migration runs and no data is rewritten on upgrade. - Gateway and proxy settings. Renaming options for logging, retention, or listener addresses does not change their behavior or defaults.
- Internal/library references.
Some internal package names, log fields, and library identifiers still use the
aibridgename. These are not part of the supported configuration surface and do not affect operators.
Configuration (env vars, flags, YAML)
Configuration (env vars, flags, YAML)The aliases listed below apply only to gateway and proxy controls, not provider setup.
If both a previous name and a new name are set for the same setting, set only one (prefer the new name).
Naming rules
Naming rulesThe rename is a mechanical substitution:
- Environment variables:
CODER_AIBRIDGE_becomesCODER_AI_GATEWAY_. - CLI flags:
--aibridge-becomes--ai-gateway-. - YAML: only the top-level group key changes (
aibridge:becomesai_gateway:,aibridgeproxy:becomesai_gateway_proxy:). The keys nested under the group are unchanged.
YAML example
YAML exampleBefore:
aibridge:
enabled: true
retention: 60d
aibridgeproxy:
enabled: true
listen_addr: ":8888"After:
ai_gateway:
enabled: true
retention: 60d
ai_gateway_proxy:
enabled: true
listen_addr: ":8888"Environment variable reference
Environment variable referenceCore AI Gateway settings:
| Deprecated | New | Note |
|---|---|---|
CODER_AIBRIDGE_ENABLED | CODER_AI_GATEWAY_ENABLED | |
CODER_AIBRIDGE_INJECT_CODER_MCP_TOOLS | CODER_AI_GATEWAY_INJECT_CODER_MCP_TOOLS | |
CODER_AIBRIDGE_RETENTION | CODER_AI_GATEWAY_RETENTION | |
CODER_AIBRIDGE_MAX_CONCURRENCY | CODER_AI_GATEWAY_MAX_CONCURRENCY | |
CODER_AIBRIDGE_RATE_LIMIT | CODER_AI_GATEWAY_RATE_LIMIT | |
CODER_AIBRIDGE_STRUCTURED_LOGGING | CODER_AI_GATEWAY_STRUCTURED_LOGGING | |
CODER_AIBRIDGE_SEND_ACTOR_HEADERS | CODER_AI_GATEWAY_SEND_ACTOR_HEADERS | |
CODER_AIBRIDGE_ALLOW_BYOK | CODER_AI_GATEWAY_ALLOW_BYOK | |
CODER_AIBRIDGE_CIRCUIT_BREAKER_ENABLED | CODER_AI_GATEWAY_CIRCUIT_BREAKER_ENABLED | |
CODER_AIBRIDGE_CIRCUIT_BREAKER_FAILURE_THRESHOLD | CODER_AI_GATEWAY_CIRCUIT_BREAKER_FAILURE_THRESHOLD | |
CODER_AIBRIDGE_CIRCUIT_BREAKER_INTERVAL | CODER_AI_GATEWAY_CIRCUIT_BREAKER_INTERVAL | |
CODER_AIBRIDGE_CIRCUIT_BREAKER_TIMEOUT | CODER_AI_GATEWAY_CIRCUIT_BREAKER_TIMEOUT | |
CODER_AIBRIDGE_CIRCUIT_BREAKER_MAX_REQUESTS | CODER_AI_GATEWAY_CIRCUIT_BREAKER_MAX_REQUESTS |
AI Gateway Proxy settings:
| Deprecated | New | Note |
|---|---|---|
CODER_AIBRIDGE_PROXY_ENABLED | CODER_AI_GATEWAY_PROXY_ENABLED | |
CODER_AIBRIDGE_PROXY_LISTEN_ADDR | CODER_AI_GATEWAY_PROXY_LISTEN_ADDR | |
CODER_AIBRIDGE_PROXY_TLS_CERT_FILE | CODER_AI_GATEWAY_PROXY_TLS_CERT_FILE | |
CODER_AIBRIDGE_PROXY_TLS_KEY_FILE | CODER_AI_GATEWAY_PROXY_TLS_KEY_FILE | |
CODER_AIBRIDGE_PROXY_CERT_FILE | CODER_AI_GATEWAY_PROXY_CERT_FILE | |
CODER_AIBRIDGE_PROXY_KEY_FILE | CODER_AI_GATEWAY_PROXY_KEY_FILE | |
CODER_AIBRIDGE_PROXY_UPSTREAM | CODER_AI_GATEWAY_PROXY_UPSTREAM | |
CODER_AIBRIDGE_PROXY_UPSTREAM_CA | CODER_AI_GATEWAY_PROXY_UPSTREAM_CA | |
CODER_AIBRIDGE_PROXY_ALLOWED_PRIVATE_CIDRS | CODER_AI_GATEWAY_PROXY_ALLOWED_PRIVATE_CIDRS | |
CODER_AIBRIDGE_PROXY_DUMP_DIR | CODER_AI_GATEWAY_PROXY_DUMP_DIR | |
CODER_AIBRIDGE_PROXY_DOMAIN_ALLOWLIST | CODER_AI_GATEWAY_PROXY_DOMAIN_ALLOWLIST | Already deprecated; has no effect |
CLI flags follow the same mapping with the --aibridge-* to --ai-gateway-* prefix change.
HTTP API
HTTP APIThe canonical API path is now /api/v2/ai-gateway (and /api/v2/ai-gateway/proxy).
The legacy /api/v2/aibridge and /api/v2/aibridge/proxy routes are retained for backward compatibility and continue to serve the same handlers.
If you have external integrations or agents calling the API directly, update them to the new path at your convenience. No immediate action is required.
AI clients (such as Claude Code, Codex, and other tools) that are configured with a base URL pointing at the legacy /api/v2/aibridge path continue to work, but should be updated to the new /api/v2/ai-gateway base URL.
Metrics
MetricsThe deprecated metric prefixes were removed in Coder v2.40. Only the new prefixes are emitted:
| Removed prefix | Current prefix |
|---|---|
coder_aibridged_* | coder_ai_gateway_* |
coder_aibridgeproxyd_* | coder_ai_gateway_proxy_* |
Coder v2.35 through v2.39 emit both the removed and current prefixes.
Before you upgrade to v2.40, update Grafana dashboards, Prometheus alerting rules, and recording rules that reference the removed prefixes to use coder_ai_gateway_* and coder_ai_gateway_proxy_*, and confirm the new series are present in your monitoring stack.
If you upgrade from v2.34 or earlier, the new prefixes are not available before the upgrade, so update your dashboards and alerts as part of the upgrade or use the temporary bridge in Metric name migration.