model managed by env vars and plan support #1706

Closed
opened 2026-02-16 17:32:16 -05:00 by yindo · 4 comments
Owner

Originally created by @notlousybook on GitHub (Sep 13, 2025).

Originally assigned to: @fwang on GitHub.

Make the model field be changed with a "OC_MODEL" value in the vars, (not secrets), to support changing models without recommitting changes

(Not sure if this exists, i couldn't check it since it's already broken) And add plan support to the github actions to propose a plan with a todo list as a comment and other plan details, and once we approve begin the implementation, modifying the todo, and making the pr as before, and y'know

Originally created by @notlousybook on GitHub (Sep 13, 2025). Originally assigned to: @fwang on GitHub. Make the model field be changed with a "OC_MODEL" value in the vars, (not secrets), to support changing models without recommitting changes (Not sure if this exists, i couldn't check it since it's already broken) And add plan support to the github actions to propose a plan with a todo list as a comment and other plan details, and once we approve begin the implementation, modifying the todo, and making the pr as before, and y'know
yindo closed this issue 2026-02-16 17:32:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2579: Both request model management via OC_MODEL environment variable and GitHub Actions enhancements for plan support

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 13, 2025): This issue might be a duplicate of existing issues. Please check: - #2579: Both request model management via OC_MODEL environment variable and GitHub Actions enhancements for plan support Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 13, 2025):

I noticed gh action is broken but for changing the model couldn't you do:

name: opencode

on:
  issue_comment:
    types: [created]

jobs:
  opencode:
    if: |
      contains(github.event.comment.body, ' /oc') ||
      contains(github.event.comment.body, ' /opencode')
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: read
      pull-requests: read
      issues: read
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Run opencode
        uses: sst/opencode/github@latest
        env:
          OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
        with:
          model: ${{ vars.OC_MODEL }} 
@rekram1-node commented on GitHub (Sep 13, 2025): I noticed gh action is broken but for changing the model couldn't you do: ``` name: opencode on: issue_comment: types: [created] jobs: opencode: if: | contains(github.event.comment.body, ' /oc') || contains(github.event.comment.body, ' /opencode') runs-on: ubuntu-latest permissions: id-token: write contents: read pull-requests: read issues: read steps: - name: Checkout repository uses: actions/checkout@v4 - name: Run opencode uses: sst/opencode/github@latest env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} with: model: ${{ vars.OC_MODEL }} ```
Author
Owner

@notlousybook commented on GitHub (Sep 14, 2025):

@rekram1-node i want it to be officially supported

@notlousybook commented on GitHub (Sep 14, 2025): @rekram1-node i want it to be officially supported
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1706