I get this issue ProviderModelNotFoundError when using GLM or Kimi #8471

Open
opened 2026-02-16 18:10:03 -05:00 by yindo · 3 comments
Owner

Originally created by @skillmaker-dev on GitHub (Feb 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I use this workflow:

name: opencode
on:
  issue_comment:
    types: [created]
  pull_request_review_comment:
    types: [created]

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

      - name: Run OpenCode
        uses: anomalyco/opencode/github@latest
        env:
          ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          model: zai-coding-plan/glm-4.7-flash

I also added the key to Github secrets.

I tried replacing ZAI_API_KEY with ANTHROPIC_API_KEY as shown in the docs but still nothing, I got the provider name from opencode models --refresh

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @skillmaker-dev on GitHub (Feb 3, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I use this workflow: ```yaml name: opencode on: issue_comment: types: [created] pull_request_review_comment: types: [created] jobs: opencode: if: | contains(github.event.comment.body, '/oc') || contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: contents: read id-token: write issues: write pull-requests: write steps: - name: Checkout repository uses: actions/checkout@v6 with: fetch-depth: 1 persist-credentials: false - name: Run OpenCode uses: anomalyco/opencode/github@latest env: ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: model: zai-coding-plan/glm-4.7-flash ``` I also added the key to Github secrets. I tried replacing ZAI_API_KEY with ANTHROPIC_API_KEY as shown in the docs but still nothing, I got the provider name from `opencode models --refresh` ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:10:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

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

  • #7958: ProviderModelNotFoundError for custom provider in GitHub Action (worked until 07 Jan) - Also involves ZhipuAI/GLM custom provider setup in GitHub Actions
  • #6493: OpenAI provider fails: gpt-5-nano missing from models.dev registry causes ProviderModelNotFoundError - Related to model registry and provider configuration
  • #8587: OpenCode Zen GPT-5.2 Codex install model fails (ProviderModelNotFoundError) - Model resolution issue in GitHub Actions

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

@github-actions[bot] commented on GitHub (Feb 3, 2026): This issue might be a duplicate of existing issues. Please check: - #7958: ProviderModelNotFoundError for custom provider in GitHub Action (worked until 07 Jan) - Also involves ZhipuAI/GLM custom provider setup in GitHub Actions - #6493: OpenAI provider fails: gpt-5-nano missing from models.dev registry causes ProviderModelNotFoundError - Related to model registry and provider configuration - #8587: OpenCode Zen GPT-5.2 Codex install model fails (ProviderModelNotFoundError) - Model resolution issue in GitHub Actions Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Feb 4, 2026):

zai coding plan needs ZHIPU_API_KEY

@rekram1-node commented on GitHub (Feb 4, 2026): zai coding plan needs `ZHIPU_API_KEY`
Author
Owner

@skillmaker-dev commented on GitHub (Feb 4, 2026):

@rekram1-node that was it, thanks, is there a way to know these key names when doing a manual installation?

@skillmaker-dev commented on GitHub (Feb 4, 2026): @rekram1-node that was it, thanks, is there a way to know these key names when doing a manual installation?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8471