cavaldos/opencode

★ 1Forks 0HTMLGitHub ↗Compare

README

OpenCode Config

Custom configuration for OpenCode CLI: agents, skills, plugins, MCP servers.

Install

./install.sh

The 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.

After running the script

  1. Open ~/.config/opencode/.env and fill in your real keys:
ROUTER_9_API_KEY=sk-xxxx        # Provider API key (required)
NOTION_TOKEN=
FIGMA_ACCESS_TOKEN=
NETLIFY_PERSONAL_ACCESS_TOKEN=
  1. Update the provider baseURL in opencode.json if it differs from the default.
  2. Run opencode — done.

Manual install (without the script)

cp opencode.example.json opencode.json   # then edit YOUR_USER + apiKey in this file
cp .env.example .env                     # then fill in tokens
npm install

Notes

  • Never commit opencode.json and .env (already gitignored) — share only via the two *.example files.
  • To enable/disable an MCP server: edit "enabled" in opencode.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
    },

Contributors

cavaldos

Issues