-
Notifications
You must be signed in to change notification settings - Fork 90
feat(coder/modules/claude-code): add support for aibridge #657
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
wip. |
| - `ANTHROPIC_AUTH_TOKEN` to the workspace owner's session token | ||
|
|
||
| This allows Claude Code to route API requests through Coder's AI Bridge instead of directly to Anthropic's API. | ||
| Template build will fail if either `claude_api_key` or `claude_code_oauth_token` is provided alongside `enable_coder_aibridge = true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to mention this. It should be instead enforced through variable validation.
| For AI Bridge configuration set `enable_coder_aibridge` to `true`. [AI Bridge](https://coder.com/docs/ai-coder/ai-bridge) is a Premium Coder feature that provides centralized LLM proxy management. | ||
|
|
||
| ```tf | ||
| resource "coder_ai_task" "task" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I don't think we should provide the default example to be through tasks.
Not all users want it for tasks only.
So my suggestion is to either have two examples
- With tasks
- Standalone where we just install and configure Claude CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, but looks good. Also, what do you think about moving the AI Bridge example a bit higher before Bedrock and Vertex AI examples?
Description
Type of Change
Module Information
Path:
registry/coder/modules/claude-codeNew version:
v4.4.0Breaking change: [ ] Yes [ ] No
Testing & Validation
bun test)bun fmt)Related Issues
Closes: #649