Skip to content

Cerebras models no longer found by opencodeΒ #10356

Closed as not planned
Closed as not planned

Description

@randomm

Description

Suddenly today my opencode can no longer use cerebras. See below:

opencode on 🌱claude/simplify-agen. [$!?]
❯ opencode upgrade

Β  β–„
β–ˆβ–€β–€β–ˆ β–ˆβ–€β–€β–ˆ β–ˆβ–€β–€β–ˆ β–ˆβ–€β–€β–„ β–ˆβ–€β–€β–€ β–ˆβ–€β–€β–ˆ β–ˆβ–€β–€β–ˆ β–ˆβ–€β–€β–ˆ
β–ˆβ–‘β–‘β–ˆ β–ˆβ–‘β–‘β–ˆ β–ˆβ–€β–€β–€ β–ˆβ–‘β–‘β–ˆ β–ˆβ–‘β–‘β–‘ β–ˆβ–‘β–‘β–ˆ β–ˆβ–‘β–‘β–ˆ β–ˆβ–€β–€β–€
β–€β–€β–€β–€ β–ˆβ–€β–€β–€ β–€β–€β–€β–€ β–€ β–€ β–€β–€β–€β–€ β–€β–€β–€β–€ β–€β–€β–€β–€ β–€β–€β–€β–€

β”Œ Upgrade
β”‚
● Using method: curl
β”‚
● From 1.1.29 β†’ 1.1.34
β”‚
β—‡ Upgrade complete
β”‚
β”” Done

opencode on 🌱claude/simplify-agen. [$!?]
❯ opencode models | grep cerebras

