Skip to content

Commit 583918b

Browse files
authored
added example of boundary to claude code module (#500)
1 parent a1786a0 commit 583918b

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

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

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "3.2.0"
16+
version = "3.2.1"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -34,6 +34,23 @@ module "claude-code" {
3434

3535
## Examples
3636

37+
### Usage with Agent Boundaries
38+
39+
This example shows how to configure the Claude Code module to run the agent behind a process-level boundary that restricts its network access.
40+
41+
```tf
42+
module "claude-code" {
43+
source = "dev.registry.coder.com/coder/claude-code/coder"
44+
enable_boundary = true
45+
boundary_version = "main"
46+
boundary_log_dir = "/tmp/boundary_logs"
47+
boundary_log_level = "WARN"
48+
boundary_additional_allowed_urls = ["GET *google.com"]
49+
boundary_proxy_port = "8087"
50+
version = "3.2.1"
51+
}
52+
```
53+
3754
### Usage with Tasks and Advanced Configuration
3855

3956
This example shows how to configure the Claude Code module with an AI prompt, API key shared by all users of the template, and other custom settings.
@@ -49,7 +66,7 @@ data "coder_parameter" "ai_prompt" {
4966
5067
module "claude-code" {
5168
source = "registry.coder.com/coder/claude-code/coder"
52-
version = "3.2.0"
69+
version = "3.2.1"
5370
agent_id = coder_agent.example.id
5471
workdir = "/home/coder/project"
5572
@@ -85,7 +102,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
85102
```tf
86103
module "claude-code" {
87104
source = "registry.coder.com/coder/claude-code/coder"
88-
version = "3.2.0"
105+
version = "3.2.1"
89106
agent_id = coder_agent.example.id
90107
workdir = "/home/coder"
91108
install_claude_code = true
@@ -108,7 +125,7 @@ variable "claude_code_oauth_token" {
108125
109126
module "claude-code" {
110127
source = "registry.coder.com/coder/claude-code/coder"
111-
version = "3.2.0"
128+
version = "3.2.1"
112129
agent_id = coder_agent.example.id
113130
workdir = "/home/coder/project"
114131
claude_code_oauth_token = var.claude_code_oauth_token
@@ -181,7 +198,7 @@ resource "coder_env" "bedrock_api_key" {
181198
182199
module "claude-code" {
183200
source = "registry.coder.com/coder/claude-code/coder"
184-
version = "3.2.0"
201+
version = "3.2.1"
185202
agent_id = coder_agent.example.id
186203
workdir = "/home/coder/project"
187204
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
@@ -238,7 +255,7 @@ resource "coder_env" "google_application_credentials" {
238255
239256
module "claude-code" {
240257
source = "registry.coder.com/coder/claude-code/coder"
241-
version = "3.2.0"
258+
version = "3.2.1"
242259
agent_id = coder_agent.example.id
243260
workdir = "/home/coder/project"
244261
model = "claude-sonnet-4@20250514"

0 commit comments

Comments
 (0)