File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
registry/coder/modules/claude-code Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,33 @@ module "claude-code" {
107
107
}
108
108
```
109
109
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
+
110
137
## Troubleshooting
111
138
112
139
If you encounter any issues, check the log files in the ` ~/.claude-module ` directory within your workspace for detailed information.
You can’t perform that action at this time.
0 commit comments