opencode on 🌱claude/simplify-agen. [$!?]
❯ opencode models
opencode/big-pickle
opencode/gpt-5-nano
amazon-bedrock/ai21.jamba-1-5-large-v1:0
amazon-bedrock/ai21.jamba-1-5-mini-v1:0
amazon-bedrock/amazon.nova-2-lite-v1:0
amazon-bedrock/amazon.nova-lite-v1:0
amazon-bedrock/amazon.nova-micro-v1:0
amazon-bedrock/amazon.nova-premier-v1:0
amazon-bedrock/amazon.nova-pro-v1:0
amazon-bedrock/amazon.titan-text-express-v1
amazon-bedrock/amazon.titan-text-express-v1:0:8k
amazon-bedrock/anthropic.claude-3-5-haiku-20241022-v1:0
amazon-bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0
amazon-bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0
amazon-bedrock/anthropic.claude-3-7-sonnet-20250219-v1:0
amazon-bedrock/anthropic.claude-3-haiku-20240307-v1:0
amazon-bedrock/anthropic.claude-3-opus-20240229-v1:0
amazon-bedrock/anthropic.claude-3-sonnet-20240229-v1:0
amazon-bedrock/anthropic.claude-haiku-4-5-20251001-v1:0
amazon-bedrock/anthropic.claude-instant-v1
amazon-bedrock/anthropic.claude-opus-4-1-20250805-v1:0
amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0
amazon-bedrock/anthropic.claude-opus-4-5-20251101-v1:0
amazon-bedrock/anthropic.claude-sonnet-4-20250514-v1:0
amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0
amazon-bedrock/anthropic.claude-v2
amazon-bedrock/anthropic.claude-v2:1
amazon-bedrock/cohere.command-light-text-v14
amazon-bedrock/cohere.command-r-plus-v1:0
amazon-bedrock/cohere.command-r-v1:0
amazon-bedrock/cohere.command-text-v14
amazon-bedrock/deepseek.r1-v1:0
amazon-bedrock/deepseek.v3-v1:0
amazon-bedrock/global.anthropic.claude-opus-4-5-20251101-v1:0
amazon-bedrock/google.gemma-3-12b-it
amazon-bedrock/google.gemma-3-27b-it
amazon-bedrock/google.gemma-3-4b-it
amazon-bedrock/meta.llama3-1-70b-instruct-v1:0
amazon-bedrock/meta.llama3-1-8b-instruct-v1:0
amazon-bedrock/meta.llama3-2-11b-instruct-v1:0
amazon-bedrock/meta.llama3-2-1b-instruct-v1:0
amazon-bedrock/meta.llama3-2-3b-instruct-v1:0
amazon-bedrock/meta.llama3-2-90b-instruct-v1:0
amazon-bedrock/meta.llama3-3-70b-instruct-v1:0
amazon-bedrock/meta.llama3-70b-instruct-v1:0
amazon-bedrock/meta.llama3-8b-instruct-v1:0
amazon-bedrock/meta.llama4-maverick-17b-instruct-v1:0
amazon-bedrock/meta.llama4-scout-17b-instruct-v1:0
amazon-bedrock/minimax.minimax-m2
amazon-bedrock/mistral.ministral-3-14b-instruct
amazon-bedrock/mistral.ministral-3-8b-instruct
amazon-bedrock/mistral.mistral-7b-instruct-v0:2
amazon-bedrock/mistral.mistral-large-2402-v1:0
amazon-bedrock/mistral.mixtral-8x7b-instruct-v0:1
amazon-bedrock/mistral.voxtral-mini-3b-2507
amazon-bedrock/mistral.voxtral-small-24b-2507
amazon-bedrock/moonshot.kimi-k2-thinking
amazon-bedrock/nvidia.nemotron-nano-12b-v2
amazon-bedrock/nvidia.nemotron-nano-9b-v2
amazon-bedrock/openai.gpt-oss-120b-1:0
amazon-bedrock/openai.gpt-oss-20b-1:0
amazon-bedrock/openai.gpt-oss-safeguard-120b
amazon-bedrock/openai.gpt-oss-safeguard-20b
amazon-bedrock/qwen.qwen3-235b-a22b-2507-v1:0
amazon-bedrock/qwen.qwen3-32b-v1:0
amazon-bedrock/qwen.qwen3-coder-30b-a3b-v1:0
amazon-bedrock/qwen.qwen3-coder-480b-a35b-v1:0
amazon-bedrock/qwen.qwen3-next-80b-a3b
amazon-bedrock/qwen.qwen3-vl-235b-a22b
anthropic/claude-3-5-haiku-20241022
anthropic/claude-3-5-haiku-latest
anthropic/claude-3-5-sonnet-20240620
anthropic/claude-3-5-sonnet-20241022
anthropic/claude-3-7-sonnet-20250219
anthropic/claude-3-7-sonnet-latest
anthropic/claude-3-haiku-20240307
anthropic/claude-3-opus-20240229
anthropic/claude-3-sonnet-20240229
anthropic/claude-haiku-4-5
anthropic/claude-haiku-4-5-20251001
anthropic/claude-opus-4-0
anthropic/claude-opus-4-1
anthropic/claude-opus-4-1-20250805
anthropic/claude-opus-4-20250514
anthropic/claude-opus-4-5
anthropic/claude-opus-4-5-20251101
anthropic/claude-sonnet-4-0
anthropic/claude-sonnet-4-20250514
anthropic/claude-sonnet-4-5
anthropic/claude-sonnet-4-5-20250929
gitlab/duo-chat-gpt-5-1
gitlab/duo-chat-gpt-5-2-codex
gitlab/duo-chat-gpt-5-codex
gitlab/duo-chat-gpt-5-mini
gitlab/duo-chat-haiku-4-5
gitlab/duo-chat-opus-4-5
gitlab/duo-chat-sonnet-4-5
google/gemini-1.5-flash
google/gemini-1.5-flash-8b
google/gemini-1.5-pro
google/gemini-2.0-flash
google/gemini-2.0-flash-lite
google/gemini-2.5-flash
google/gemini-2.5-flash-image
google/gemini-2.5-flash-image-preview
google/gemini-2.5-flash-lite
google/gemini-2.5-flash-lite-preview-06-17
google/gemini-2.5-flash-lite-preview-09-2025
google/gemini-2.5-flash-preview-04-17
google/gemini-2.5-flash-preview-05-20
google/gemini-2.5-flash-preview-09-2025
google/gemini-2.5-flash-preview-tts
google/gemini-2.5-pro
google/gemini-2.5-pro-preview-05-06
google/gemini-2.5-pro-preview-06-05
google/gemini-2.5-pro-preview-tts
google/gemini-3-flash-preview
google/gemini-3-pro-preview
google/gemini-embedding-001
google/gemini-flash-latest
google/gemini-flash-lite-latest
google/gemini-live-2.5-flash
google/gemini-live-2.5-flash-preview-native-audio
openai/codex-mini-latest
openai/gpt-3.5-turbo
openai/gpt-4
openai/gpt-4-turbo
openai/gpt-4.1
openai/gpt-4.1-mini
openai/gpt-4.1-nano
openai/gpt-4o
openai/gpt-4o-2024-05-13
openai/gpt-4o-2024-08-06
openai/gpt-4o-2024-11-20
openai/gpt-4o-mini
openai/gpt-5
openai/gpt-5-codex
openai/gpt-5-mini
openai/gpt-5-nano
openai/gpt-5-pro
openai/gpt-5.1
openai/gpt-5.1-chat-latest
openai/gpt-5.1-codex
openai/gpt-5.1-codex-max
openai/gpt-5.1-codex-mini
openai/gpt-5.2
openai/gpt-5.2-chat-latest
openai/gpt-5.2-codex
openai/gpt-5.2-pro
openai/o1
openai/o1-mini
openai/o1-preview
openai/o1-pro
openai/o3
openai/o3-deep-research
openai/o3-mini
openai/o3-pro
openai/o4-mini
openai/o4-mini-deep-research
openai/text-embedding-3-large
openai/text-embedding-3-small
openai/text-embedding-ada-002
openrouter/anthropic/claude-3.5-haiku
openrouter/anthropic/claude-3.7-sonnet
openrouter/anthropic/claude-haiku-4.5
openrouter/anthropic/claude-opus-4
openrouter/anthropic/claude-opus-4.1
openrouter/anthropic/claude-opus-4.5
openrouter/anthropic/claude-sonnet-4
openrouter/anthropic/claude-sonnet-4.5
openrouter/cognitivecomputations/dolphin3.0-mistral-24b
openrouter/cognitivecomputations/dolphin3.0-r1-mistral-24b
openrouter/deepseek/deepseek-chat-v3-0324
openrouter/deepseek/deepseek-chat-v3.1
openrouter/deepseek/deepseek-r1-0528-qwen3-8b:free
openrouter/deepseek/deepseek-r1-0528:free
openrouter/deepseek/deepseek-r1-distill-llama-70b
openrouter/deepseek/deepseek-r1-distill-qwen-14b
openrouter/deepseek/deepseek-r1:free
openrouter/deepseek/deepseek-v3-base:free
openrouter/deepseek/deepseek-v3.1-terminus
openrouter/deepseek/deepseek-v3.1-terminus:exacto
openrouter/deepseek/deepseek-v3.2
openrouter/deepseek/deepseek-v3.2-speciale
openrouter/featherless/qwerky-72b
openrouter/google/gemini-2.0-flash-001
openrouter/google/gemini-2.0-flash-exp:free
openrouter/google/gemini-2.5-flash
openrouter/google/gemini-2.5-flash-lite
openrouter/google/gemini-2.5-flash-lite-preview-09-2025
openrouter/google/gemini-2.5-flash-preview-09-2025
openrouter/google/gemini-2.5-pro
openrouter/google/gemini-2.5-pro-preview-05-06
openrouter/google/gemini-2.5-pro-preview-06-05
openrouter/google/gemini-3-flash-preview
openrouter/google/gemini-3-pro-preview
openrouter/google/gemma-2-9b-it:free
openrouter/google/gemma-3-12b-it
openrouter/google/gemma-3-27b-it
openrouter/google/gemma-3n-e4b-it
openrouter/google/gemma-3n-e4b-it:free
openrouter/kwaipilot/kat-coder-pro:free
openrouter/meta-llama/llama-3.2-11b-vision-instruct
openrouter/meta-llama/llama-3.3-70b-instruct:free
openrouter/meta-llama/llama-4-scout:free
openrouter/microsoft/mai-ds-r1:free
openrouter/minimax/minimax-01
openrouter/minimax/minimax-m1
openrouter/minimax/minimax-m2
openrouter/minimax/minimax-m2.1
openrouter/mistralai/codestral-2508
openrouter/mistralai/devstral-2512
openrouter/mistralai/devstral-2512:free
openrouter/mistralai/devstral-medium-2507
openrouter/mistralai/devstral-small-2505
openrouter/mistralai/devstral-small-2505:free
openrouter/mistralai/devstral-small-2507
openrouter/mistralai/mistral-7b-instruct:free
openrouter/mistralai/mistral-medium-3
openrouter/mistralai/mistral-medium-3.1
openrouter/mistralai/mistral-nemo:free
openrouter/mistralai/mistral-small-3.1-24b-instruct
openrouter/mistralai/mistral-small-3.2-24b-instruct
openrouter/mistralai/mistral-small-3.2-24b-instruct:free
openrouter/moonshotai/kimi-dev-72b:free
openrouter/moonshotai/kimi-k2
openrouter/moonshotai/kimi-k2-0905
openrouter/moonshotai/kimi-k2-0905:exacto
openrouter/moonshotai/kimi-k2-thinking
openrouter/moonshotai/kimi-k2:free
openrouter/nousresearch/deephermes-3-llama-3-8b-preview
openrouter/nousresearch/hermes-4-405b
openrouter/nousresearch/hermes-4-70b
openrouter/nvidia/nemotron-nano-9b-v2
openrouter/openai/gpt-4.1
openrouter/openai/gpt-4.1-mini
openrouter/openai/gpt-4o-mini
openrouter/openai/gpt-5
openrouter/openai/gpt-5-codex
openrouter/openai/gpt-5-image
openrouter/openai/gpt-5-mini
openrouter/openai/gpt-5-nano
openrouter/openai/gpt-5-pro
openrouter/openai/gpt-5.1
openrouter/openai/gpt-5.1-chat
openrouter/openai/gpt-5.1-codex
openrouter/openai/gpt-5.1-codex-max
openrouter/openai/gpt-5.1-codex-mini
openrouter/openai/gpt-5.2
openrouter/openai/gpt-5.2-chat-latest
openrouter/openai/gpt-5.2-codex
openrouter/openai/gpt-5.2-pro
openrouter/openai/gpt-oss-120b
openrouter/openai/gpt-oss-120b:exacto
openrouter/openai/gpt-oss-20b
openrouter/openai/gpt-oss-safeguard-20b
openrouter/openai/o4-mini
openrouter/openrouter/sherlock-dash-alpha
openrouter/openrouter/sherlock-think-alpha
openrouter/qwen/qwen-2.5-coder-32b-instruct
openrouter/qwen/qwen2.5-vl-32b-instruct:free
openrouter/qwen/qwen2.5-vl-72b-instruct
openrouter/qwen/qwen2.5-vl-72b-instruct:free
openrouter/qwen/qwen3-14b:free
openrouter/qwen/qwen3-235b-a22b-07-25
openrouter/qwen/qwen3-235b-a22b-07-25:free
openrouter/qwen/qwen3-235b-a22b-thinking-2507
openrouter/qwen/qwen3-235b-a22b:free
openrouter/qwen/qwen3-30b-a3b-instruct-2507
openrouter/qwen/qwen3-30b-a3b-thinking-2507
openrouter/qwen/qwen3-30b-a3b:free
openrouter/qwen/qwen3-32b:free
openrouter/qwen/qwen3-8b:free
openrouter/qwen/qwen3-coder
openrouter/qwen/qwen3-coder-30b-a3b-instruct
openrouter/qwen/qwen3-coder-flash
openrouter/qwen/qwen3-coder:exacto
openrouter/qwen/qwen3-coder:free
openrouter/qwen/qwen3-max
openrouter/qwen/qwen3-next-80b-a3b-instruct
openrouter/qwen/qwen3-next-80b-a3b-thinking
openrouter/qwen/qwq-32b:free
openrouter/rekaai/reka-flash-3
openrouter/sarvamai/sarvam-m:free
openrouter/thudm/glm-z1-32b:free
openrouter/tngtech/deepseek-r1t2-chimera:free
openrouter/x-ai/grok-3
openrouter/x-ai/grok-3-beta
openrouter/x-ai/grok-3-mini
openrouter/x-ai/grok-3-mini-beta
openrouter/x-ai/grok-4
openrouter/x-ai/grok-4-fast
openrouter/x-ai/grok-4.1-fast
openrouter/x-ai/grok-code-fast-1
openrouter/z-ai/glm-4.5
openrouter/z-ai/glm-4.5-air
openrouter/z-ai/glm-4.5-air:free
openrouter/z-ai/glm-4.5v
openrouter/z-ai/glm-4.6
openrouter/z-ai/glm-4.6:exacto
openrouter/z-ai/glm-4.7
perplexity/sonar
perplexity/sonar-pro
perplexity/sonar-reasoning-pro
synthetic/hf:deepseek-ai/DeepSeek-R1
synthetic/hf:deepseek-ai/DeepSeek-R1-0528
synthetic/hf:deepseek-ai/DeepSeek-V3
synthetic/hf:deepseek-ai/DeepSeek-V3-0324
synthetic/hf:deepseek-ai/DeepSeek-V3.1
synthetic/hf:deepseek-ai/DeepSeek-V3.1-Terminus
synthetic/hf:deepseek-ai/DeepSeek-V3.2
synthetic/hf:meta-llama/Llama-3.1-405B-Instruct
synthetic/hf:meta-llama/Llama-3.1-70B-Instruct
synthetic/hf:meta-llama/Llama-3.1-8B-Instruct
synthetic/hf:meta-llama/Llama-3.3-70B-Instruct
synthetic/hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
synthetic/hf:meta-llama/Llama-4-Scout-17B-16E-Instruct
synthetic/hf:MiniMaxAI/MiniMax-M2
synthetic/hf:MiniMaxAI/MiniMax-M2.1
synthetic/hf:moonshotai/Kimi-K2-Instruct-0905
synthetic/hf:moonshotai/Kimi-K2-Thinking
synthetic/hf:openai/gpt-oss-120b
synthetic/hf:Qwen/Qwen2.5-Coder-32B-Instruct
synthetic/hf:Qwen/Qwen3-235B-A22B-Instruct-2507
synthetic/hf:Qwen/Qwen3-235B-A22B-Thinking-2507
synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct
synthetic/hf:zai-org/GLM-4.5
synthetic/hf:zai-org/GLM-4.6
synthetic/hf:zai-org/GLM-4.7

