summaryrefslogtreecommitdiffhomepage
path: root/packages/web
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-12-12 22:50:50 +0000
committerDavid Hill <[email protected]>2025-12-12 22:50:50 +0000
commitdbc84ff4c347aa446e18b80ef1811c5fd9c886f9 (patch)
treed4b4640a6f90ad62b57d6942a2fe3fef232f86bf /packages/web
parentc11ea3fd923957d8f6c94878e69babdbad194e31 (diff)
parent3c3a0f8afbc1325ab53985995826f5ccf6c80737 (diff)
downloadopencode-dbc84ff4c347aa446e18b80ef1811c5fd9c886f9.tar.gz
opencode-dbc84ff4c347aa446e18b80ef1811c5fd9c886f9.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/web')
-rw-r--r--packages/web/package.json2
-rw-r--r--packages/web/src/content/docs/cli.mdx37
2 files changed, 38 insertions, 1 deletions
diff --git a/packages/web/package.json b/packages/web/package.json
index 5b82ae78b..f79b7ac36 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -1,7 +1,7 @@
{
"name": "@opencode-ai/web",
"type": "module",
- "version": "1.0.150",
+ "version": "1.0.152",
"scripts": {
"dev": "astro dev",
"dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev",
diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx
index 083db369b..64e11ff56 100644
--- a/packages/web/src/content/docs/cli.mdx
+++ b/packages/web/src/content/docs/cli.mdx
@@ -269,3 +269,40 @@ The opencode CLI takes the following global flags.
| `--version` | `-v` | Print version number |
| `--print-logs` | | Print logs to stderr |
| `--log-level` | | Log level (DEBUG, INFO, WARN, ERROR) |
+
+---
+
+## Environment variables
+
+OpenCode can be configured using environment variables.
+
+| Variable | Type | Description |
+| ------------------------------------- | ------- | -------------------------------------- |
+| `OPENCODE_AUTO_SHARE` | boolean | Automatically share sessions |
+| `OPENCODE_GIT_BASH_PATH` | string | Path to Git Bash executable on Windows |
+| `OPENCODE_CONFIG` | string | Path to config file |
+| `OPENCODE_CONFIG_DIR` | string | Path to config directory |
+| `OPENCODE_CONFIG_CONTENT` | string | Inline json config content |
+| `OPENCODE_DISABLE_AUTOUPDATE` | boolean | Disable automatic update checks |
+| `OPENCODE_DISABLE_PRUNE` | boolean | Disable pruning of old data |
+| `OPENCODE_PERMISSION` | string | Inlined json permissions config |
+| `OPENCODE_DISABLE_DEFAULT_PLUGINS` | boolean | Disable default plugins |
+| `OPENCODE_DISABLE_LSP_DOWNLOAD` | boolean | Disable automatic LSP server downloads |
+| `OPENCODE_ENABLE_EXPERIMENTAL_MODELS` | boolean | Enable experimental models |
+| `OPENCODE_DISABLE_AUTOCOMPACT` | boolean | Disable automatic context compaction |
+| `OPENCODE_CLIENT` | string | Client identifier (defaults to `cli`) |
+| `OPENCODE_ENABLE_EXA` | boolean | Enable Exa web search tools |
+
+---
+
+### Experimental
+
+These environment variables enable experimental features that may change or be removed.
+
+| Variable | Type | Description |
+| ----------------------------------------------- | ------- | --------------------------------------- |
+| `OPENCODE_EXPERIMENTAL` | boolean | Enable all experimental features |
+| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolean | Enable icon discovery |
+| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolean | Disable copy on select in TUI |
+| `OPENCODE_EXPERIMENTAL_BASH_MAX_OUTPUT_LENGTH` | number | Max output length for bash commands |
+| `OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS` | number | Default timeout for bash commands in ms |