Skip to content

Commit 9411582

Browse files
committed
feat: additional documentation
1 parent 02c8c4a commit 9411582

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,33 @@ module "claude-code" {
107107
}
108108
```
109109

110+
## Environment Variables
111+
112+
The module can be further configured using environment variables set on the Coder agent. This allows for more advanced or dynamic setups.
113+
114+
| Variable | Description | Default |
115+
| ------------------------------------ | ------------------------------------------------------------------------------ | ---------------------------------------------- |
116+
| `CLAUDE_API_KEY` | Your Anthropic API key. | `""` |
117+
| `CODER_MCP_CLAUDE_SYSTEM_PROMPT` | A custom system prompt for Claude. | "Send a task status update..." |
118+
| `CODER_MCP_CLAUDE_CODER_PROMPT` | A custom coder prompt for Claude. | `""` |
119+
| `CODER_MCP_CLAUDE_CONFIG_PATH` | Path to the Claude configuration file. | `~/.claude.json` |
120+
| `CODER_MCP_CLAUDE_MD_PATH` | Path to a `CLAUDE.md` file for project-specific instructions. | `~/.claude/CLAUDE.md` |
121+
| `CLAUDE_CODE_USE_BEDROCK` | Set to `"true"` to use Amazon Bedrock. Requires additional AWS configuration. | `""` |
122+
123+
An example of setting these on a `coder_agent` resource:
124+
125+
```tf
126+
resource "coder_agent" "main" {
127+
# ... other agent config
128+
env = {
129+
CLAUDE_API_KEY = var.anthropic_api_key
130+
CODER_MCP_CLAUDE_SYSTEM_PROMPT = <<-EOT
131+
You are a helpful assistant that can help with code.
132+
EOT
133+
}
134+
}
135+
```
136+
110137
## Troubleshooting
111138

112139
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)