#Unable to set lmstudio local model as primary

1 messages ยท Page 1 of 1 (latest)

tired summit
#

My config looks like this:
"agents": {
"defaults": {
"model": {
"primary": "lmstudio/qwen3-4b-thinking-2507",
"fallbacks": [
"google/gemini-3-flash-preview",
"lmstudio/qwen3-4b-thinking-2507"
]
},
"models": {
"providers": {},
"google/gemini-3-flash-preview": {
"alias": "gemini-flash"
},
"openai-codex/gpt-5.1-codex-mini": {},
"openai-codex/gpt-5.2-codex": {},
"opencode/claude-opus-4-5": {
"alias": "Opus"
},
"opencode/glm-4.7-free": {}
},

I get the error - Error: Unknown model: lmstudio/qwen3-4b-thinking-2507

spiral forgeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

fluid nimbusBOT
# tired summit My config looks like this: "agents": { "defaults": { "model": { ...

This is a configuration structure issue! ๐ŸŽฏ

The problem: You're referencing lmstudio/qwen3-4b-thinking-2507 in model.primary, but you haven't defined it in the models object. Clawdbot needs models to be explicitly declared there.

Fix your config like this:

"agents": {
  "defaults": {
    "model": {
      "primary": "lmstudio/qwen3-4b-thinking-2507",
      "fallbacks": [
        "google/gemini-3-flash-preview"
      ]
    },
    "models": {
#
      "providers": {
        "lmstudio": {
          "host": "http://localhost:1234"
        }
      },
      "google/gemini-3-flash-preview": {
        "alias": "gemini-flash"
      },
      "openai-codex/gpt-5.1-codex-mini": {},
      "openai-codex/gpt-5.2-codex": {},
      "opencode/claude-opus-4-5": {
        "alias": "Opus"
      },
      "opencode/glm-4.7-free": {},
      "lmstudio/qwen3-4b-thinking-2507": {