Personal OpenCode configuration with MCP servers, agent presets, and a cross-platform installer.
| File | Purpose |
|---|---|
opencode.json |
Main config — MCP servers, plugins, agent toggles, LSP |
oh-my-opencode-slim.json |
Agent model presets (zen-free, openai, poe, opencode-go) |
install.sh |
Installer for macOS / Linux / Windows (WSL/Git Bash) |
install.ps1 |
Installer for native Windows (PowerShell) |
Enabled by default:
- gitnexus — Code knowledge graph (local, npx)
- xcodebuild — Apple platform build/test/debug (local, npx)
- mobile — Mobile device automation (local, npx)
- firebase — Firebase CLI integration (local, npx)
- figma — Figma design handoff (remote)
- sentry — Error tracking (remote)
- github — GitHub Copilot MCP (remote, requires key)
Disabled (enable as needed):
- linear — Linear project management
- clickup — ClickUp project management
- luciq — Instabug integration
- ios-simulator — iOS simulator control (superseded by xcodebuild)
The default preset is zen-free — all free models, no API keys required.
| Preset | Orchestrator | Oracle | Use Case |
|---|---|---|---|
zen-free |
opencode/big-pickle |
opencode/nemotron-3-ultra-free |
Free, zero-config |
openai |
openai/gpt-5.5 |
openai/gpt-5.5 |
OpenAI API users |
poe |
poe/anthropic/claude-opus-4.8 |
poe/anthropic/claude-opus-4.8 |
Poe subscribers |
opencode-go |
opencode-go/glm-5.1 |
opencode-go/deepseek-v4-pro |
OpenCode Go users |
Switch presets by changing "preset": "zen-free" in oh-my-opencode-slim.json.
git clone https://github.com/HossamYoussof/opencode-config.git opencode-config && cd opencode-config
./install.shgit clone https://github.com/HossamYoussof/opencode-config.git opencode-config; cd opencode-config
.\install.ps1The scripts will:
- Install opencode if not already present (via curl, npm, brew, winget, scoop, or choco)
- Copy config files to the global config directory
- Back up any existing configs before overwriting
| OS | Path |
|---|---|
| macOS / Linux | ~/.config/opencode/ |
| Windows | %APPDATA%\opencode\ |
Copy the config files directly:
# macOS / Linux
mkdir -p ~/.config/opencode
cp opencode.json oh-my-opencode-slim.json ~/.config/opencode/
# Windows (PowerShell)
New-Item -ItemType Directory -Force -Path "$env:APPDATA\opencode"
Copy-Item opencode.json, oh-my-opencode-slim.json "$env:APPDATA\opencode\"Edit opencode.json → mcp section:
"my-server": {
"type": "local",
"command": ["npx", "-y", "my-mcp-server"],
"enabled": true
}Edit oh-my-opencode-slim.json → change the preset field:
"preset": "openai"Add an entry under presets in oh-my-opencode-slim.json following the existing structure (orchestrator, oracle, librarian, explorer, designer, fixer agent configs).
- OpenCode CLI installed
- Node.js + npm (for npx-based MCP servers)
- API keys configured in OpenCode for non-free presets
MIT