Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/web/src/content/docs/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Config sources are loaded in this order (later sources override earlier ones):
1. **Remote config** (from `.well-known/opencode`) - organizational defaults
2. **Global config** (`~/.config/opencode/opencode.json`) - user preferences
3. **Custom config** (`OPENCODE_CONFIG` env var) - custom overrides
4. **Project config** (`opencode.json` in project) - project-specific settings
5. **`.opencode` directories** - agents, commands, plugins
4. **Project config** (`opencode.json` or `opencode.jsonc` in project) - project-specific settings
5. **`.opencode` directories** - config files, agents, commands, plugins
6. **Inline config** (`OPENCODE_CONFIG_CONTENT` env var) - runtime overrides
7. **Managed config files** (`/Library/Application Support/opencode/` on macOS) - admin-controlled
8. **macOS managed preferences** (`.mobileconfig` via MDM) - highest priority, not user-overridable
Expand Down Expand Up @@ -108,9 +108,11 @@ Global config overrides remote organizational defaults.

### Per project

Add `opencode.json` in your project root. Project config has the highest precedence among standard config files - it overrides both global and remote configs.
Add `opencode.json` or `opencode.jsonc` in your project root. Project config has the highest precedence among standard config files - it overrides both global and remote configs.

For project-specific TUI settings, add `tui.json` alongside it.
You can also put project config in `.opencode/opencode.json` or `.opencode/opencode.jsonc`. These files are loaded with the rest of the `.opencode` directory sources, after root project config.

For project-specific TUI settings, add `tui.json` alongside the root project config or in `.opencode/tui.json`.

:::tip
Place project specific config in the root of your project.
Expand Down
Loading