The open source coding agent.
TypeScript
Add opencode workflow
Frankf9b5b6d129d7
diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.ymlindex cbe35f615bf..08014cf2cad 100644--- a/.github/workflows/opencode.yml+++ b/.github/workflows/opencode.yml@@ -8,22 +8,20 @@ jobs:opencode:if: |contains(github.event.comment.body, ' /oc') ||- startsWith(github.event.comment.body, '/oc') ||- contains(github.event.comment.body, ' /opencode') ||- startsWith(github.event.comment.body, '/opencode')+ contains(github.event.comment.body, ' /opencode')runs-on: ubuntu-latestpermissions:- contents: readid-token: write+ contents: read+ pull-requests: read+ issues: readsteps:- name: Checkout repositoryuses: actions/checkout@v4- with:- fetch-depth: 1- name: Run opencodeuses: sst/opencode/github@latestenv:- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}+ OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}with:- model: anthropic/claude-sonnet-4-20250514+ model: opencode/sonic\ No newline at end of file