...........

I verified that in models.dev cerebras models are there, but not through opencode.

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

Activity

  1. github-actions commented on Jan 24, 2026

    @github-actions
    Contributor

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

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

  2. randomm commented on Jan 24, 2026

    @randomm
    Author

    My opencode tells me this might be the problem:

    Research Complete: Missing Cerebras in opencode models Output
    Root Cause Identified βœ…
    Cerebras is deliberately hidden from the opencode models output because it has autoload: false in the CUSTOM_LOADERS configuration.
    How opencode models Works

    1. Data Source: The command fetches available models from https://models.dev/api.json (via ModelsDev provider)
    2. Filtering Logic (in /packages/opencode/src/provider/provider.ts):
      • The Provider.list() function calls state() which builds the provider database
      • Each provider goes through a CUSTOM_LOADERS check
      • Key condition: A provider is only included if result.autoload === true OR the provider is already explicitly in the config
      • The code: if (result && (result.autoload || providers[providerID]))
        Why Cerebras is Missing
        The CUSTOM_LOADERS for cerebras in provider.ts lines ~360-370:
        cerebras: async () => {
        return {
        autoload: false, // ← THIS IS THE PROBLEM
        options: {
        headers: {
        "X-Cerebras-3rd-Party-Integration": "opencode",
        },
        },
        }
        }
        This means:
    • βœ… Cerebras IS in models.dev
    • βœ… Cerebras SDK IS bundled (@ai-sdk/cerebras)
    • βœ… Cerebras HAS a custom loader configured
    • ❌ But autoload: false causes it to be filtered out UNLESS explicitly added to config
      Comparison with Other Providers
      Providers that DO appear in opencode models have autoload: true:
    • amazon-bedrock: autoload: true (when AWS credentials detected)
    • google-vertex: autoload: true (when GCP_PROJECT env var set)
      Providers that DON'T appear have autoload: false:
    • cerebras: autoload: false
    • openai: autoload: false
    • openrouter: autoload: false
    • azure: autoload: false
      Why This Design?
      This is intentional filtering, not a bug:
    • Providers with autoload: false require explicit API keys or configuration
    • They're only shown in the models list if explicitly enabled in opencode.json
    • This reduces clutter for users who don't have credentials for every provider
      Solution Options
      To show Cerebras models, you need to explicitly add it to your config:
      Edit /Users/janni/.config/opencode/opencode.work.json:
      {
      provider: {
      cerebras: {
      models: {}
      }
      }
      }
      Or add it to enabled_providers:
      {
      enabled_providers: [anthropic, openai, cerebras]
      }
      Summary
    • Root Cause: autoload: false in CUSTOM_LOADERS configuration
    • Why it's filtered: By design - only autoload providers are shown without explicit config
    • Fix: Add cerebras to your opencode.json provider config with API key
    • The "bug": Arguably, the UX is confusing - users expect to see providers that exist in models.dev without needing to know about the autoload mechanism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions