Skip to content

Instantly share code, notes, and snippets.

@iam-veeramalla
Created February 15, 2026 11:26
Show Gist options
  • Select an option

  • Save iam-veeramalla/9d10f968038ee76d5bc374b44f0cf8bb to your computer and use it in GitHub Desktop.

Select an option

Save iam-veeramalla/9d10f968038ee76d5bc374b44f0cf8bb to your computer and use it in GitHub Desktop.
openclaw with ollama (Zero cost AI Assistant)

OpenClaw configuration with Ollama

Install OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh

Run a powerful model locally

ollama run gpt-oss:20b

Uninstall OpenClaw (if exists)

openclaw uninstall

Prepare OpenClaw config for Ollama

{
  "models": {
    "providers": {
      "ollama": {
        "baseUrl": "http://localhost:11434/v1",
        "apiKey": "ollama-local",
        "api": "openai-completions",
        "models": [
          {
            "id": "gpt-oss:20b",
            "name": "gpt-oss:20b",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 131072,
            "maxTokens": 8192
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "ollama/gpt-oss:20b"
      },
      "workspace": "/Users/abhi/.openclaw/workspace",
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },
  "tools": {
    "web": {
      "search": {
        "enabled": false
      },
      "fetch": {
        "enabled": true
      }
    }
  }
}

Start OpenClaw

openclaw onboard

Configure it with Telegram (optional)

Steps explained in the video.

@MaxRules

Copy link
Copy Markdown

Build your Personal AI Assistant with complete Free of cost and highest security using OpenClaw, Ollama and Telegram

@be-nirmal

Copy link
Copy Markdown

how to stop and clean the things after performing demo and not required?

@tgifriday

Copy link
Copy Markdown

Steps explained in the video. Where is the video?

@jamesagooding

Copy link
Copy Markdown

@XxCotHGxX

Copy link
Copy Markdown

Didn't the creator of OpenClaw warn against using local models with it on the Lex Friedman podcast? I agree, they are not smart enough to evade all attacks like the frontier models.

@alexdt100

Copy link
Copy Markdown

@XxCotHGxX , what do you mean evade all attacks? Im going to watch that podcast still, but if its only the local installer with prompt access...whats the concern?

@XxCotHGxX

Copy link
Copy Markdown

Prompt injections, for one. Frontier models are hardened against this in training, whilst local models tend to rely more on system prompts,which is less secure.

@netandreus

Copy link
Copy Markdown

Is the quality of local models (like gpt-oss:20b) enough for everyday agent use? I think they are very poor and stupid.

@kapunakap

Copy link
Copy Markdown

Hard coding models disables auto discovery.

https://chatgpt.com/share/69968599-8438-800c-81a6-be7a29fd0240

@harsha-1805

harsha-1805 commented Feb 19, 2026

Copy link
Copy Markdown

i dont think local model like gpt-oss:20b para will work for all the needs like we wont get that experience like all those when we use claude,gpt models but somehow secutity wise its ok but performence wise we need to search alternative on local machines can run.

@lenzsi

lenzsi commented Feb 20, 2026

Copy link
Copy Markdown

Is the quality of local models (like gpt-oss:20b) enough for everyday agent use? I think they are very poor and stupid.

hi, no it sucks.
My Agents always forgets stuff, answers me in different languages and mentions the memory.md all the time

@awiseguy88

Copy link
Copy Markdown

Not hard to add prompt injection defense to local model https://github.com/awiseguy88/openclaw-advanced-prompt-injection-defense-system.git

@arghyadev

Copy link
Copy Markdown

I'm trying to set this up in my Ubuntu OS, but I'm getting the following error after skipping the goal
Error: systemctl is-enabled unavailable: Command failed: systemctl --user is-enabled openclaw-gateway.service

Can anyone help me set this up?

@awiseguy88

awiseguy88 commented Mar 3, 2026 via email

Copy link
Copy Markdown

@Jenifer232000

Copy link
Copy Markdown

The explanation and structure are really helpful for anyone learning these concepts step by step. I also like documenting and revisiting useful resources like this. Sometimes when creating tutorials or blog posts, I even include visuals styled like a vintage photobooth to make the content more engaging and memorable.

@praveennagellipraveen-dot

Copy link
Copy Markdown

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment