Skip to content
Closed
Changes from all 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
15 changes: 15 additions & 0 deletions registry/coder-labs/templates/tasks-docker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ resource "coder_env" "anthropic_api_key" {
value = var.anthropic_api_key
}

# Usage with Claude Code Subscription
# Uncomment options below and comment out the above `anthropic_api_key` variable
# variable "claude_code_oauth_token" {
# type = string
# description = "Generate one using `claude setup-token` command (required if use_claude_code_auth is true)"
# sensitive = true
# }
#
# # Create the OAuth token environment variable
# resource "coder_env" "claude_code_oauth_token" {
# agent_id = coder_agent.main.id
# name = "CLAUDE_CODE_OAUTH_TOKEN"
# value = var.claude_code_oauth_token
# }

Comment on lines +52 to +66
Copy link
Member

Choose a reason for hiding this comment

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

Let's also mention this in the readme of the module too

Copy link
Member

Choose a reason for hiding this comment

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

@iamriajul can you update that as per #402

# We are using presets to set the prompts, image, and set up instructions
# See https://coder.com/docs/admin/templates/extending-templates/parameters#workspace-presets
data "coder_workspace_preset" "default" {
Expand Down