Skip to content

How to connect local models? #677

Description

@gitmeatarru

Hello!

I have a question for the developers.:
how to connect local models correctly?

I've tried it before, but every time the Crash interface doubles!

Image deepseek coder i cant select!

to be honest, I'm already tired of fighting with this, when will support for ollama and lm studio come out of the box?

here is my file:

{
  "$schema": "https://charm.land/crush.json",
  "default_provider": "openrouter",
  "providers": {
    "openrouter": {
      "api_key": "sk-123"
    },
	"ollama": {
      "name": "Ollama",
      "base_url": "http://localhost:11434/v1/",
      "type": "openai",
	  "api_key": "ollama",
      "models": [
        {
          "name": "gpt-oss-20b",
          "id": "gpt-oss:latest",
          "context_window": 64000,
          "default_max_tokens": 20000
        },
		{
          "id": "qwen3-coder:latest",
          "name": "qwen3-coder:latest",
          "cost_per_1m_in": 0,
          "cost_per_1m_out": 0,
          "cost_per_1m_in_cached": 0,
          "cost_per_1m_out_cached": 0,
          "context_window": 131072,
          "default_max_tokens": -1,
          "supports_tools": false
        }
      ]
    },
    "lmstudio": {
      "name": "LM Studio",
      "base_url": "http://localhost:1234/v1/",
      "type": "openai",
      "models": [
        {
          "name": "devstral-small-2507",
          "id": "mistralai/devstral-small-2507",
          "context_window": 22222,
          "default_max_tokens": 20000
        },
		{
          "name": "deepseek-coder-v2-lite",
          "id": "deepseek-coder-v2-lite-instruct",
          "context_window": 88888,
          "default_max_tokens": 20000
        }
      ]
    }
  },
  "models": {
    "large": {"model":"gpt-oss:latest","provider":"ollama"},
    "small": {
      "model": "anthropic/claude-3.5-haiku",
      "provider": "openrouter",
      "max_tokens": 4096
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions