You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,35 @@ claude-yolo
128
128
129
129
**Note**: This avoids mounting `~/.config/gh/` which fails due to secure keyring storage in modern GitHub CLI versions.
130
130
131
+
## Configuration Files
132
+
133
+
Claude YOLO supports configuration files to persist your volume mounts, environment variables, and settings. Following the XDG Base Directory specification:
134
+
135
+
```bash
136
+
# Configuration files are loaded in order (later files override earlier):
137
+
1. $XDG_CONFIG_HOME/claude-yolo/.claude-yolo # Global config (default: ~/.config/claude-yolo/.claude-yolo)
138
+
2. ~/.claude-yolo # Legacy global location
139
+
3. .claude-yolo # Project-specific config
140
+
4. .claude-yolo.local # Local overrides (gitignored)
141
+
```
142
+
143
+
Example `.claude-yolo` file:
144
+
```bash
145
+
# Git integration
146
+
VOLUME=~/.ssh:/home/claude/.ssh:ro
147
+
VOLUME=~/.gitconfig:/home/claude/.gitconfig:ro
148
+
149
+
# Environment settings
150
+
ENV=NODE_ENV=development
151
+
ENV=DEBUG=myapp:*
152
+
153
+
# Claude settings
154
+
ANTHROPIC_MODEL=sonnet-4
155
+
USE_TRACE=true
156
+
```
157
+
158
+
See `.claude-yolo.example` and `.claude-yolo.full` for more examples.
159
+
131
160
## Custom Volume Mounting
132
161
133
162
You can mount additional configuration files or directories using the `-v` flag:
@@ -198,9 +227,8 @@ make build
198
227
199
228
```bash
200
229
make CLAUDE_CODE_VERSION=1.0.45 build # Specific version
201
-
make CLAUDE_CODE_VERSION=latest build # Latest version
230
+
make CLAUDE_CODE_VERSION=latest build # Latest version
0 commit comments