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
Bug: Error: invalid_scope: Invalid OAuth scope or ID token audience provided.. when using GLM models with Google Vertex #20202
When using GLM models through the Google Vertex provider, users get this error:
Error: invalid_scope: Invalid OAuth scope or ID token audience provided.
This happens because the Google Vertex provider doesn't tell Google which permissions it needs. When it tries to connect to Vertex AI, Google blocks the request because no scopes were specified.
Plugins
None
OpenCode version
1.2.27
Steps to reproduce
Configure the Google Vertex provider in opencode
Try to use a GLM model like glm-4.7 or glm-5 (vertex)
The request fails with Error: invalid_scope: Invalid OAuth scope or ID token audience provided.
Activity
github-actions commentedon Mar 31, 2026
This issue might be a duplicate of existing issues. Please check:
invalid_scope: Invalid OAuth scope or ID token audience provided) caused by missing OAuth scopes in the Google Vertex provider, specifically when using GLM models with service account credentials.github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.