Skip to content

Instantly share code, notes, and snippets.

@javiermolinar
Created March 8, 2026 16:40
Show Gist options
  • Select an option

  • Save javiermolinar/05cfcd3eee198fc992f230f3e7ddd794 to your computer and use it in GitHub Desktop.

Select an option

Save javiermolinar/05cfcd3eee198fc992f230f3e7ddd794 to your computer and use it in GitHub Desktop.
How to configure Pi agent with LM Studio and Qwen3.5-35b-a3b
  1. Install LM Studio https://lmstudio.ai
  2. Download https://lmstudio.ai/models/qwen/qwen3.5-35b-a3b
  3. Install Pi npm install -g @mariozechner/pi-coding-agent
  4. Configure PI for LM Studio

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

{
  "providers": {
    "lmstudio": {
      "baseUrl": "http://192.168.0.112:1234/v1",
      "api": "openai-completions",
      "apiKey": "lm-studio",
      "models": [
        { "id": "qwen3.5-35b", "name": "qwen/qwen3.5-35b-a3b"}
      ]
    }
  }
}

Create or modify ~/.pi/agent/settings.json:

{
  "defaultProvider": "lmstudio",
  "defaultModel": "qwen3.5-35b"
}
  1. Run pi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment