This repository contains my sensible defaults for opencode.
curl -fsSL https://opencode.ai/install | bashOr with Homebrew:
brew install anomalyco/tap/opencodeopencode.json- Core opencode settings (includes MCP servers and plugins)tui.json- Terminal UI preferencesagent/- Agent configuration (assembled from shared + frontmatter)command/- Command definitionsskills/- Skill configuration (assembled from shared + frontmatter)shared/- Shared AI config submodule (dotbrains/shared-ai-config)frontmatter/- OpenCode-specific YAML frontmatter for agents and skillsrules/- Instruction files loaded as system-level rulesPLUGINS.md- External MCP servers and plugins (details)RULES.md- Rule definitions and usage (details)
The contents of this repository should be placed in your $HOME/.config.
git clone --recursive https://github.com/dotbrains/opencode.git $HOME/.config/opencodeAgent and skill body content is shared with Claude Code via the shared-ai-config submodule. To update after shared content changes:
git submodule update --remote shared
./shared/assemble.sh opencodeIf your workspace blocks MCP OAuth flows, this config includes local fallback slash commands:
- Notion:
command/notion-search.md,command/notion-page.md(powered by@dotbrains/notion-cli) - Linear:
command/linear-search.md,command/linear-issue.md(powered by@dotbrains/linear-cli)
Setup and usage instructions are documented in PLUGINS.md under:
- Linear → Fallback: linear-cli (when MCP auth is blocked)
- Notion → Fallback: notion-cli (when MCP auth is blocked)
This project is licensed under the PolyForm Shield License 1.0.0 -- see LICENSE for details.