Skip to content

Instantly share code, notes, and snippets.

@rsms
Created April 23, 2026 18:06
Show Gist options
  • Select an option

  • Save rsms/02a7e9dae14ea5e14ccddad0c5a4d277 to your computer and use it in GitHub Desktop.

Select an option

Save rsms/02a7e9dae14ea5e14ccddad0c5a4d277 to your computer and use it in GitHub Desktop.

Local coding agent

pi with Qwen3.6-27B

https://huggingface.co/Qwen/Qwen3.6-27B

$ curl -fsSL https://ollama.com/install.sh | sh
$ ln -s /Applications/Ollama.app/Contents/Resources/ollama ~/bin/ollama
$ ollama pull qwen3.6:27b

Create ~/.pi/agent/models.json:

{
  "providers": {
    "ollama": {
      "baseUrl": "http://localhost:11434/v1",
      "api": "openai-completions",
      "apiKey": "ollama",
      "compat": {
        "supportsDeveloperRole": false,
        "supportsReasoningEffort": false
      },
      "models": [
        {
          "id": "qwen3.6:27b",
          "name": "Qwen3.6 27B (Ollama)",
          "reasoning": true,
          "input": ["text"],
          "contextWindow": 262144,
          "maxTokens": 8192,
          "cost": {
            "input": 0,
            "output": 0,
            "cacheRead": 0,
            "cacheWrite": 0
          }
        }
      ]
    }
  }
}

Start a session:

$ pi --provider ollama --model qwen3.6:27b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment