# opencode-config Global OpenCode configuration: settings, MCP servers, plugins, and skills wiring. ## Replicate on a new machine ```bash # 1. Clone this config (replace with a Gogs access token) git clone https://gogadmin:@git.algometic.com/gogadmin/opencode-config.git ~/.config/opencode # 2. Install plugin dependencies (needed by plugins/rtk.ts) cd ~/.config/opencode && npm install # 3. Clone the skills repo (public, referenced by opencode.jsonc) git clone https://github.com/anthropics/skills ~/.config/opencode/skills-repo ``` ## What's in here | Path | Purpose | |---|---| | `opencode.jsonc` | Skills path + MCP servers (postgres, flymcp) | | `config.json` | Local Qwen provider (`qwen-local/qwen3.8`) and default model | | `plugins/rtk.ts` | RTK plugin — requires `rtk >= 0.23.0` in PATH | | `package.json` | Plugin dependency: `@opencode-ai/plugin` | ## Per-machine adjustments after cloning - **flymcp**: `opencode.jsonc` points at `/home/i78700es/.local/bin/flymcp` — install flymcp and fix the path if the user/home differs. - **postgres MCP**: connects to `postgres://localhost:5432/mcp` (sandbox creds in `opencode.jsonc`) — make sure the local postgres sandbox is running, or update the URL. - **Qwen provider**: `config.json` targets `http://192.168.1.38:8284/v1` — adjust if the local model server moves. - **rtk**: install `rtk >= 0.23.0` in PATH so the plugin's command rewrites work. ## Keeping in sync ```bash cd ~/.config/opencode git pull # get updates git add -A && git commit -m "..." && git push # publish changes ``` For continuous sync, point Syncthing (or rsync over cron) at `~/.config/opencode/` — the `.gitignore` already excludes `node_modules/` and `skills-repo/`.