{
  "title": "Install Ollama, then pull a model:",
  "content": "ollama pull llama3.3\njson5 theme={null}\n{\n  agents: {\n    defaults: { model: { primary: \"ollama/llama3.3\" } },\n  },\n}\njson5 theme={null}\n{\n  agents: {\n    defaults: {\n      model: { primary: \"lmstudio/minimax-m2.1-gs32\" },\n      models: { \"lmstudio/minimax-m2.1-gs32\": { alias: \"Minimax\" } },\n    },\n  },\n  models: {\n    providers: {\n      lmstudio: {\n        baseUrl: \"http://localhost:1234/v1\",\n        apiKey: \"LMSTUDIO_KEY\",\n        api: \"openai-completions\",\n        models: [\n          {\n            id: \"minimax-m2.1-gs32\",\n            name: \"MiniMax M2.1\",\n            reasoning: false,\n            input: [\"text\"],\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n            contextWindow: 200000,\n            maxTokens: 8192,\n          },\n        ],\n      },\n    },\n  },\n}\nbash theme={null}\nopenclaw onboard --auth-choice opencode-zen\nopenclaw models set opencode/claude-opus-4-5\nopenclaw models list\n```\n\nSee also: [/gateway/configuration](/gateway/configuration) for full configuration examples.",
  "code_samples": [
    {
      "code": "",
      "language": "unknown"
    },
    {
      "code": "Ollama is automatically detected when running locally at `http://127.0.0.1:11434/v1`. See [/providers/ollama](/providers/ollama) for model recommendations and custom configuration.\n\n### Local proxies (LM Studio, vLLM, LiteLLM, etc.)\n\nExample (OpenAI‑compatible):",
      "language": "unknown"
    },
    {
      "code": "Notes:\n\n* For custom providers, `reasoning`, `input`, `cost`, `contextWindow`, and `maxTokens` are optional.\n  When omitted, OpenClaw defaults to:\n  * `reasoning: false`\n  * `input: [\"text\"]`\n  * `cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }`\n  * `contextWindow: 200000`\n  * `maxTokens: 8192`\n* Recommended: set explicit values that match your proxy/model limits.\n\n## CLI examples",
      "language": "unknown"
    }
  ],
  "headings": [
    {
      "level": "h3",
      "text": "Local proxies (LM Studio, vLLM, LiteLLM, etc.)",
      "id": "local-proxies-(lm-studio,-vllm,-litellm,-etc.)"
    },
    {
      "level": "h2",
      "text": "CLI examples",
      "id": "cli-examples"
    }
  ],
  "url": "llms-txt#install-ollama,-then-pull-a-model:",
  "links": []
}