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
{{ message }}
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,24 @@ You can configure OpenCode using environment variables:
96
96
|`AZURE_OPENAI_ENDPOINT`| For Azure OpenAI models |
97
97
|`AZURE_OPENAI_API_KEY`| For Azure OpenAI models (optional when using Entra ID) |
98
98
|`AZURE_OPENAI_API_VERSION`| For Azure OpenAI models |
99
+
|`SHELL`| Default shell to use (if not specified in config) |
100
+
101
+
### Shell Configuration
102
+
103
+
OpenCode allows you to configure the shell used by the bash tool. By default, it uses the shell specified in the `SHELL` environment variable, or falls back to `/bin/bash` if not set.
104
+
105
+
You can override this in your configuration file:
106
+
107
+
```json
108
+
{
109
+
"shell": {
110
+
"path": "/bin/zsh",
111
+
"args": ["-l"]
112
+
}
113
+
}
114
+
```
115
+
116
+
This is useful if you want to use a different shell than your default system shell, or if you need to pass specific arguments to the shell.
99
117
100
118
### Configuration File Structure
101
119
@@ -136,6 +154,10 @@ You can configure OpenCode using environment variables:
0 commit comments