Skip to content

Commit a9fe876

Browse files
committed
feat: add explicit example for usage with claude code subscription
- ref: coder#358
1 parent c4fae64 commit a9fe876

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,26 @@ module "claude-code" {
9595
}
9696
```
9797

98+
### Usage with Claude Code Subscription
99+
100+
```tf
101+
102+
variable "claude_code_oauth_token" {
103+
type = string
104+
description = "Generate one using `claude setup-token` command"
105+
sensitive = true
106+
value = "xxxx-xxx-xxxx"
107+
}
108+
109+
module "claude-code" {
110+
source = "registry.coder.com/coder/claude-code/coder"
111+
version = "3.0.0"
112+
agent_id = coder_agent.example.id
113+
workdir = "/home/coder/project"
114+
claude_code_oauth_token = var.claude_code_oauth_token
115+
}
116+
```
117+
98118
## Troubleshooting
99119

100120
If you encounter any issues, check the log files in the `~/.claude-module` directory within your workspace for detailed information.

0 commit comments

Comments
 (0)