fakesamgregory

OpenClaw - Ollama/LM Studio Settings

Jan 27th, 2026 (edited)
2,612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.70 KB | None | 0 0
  1. ///
  2. Do not copy and paste this file, pick what bits you need and replace.
  3. ////
  4.  
  5.  
  6. // Setup providers
  7. ...
  8. "models": {
  9.     "providers": {
  10.         "ollama": {
  11.             "baseUrl": "http://127.0.0.1:11434",
  12.             "api": "openai-completions",
  13.             "models": [
  14.                 {
  15.                     "id": "glm-4.7-flash",
  16.                     "name": "GLM-4.7 Flash (Local)",
  17.                     "reasoning": false,
  18.                     "input": [
  19.                         "text"
  20.                     ],
  21.                     "cost": {
  22.                         "input": 0,
  23.                         "output":0,
  24.                         "cacheRead": 0,
  25.                         "cacheWrite": 0
  26.                     },
  27.                     "contextWindow": 200000,
  28.                     "maxTokens": 8192
  29.                 },
  30.                 {
  31.                     id: "minimax-m2.5:cloud",
  32.                     name: "MiniMax M2.5",
  33.                     reasoning: false,
  34.                     input: [
  35.                         "text"
  36.                     ],
  37.                     cost: {
  38.                         input: 0,
  39.                         output: 0,
  40.                         cacheRead: 0,
  41.                         cacheWrite: 0
  42.                     },
  43.                     contextWindow: 196608,
  44.                     maxTokens: 8192,
  45.                }
  46.             ]
  47.         },
  48.         lmstudio: {
  49.             baseUrl: "http://127.0.0.1:1234/v1",
  50.             apiKey: "lmstudio",
  51.             api: "openai-responses",
  52.             models: [
  53.               {
  54.                 id: "minimax-m2.1-gs32",
  55.                 name: "MiniMax M2.1 GS32",
  56.                 reasoning: false,
  57.                 input: ["text"],
  58.                 cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
  59.                 contextWindow: 196608,
  60.                 maxTokens: 8192,
  61.              }
  62.           ]
  63.         }
  64.     }
  65. }
  66. ...
  67.  
  68. // setup models agents
  69. ...
  70. "agents": {
  71.     "defaults": {
  72.         "model": {
  73.             "primary": "ollama/minimax-m2.5:cloud"
  74.         },
  75.         "models": {
  76.             "lmstudio/minimax-m2.1-gs32": {
  77.                 "alias": "LM Studio Minimax"
  78.             },
  79.             "ollama/minimax-m2.5:cloud": {
  80.                 "alias": "Ollama MiniMax"
  81.             }
  82.         }
  83.     }
  84. }
  85. ...
Advertisement
Add Comment
Please, Sign In to add comment