Skip to content

OpenCode

Install OpenCode and add the stax skill so OpenCode can drive stax workflows correctly.

1. Install

curl -fsSL https://opencode.ai/install | bash

2. Add the stax skill

st setup --install-skills --skills opencode   # recommended
mkdir -p ~/.config/opencode/skills/stax
st --skill > ~/.config/opencode/skills/stax/SKILL.md
# or fetch the markdown body only from GitHub:
curl -o ~/.config/opencode/skills/stax/SKILL.md https://raw.githubusercontent.com/cesarferreira/stax/main/skills.md

OpenCode loads skills from ~/.config/opencode/skills/<name>/SKILL.md.

3. Use OpenCode with AI create/PR generation

st create --ai -a --yes
st submit --ai
st generate --pr-body --agent opencode
st generate --pr-body --agent opencode --model opencode/gpt-5.6-terra
st gen --pr-title --agent opencode
st gen --commit-msg --agent opencode