Custom configuration for OpenCode CLI: agents, skills, plugins, MCP servers.
./install.shThe script does everything: creates opencode.json from the template, replaces the user path, creates .env, and installs plugin dependencies. All you need to do is fill in your tokens in .env.
- Open
~/.config/opencode/.envand fill in your real keys:
ROUTER_9_API_KEY=sk-xxxx # Provider API key (required)
NOTION_TOKEN=
FIGMA_ACCESS_TOKEN=
NETLIFY_PERSONAL_ACCESS_TOKEN=- Update the provider
baseURLinopencode.jsonif it differs from the default. - Run
opencode— done.
cp opencode.example.json opencode.json # then edit YOUR_USER + apiKey in this file
cp .env.example .env # then fill in tokens
npm install- Never commit
opencode.jsonand.env(already gitignored) — share only via the two*.examplefiles. - To enable/disable an MCP server: edit
"enabled"inopencode.json. - You can replace tailwind conffig
"tailwindcss": {
"type": "local",
"command": [
"npx",
"-y",
"tailwindcss-mcp-server"
],
"enabled": true
}, "tailwindcss": {
"type": "local",
"command": ["/usr/bin/tailwindcss-server"],
"enabled": true
},