ProviderModelNotFoundError when using Kimi K2 model in GitHub workflow #2011

Closed
opened 2026-02-16 17:33:43 -05:00 by yindo · 3 comments
Owner

Originally created by @ChristianPerez34 on GitHub (Oct 8, 2025).

I followed the GitHub app installation instructions
https://opencode.ai/docs/github/ and successfully installed the app using:

opencode github install

Selected configuration:

• Provider: OpenCode Zen
• Model: Kimi K2

The workflow file .github/workflows/opencode.yml was generated and committed. I
also added the OPENCODE_API_KEY secret to the repository settings.

Issue: When commenting /oc summarize on an issue, the workflow fails with:

ProviderModelNotFoundError: ProviderModelNotFoundError data: {
providerID: "opencode",
modelID: "kimi-k2",
}

Expected behavior: The agent should successfully process the command using the
Kimi K2 model.

Originally created by @ChristianPerez34 on GitHub (Oct 8, 2025). I followed the GitHub app installation instructions https://opencode.ai/docs/github/ and successfully installed the app using: opencode github install Selected configuration: • Provider: OpenCode Zen • Model: Kimi K2 The workflow file .github/workflows/opencode.yml was generated and committed. I also added the OPENCODE_API_KEY secret to the repository settings. Issue: When commenting /oc summarize on an issue, the workflow fails with: ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "opencode", modelID: "kimi-k2", } Expected behavior: The agent should successfully process the command using the Kimi K2 model.
yindo closed this issue 2026-02-16 17:33:43 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2025):

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

  • #2931: Same ProviderModelNotFoundError with providerID "opencode" in GitHub workflow, using opencode/code-supernova model
  • #352: Similar ProviderModelNotFoundError pattern with provider model not found errors

The error pattern suggests the issue is with the opencode provider not properly recognizing models in the GitHub Actions environment. Issue #2931 shows the identical error structure and workflow setup.

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

@github-actions[bot] commented on GitHub (Oct 8, 2025): This issue might be a duplicate of existing issues. Please check: - #2931: Same ProviderModelNotFoundError with providerID "opencode" in GitHub workflow, using opencode/code-supernova model - #352: Similar ProviderModelNotFoundError pattern with provider model not found errors The error pattern suggests the issue is with the opencode provider not properly recognizing models in the GitHub Actions environment. Issue #2931 shows the identical error structure and workflow setup. Feel free to ignore if none of these address your specific case.
Author
Owner

@ChristianPerez34 commented on GitHub (Oct 8, 2025):

This workaround seems to be working for now: https://github.com/sst/opencode/issues/2549#issuecomment-3373840335

@ChristianPerez34 commented on GitHub (Oct 8, 2025): This workaround seems to be working for now: https://github.com/sst/opencode/issues/2549#issuecomment-3373840335
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

Closing as duplicate of #2931

@rekram1-node commented on GitHub (Oct 8, 2025): Closing as duplicate of #2931
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2011