Skip to content

Instantly share code, notes, and snippets.

@Pyr0zen
Created February 18, 2026 14:08
Show Gist options
  • Select an option

  • Save Pyr0zen/bfba123f0bca05c2b945c76cf731e3ea to your computer and use it in GitHub Desktop.

Select an option

Save Pyr0zen/bfba123f0bca05c2b945c76cf731e3ea to your computer and use it in GitHub Desktop.
ZeroClaw_Ollama_Setup.md

ZeroClaw + Ollama: Full Setup Guide

Repo: https://github.com/theonlyhennygod/zeroclaw


Step 1: Update Your System

sudo apt update && sudo apt upgrade -y

Step 2: Install Dependencies

sudo apt install -y build-essential curl git

Step 3: Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Choose option 1 (standard installation) when prompted.


Step 4: Load Rust Into Your Shell

source "$HOME/.cargo/env"

Step 5: Install Ollama

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

Step 6: Start Ollama

systemctl start ollama

Step 7: Pull a Model

ollama pull glm4:9b

This model is ~5.5 GB. If you have limited RAM and no GPU, use qwen2.5:3b instead (and swap the model name in Step 11).


Step 8: Clone the ZeroClaw Repo

git clone https://github.com/theonlyhennygod/zeroclaw.git
cd zeroclaw

Step 9: Build ZeroClaw

cargo build --release

Step 10: Install ZeroClaw Globally

cargo install --path .

Step 11: Run the Onboarding

cd ~
zeroclaw onboard

This auto-generates the config at ~/.zeroclaw/config.toml with default settings.


Step 12: Replace the Config with Ollama Settings

sed -i 's|^default_provider = .*|default_provider = "ollama"|' ~/.zeroclaw/config.toml
sed -i 's|^default_model = .*|default_model = "glm4:9b"|' ~/.zeroclaw/config.toml
sed -i 's|^api_key = .*|api_key = ""|' ~/.zeroclaw/config.toml

If you pulled a different model in Step 7, replace glm4:9b with your model name.


Step 13: Connect Telegram

zeroclaw onboard --channels-only

Follow the prompts:

  1. Select Telegram → Enter
  2. Go to Telegram, find @BotFather, send /newbot, create your bot, and copy the bot token
  3. Paste your bot token → Enter
  4. For allowed identities, enter * (allows all users) or your Telegram username without @ → Enter
  5. Select Done to finish

Step 14: Start the Daemon

zeroclaw daemon

This starts everything: gateway, Telegram, memory, and scheduler. Your bot should now respond to messages on Telegram.

@KabareGicharu
Copy link

hi Pyr0zen, followed your guide to a T using qwen2.5:3b
i have created the telegram bot
shared api and user
but im not seeing any messages returned .. how do i proceed (#freeclawing)
Screenshot from 2026-03-05 08-29-07

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