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: packages/web/src/content/docs/config.mdx
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,10 @@ Config sources are loaded in this order (later sources override earlier ones):
51
51
52
52
This means project configs can override global defaults, and global configs can override remote organizational defaults.
53
53
54
+
:::note
55
+
The `.opencode` and `~/.config/opencode` directories use **plural names** for subdirectories: `agents/`, `commands/`, `modes/`, `plugins/`, `skills/`, `tools/`, and `themes/`. Singular names (e.g., `agent/`) are also supported for backwards compatibility.
56
+
:::
57
+
54
58
---
55
59
56
60
### Remote
@@ -330,7 +334,7 @@ You can configure specialized agents for specific tasks through the `agent` opti
330
334
}
331
335
```
332
336
333
-
You can also define agents using markdown files in `~/.config/opencode/agent/` or `.opencode/agent/`. [Learn more here](/docs/agents).
337
+
You can also define agents using markdown files in `~/.config/opencode/agents/` or `.opencode/agents/`. [Learn more here](/docs/agents).
334
338
335
339
---
336
340
@@ -394,7 +398,7 @@ You can configure custom commands for repetitive tasks through the `command` opt
394
398
}
395
399
```
396
400
397
-
You can also define commands using markdown files in `~/.config/opencode/command/` or `.opencode/command/`. [Learn more here](/docs/commands).
401
+
You can also define commands using markdown files in `~/.config/opencode/commands/` or `.opencode/commands/`. [Learn more here](/docs/commands).
398
402
399
403
---
400
404
@@ -530,7 +534,7 @@ You can configure MCP servers you want to use through the `mcp` option.
530
534
531
535
[Plugins](/docs/plugins) extend OpenCode with custom tools, hooks, and integrations.
532
536
533
-
Place plugin files in `.opencode/plugin/` or `~/.config/opencode/plugin/`. You can also load plugins from npm through the `plugin` option.
537
+
Place plugin files in `.opencode/plugins/` or `~/.config/opencode/plugins/`. You can also load plugins from npm through the `plugin` option.
Duplicate npm packages with the same name and version are loaded once. However, a local plugin and an npm plugin with similar names are both loaded separately.
64
64
@@ -85,7 +85,7 @@ Local plugins and custom tools can use external npm packages. Add a `package.jso
85
85
86
86
OpenCode runs `bun install` at startup to install these. Your plugins and tools can then import them.
0 commit comments