You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opencode Github Agent with GitHub Copilot provider Throw AI_APICallError: Bad Request #3287
The most relevant potential duplicates are #678 and #1282 as they both specifically involve GitHub Copilot provider throwing the same AI_APICallError: Bad Request error.
Feel free to ignore if none of these address your specific case.
So, I was just looking into this as well, since the big driver of using opencode for me is more control over the great value of the GitHub copilot pro+ subscription. I'd like to use the same setup within GitHub actions.
Is there any way to store the auth file contents as a secret and reference it in the workflow before using opencode?
Activity
github-actions commentedon Oct 19, 2025
This issue might be a duplicate of existing issues. Please check:
The most relevant potential duplicates are #678 and #1282 as they both specifically involve GitHub Copilot provider throwing the same AI_APICallError: Bad Request error.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 19, 2025
@dgarridoa im fairly certain copilot is oauth only so idk if you can use it in actions easily
ill need to double check but if that is the case we should remove it from the suggestions for github install probs
rothnic commentedon Oct 24, 2025
So, I was just looking into this as well, since the big driver of using opencode for me is more control over the great value of the GitHub copilot pro+ subscription. I'd like to use the same setup within GitHub actions.
Is there any way to store the auth file contents as a secret and reference it in the workflow before using opencode?
rekram1-node commentedon Oct 24, 2025
Idk the lifetime of the refresh token but the auth file is on your local system ~/.local/share/opencode/auth.json
we will probbaly find some way to allow fro this when we have time
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.