Run opencode on GitHub issues and PRs
mcp & integrations
// what it does
opencode github install walks through adding the GitHub app, writing .github/workflows/opencode.yml, and setting secrets. After that, commenting /opencode (or /oc) on an issue or PR triggers the agent to respond, make changes, and push a branch. It needs a provider key such as ANTHROPIC_API_KEY in your repo's Actions secrets.
// shell
$ opencode github install// gotcha
The Action runs on your CI minutes and can push commits, so scope its permissions and model deliberately. Sessions may be shared by default on public repos — set share in the workflow if that is not what you want.