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
feat: add OPENCODE_CONFIG_DIR environment variable support (#629)
- Add env var check to getCliConfigDir() for config directory override
- Update detectExistingConfigDir() to include env var path in locations
- Add comprehensive tests (7 test cases)
- Document in README
Closes#627
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,7 @@ No stupid token consumption massive subagents here. No bloat tools here.
135
135
-[MCPs](#mcps)
136
136
-[LSP](#lsp)
137
137
-[Experimental](#experimental)
138
+
-[Environment Variables](#environment-variables)
138
139
-[Author's Note](#authors-note)
139
140
-[Warnings](#warnings)
140
141
-[Loved by professionals at](#loved-by-professionals-at)
@@ -1181,6 +1182,12 @@ Opt-in experimental features that may change or be removed in future versions. U
1181
1182
1182
1183
**Warning**: These features are experimental and may cause unexpected behavior. Enable only if you understand the implications.
1183
1184
1185
+
### Environment Variables
1186
+
1187
+
| Variable | Description |
1188
+
|----------|-------------|
1189
+
|`OPENCODE_CONFIG_DIR`| Override the OpenCode configuration directory. Useful for profile isolation with tools like [OCX](https://github.com/kdcokenny/ocx) ghost mode. |
0 commit comments