AI

Install Rakazo: Self-Hosted Grok Bot Alternative with Ollama

I wanted xAI’s Grok Bot without the parts that bother me. It’s a beta tied to SuperGrok or Cursor subscriptions, it can’t be self-hosted, and every Bot on an account shares one persistent cloud computer. xAI trained Grok 4.7 on the Grok Bot harness, and our Grok 4.7 test results cover that model. Rakazo is the open source project that copies that shape most closely. You get named bots, each with its own chat and computer, on your own box. I spent a day running it on local Ollama models with no cloud key.

Original content from computingforgeeks.com - post 194475

Short version: it works, but not on the box I first gave it, and the small model I started with gave a confident wrong answer. Below is the Docker Compose install, the LAN IP trick for Ollama, HTTPS with certbot, and one agent task timed on two local models. I ran it in November 2026 on box1, an Ubuntu 24.04 LTS VM on Google Cloud, with Rakazo v0.14.0, Docker 29.10 and Ollama 0.40.17. Every Rakazo output comes from that box, and the OpenMausBot attempt from a second VM of the same size.

Seeing what Rakazo runs on one box

Rakazo is not a single container. The published-images install starts five long-running services, plus one-shot containers that prepare the data volume and run migrations:

  • web: the front end on 127.0.0.1:5173
  • api and worker: agent turns and background jobs
  • supervisor: holds the Docker socket and starts bot computers
  • postgres: Postgres 16 with all bots, chats and runs

When a bot needs its computer, the supervisor starts a sibling container from the rakazo/computer image on a network of its own. The model sits outside all of that, and in my case it was Ollama running directly on the host.

Rakazo self-hosted architecture diagram: browser, web, api and worker, Postgres, bot computer containers and Ollama on the LAN IP on one Ubuntu box

The red note in the diagram is the first thing that broke for me. The api and worker containers call the model, so the model URL has to work from inside a container, and 127.0.0.1 in there is the container itself. Bot computers never talk to Ollama at all, which matters later when we get to the egress firewall the installer adds.

Sizing the box before you start

What decides your hardware? The prompt, not Rakazo’s containers. The first request a bot sends is about 10,000 tokens of instructions and tool definitions before your message even shows up, and on CPU every one of those tokens has to be processed before the model writes a word. My first box had 4 vCPU and 16 GB of RAM, which looked fine on paper, and it never finished a single turn.

ResourceWhat I ran (a floor, not a target)What drives it
CPU16 vCPU (n2-standard-16). 4 vCPU timed outPrompt processing speed on a 10k token prompt
RAM64 GB, about 22 GB free with the 30B model loadedModel size plus a 32k context window
Disk60 GB, 20 GB left at the endImages (2.93 GB app, 2.37 GB computer) and models (2.5 GB and 18 GB)
DockerEngine 29.10, Compose v5.8Rakazo needs Engine 26 or newer with the Compose plugin

Most of my wait was prompt processing on CPU, so a GPU should shorten it, though I did not test one. On CPU, 16 vCPU is the floor I would start from for one person and one bot.

Installing Docker Engine and Ollama

Ubuntu’s own docker.io package can lag behind, so I added Docker’s apt repository and installed the Engine with the Compose plugin, then added my user to the docker group:

sudo apt-get update && sudo apt-get install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo $VERSION_CODENAME) stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $USER

Log out and back in so the group change sticks (a new login is the only reliable way), then confirm the Engine is at least 26:

docker version --format "Server: {{.Server.Version}} API {{.Server.APIVersion}}"; docker compose version

Mine reported Engine 29.10 on API 1.57, comfortably past the Engine 26 that Rakazo’s self-host docs ask for:

Server: 29.10.0 API 1.57
Docker Compose version v5.8.0

Ollama goes on the host with its install script. On a VM with no GPU it says so and falls back to CPU, which is what you want to see if you’re following along on a CPU box:

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

Read the last lines of the installer, and notice where it says the API listens:

>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service.
WARNING: No NVIDIA/AMD GPU detected. Ollama will run in CPU-only mode.
>>> The Ollama API is now available at 127.0.0.1:11434.
>>> Install complete. Run "ollama" from the command line.

That 127.0.0.1:11434 is fine for ollama run on the host and useless to Rakazo’s containers. I’ll fix it before Rakazo is even installed, because finding it afterwards cost me an hour.

Opening Ollama to the containers

A systemd drop-in changes the bind address without touching the unit the installer wrote. I also raised the context length, because Rakazo’s first prompt alone was 10,043 tokens, and kept models loaded for an hour so the second message doesn’t pay the load time again.

sudo mkdir -p /etc/systemd/system/ollama.service.d
sudo vim /etc/systemd/system/ollama.service.d/override.conf

Put these three lines in the file:

[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_CONTEXT_LENGTH=32768"
Environment="OLLAMA_KEEP_ALIVE=1h"

Reload systemd, restart Ollama and pull the two models I ended up comparing. Both are Qwen3’s non-thinking Instruct builds, and the reason I didn’t use plain qwen3:4b is in the errors section further down.

sudo systemctl daemon-reload && sudo systemctl restart ollama
ollama pull qwen3:4b-instruct
ollama pull qwen3:30b-instruct
ss -ltnp | grep 11434

The listener should now show *:11434 instead of the loopback address. Port 11434 is now open on every interface, so keep it closed to the outside in your cloud firewall. On Google Cloud’s default network that includes the default-allow-internal rule, which lets every other VM in the VPC reach it. If you run ufw with incoming traffic denied, allow the Docker bridges in (sudo ufw allow from 172.16.0.0/12 to any port 11434 proto tcp), or the api and worker hit the same refusal described in the errors section. Box1 had no ufw, so that rule is untested; the Ollama requests in my logs came from 172.19.0.2, inside that range. The Ollama hardening notes for OpenClaw cover the same exposure in more depth.

LISTEN 0      4096               *:11434            *:*

Run ollama list to confirm both pulls finished, since the 30B download is 18 GB. Mine also shows qwen3:4b and qwen3:8b, the thinking models I started with and dropped:

NAME                  ID              SIZE      MODIFIED
qwen3:30b-instruct    19e422b02313    18 GB     19 minutes ago
qwen3:4b-instruct     0edcdef34593    2.5 GB    21 minutes ago
qwen3:8b              500a1f067a9f    5.2 GB    About an hour ago
qwen3:4b              359d7dd4bcda    2.5 GB    About an hour ago

You only need the two -instruct models. If you pulled the thinking tags too, ollama rm gets the disk space back.

Installing Rakazo with the Compose installer

Rakazo’s installer is a 453 line shell script that downloads the Compose file, writes a .env with random secrets and starts everything. I ran it with --prepare-only first, so I could read the script and pin the version before anything was pulled.

Two values come back in several steps from here: the host’s LAN IP (ip -4 -br addr shows it) and the hostname you’ll put HTTPS on. Export them in the shell you’ll use for the rest of the install, and again if you log in fresh later:

export LAN_IP=10.0.1.50
export DOMAIN=rakazo.example.com
echo "LAN_IP=${LAN_IP} DOMAIN=${DOMAIN}"

If either value prints empty, stop here, because an empty LAN_IP writes a broken model URL into .env without any error. Then fetch the installer and prepare the files:

mkdir -p ~/rakazo && cd ~/rakazo
curl -fsSLO https://raw.githubusercontent.com/elie222/rakazo/main/infra/compose/install-images.sh
sha256sum install-images.sh
bash install-images.sh --prepare-only

The one line that matters here is the warning about ENCRYPTION_KEY. Lose it and every stored credential in the database becomes unreadable:

8fbb715be131328422c225b05f5da202b16d8537d5cfd145fd09c5a882496bf8  install-images.sh
Created .env with random secrets.
Back up ENCRYPTION_KEY from /home/philip/rakazo/.env. Encrypted content cannot be recovered without it.
Rakazo files are ready. Edit .env, then run: bash install-images.sh

Your checksum will differ when the script changes on main. The default image tag is latest, and I’d rather know which release I’m on. When the tag names a release, the installer downloads that release’s Compose file instead of the one on main, so look up the newest release and write it into both tag lines. I tested v0.14.0. Rakazo v0.15.0 followed on 23 November and I have not tested it, so if you want the exact stack shown here, set RAKAZO_TAG=v0.14.0 instead of running the lookup on the first line:

RAKAZO_TAG=$(curl -fsSL https://api.github.com/repos/elie222/rakazo/releases/latest | grep -Po '"tag_name": "\K[^"]+')
[[ $RAKAZO_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "$RAKAZO_TAG" || echo "not a release tag: $RAKAZO_TAG"
sed -i "s/^RAKAZO_IMAGE_TAG=latest/RAKAZO_IMAGE_TAG=${RAKAZO_TAG}/; s/^RAKAZO_COMPUTER_IMAGE_TAG=latest/RAKAZO_COMPUTER_IMAGE_TAG=${RAKAZO_TAG}/" .env

It printed v0.14.0 for me, the release from 22 November listed on the Rakazo releases page. Today the same lookup returns v0.15.0. The regex check is there because the repo also publishes non-server releases (one is tagged android), and if one of those ever becomes “latest” the sed would pin an image tag that doesn’t exist. Next come the model settings. RAKAZO_LOCAL_MODELS_URL points at the LAN IP, the PI_DEFAULT_* lines make the 30B model the default for new bots, and the two timeouts give CPU inference 30 minutes instead of the 2 and 3 minute defaults:

printf '%s\n' \
  "RAKAZO_LOCAL_MODELS=qwen3:4b-instruct,qwen3:30b-instruct" \
  "RAKAZO_LOCAL_MODELS_URL=http://${LAN_IP}:11434/v1" \
  "RAKAZO_LOCAL_CONTEXT_WINDOW=32768" \
  "PI_DEFAULT_PROVIDER=local" \
  "PI_DEFAULT_MODEL=qwen3:30b-instruct" \
  "PI_DEFAULT_CREDENTIALS=host" \
  "MODEL_STREAM_TIMEOUT_MS=1800000" \
  "MODEL_STREAM_IDLE_TIMEOUT_MS=1800000" >> .env

Neither Qwen model here can see images, so I left RAKAZO_LOCAL_VISION_MODELS empty. That is the flag that marks a local model as vision capable, and Rakazo’s computer-use model setting wants one that can see the screen. Now run the installer for real:

time bash install-images.sh

It asks for sudo once, to install a firewall unit for bot computers, then pulls about 5 GB of images. On box1 the whole run took a little over two minutes:

Keeping existing .env.
Warning: no container receives these .env settings: OBJECT_STORAGE_AUTH OBJECT_STORAGE_CERTIFICATE OBJECT_STORAGE_CLIENT_ID OBJECT_STORAGE_FEDERATED_TOKEN_FILE OBJECT_STORAGE_TENANT.
Restricting bot computer egress; installing host firewall rules needs root.
Created symlink /etc/systemd/system/multi-user.target.wants/rakazo-computer-egress.service → /etc/systemd/system/rakazo-computer-egress.service.
Computer egress restricted: rakazo-c* bridges drop non-public and host-bound traffic.
...
 Container rakazo-postgres-1 Healthy
 Container rakazo-supervisor-1 Healthy
 Container rakazo-web-1 Healthy
 Container rakazo-api-1 Healthy
 Container rakazo-worker-1 Healthy
Rakazo is starting at http://127.0.0.1:5173

real	2m7.057s

The warning about five OBJECT_STORAGE_* settings reaching no container is harmless. --prepare-only ran before I pinned the tag, so .env came from the template on main, which has five object storage keys the v0.14.0 Compose file doesn’t pass. To keep both files from the same release, run RAKAZO_IMAGE_TAG=v0.14.0 bash install-images.sh --prepare-only instead, since the script prefers a tag set in the shell. Check that every service came up healthy and on the pinned tag:

docker compose --env-file .env -f docker-compose.images.yml ps --format "table {{.Service}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"

Only web and api publish ports, and both bind to loopback. Postgres isn’t published at all:

SERVICE      IMAGE                                                                                 STATUS                    PORTS
api          ghcr.io/elie222/rakazo/app:v0.14.0                                                    Up 23 seconds (healthy)   5173/tcp, 127.0.0.1:3100->3100/tcp, 7091/tcp
postgres     postgres:16@sha256:e17e86066e5ef83e0952a9347f5c792b7ece00972e2aa787a6986f471b3dd3d5   Up 42 seconds (healthy)   5432/tcp
supervisor   ghcr.io/elie222/rakazo/app:v0.14.0                                                    Up 41 seconds (healthy)   3100/tcp, 5173/tcp, 7091/tcp
web          ghcr.io/elie222/rakazo/app:v0.14.0                                                    Up 12 seconds             3100/tcp, 7091/tcp, 127.0.0.1:5173->5173/tcp
worker       ghcr.io/elie222/rakazo/app:v0.14.0                                                    Up 12 seconds (healthy)   3100/tcp, 5173/tcp, 7091/tcp

Web shows no health status because the v0.14.0 Compose file gives it no healthcheck, and up --wait counts a running container without one as healthy. Four services share the app image, Postgres runs from its own, and the bot computers use a third image, rakazo/computer.

Signing in for the first time

Because web listens on 127.0.0.1:5173, the quickest way in before HTTPS is an SSH tunnel from your workstation. Run this on your laptop, not the server, with the address you normally SSH to (on a cloud VM that’s the public one, not the LAN IP):

ssh -N -L 5173:127.0.0.1:5173 [email protected]

Open http://127.0.0.1:5173/sign-up in your browser and create the first account with your Email, a name and a password, then press Create account. The first bot, Chief, is waiting in the sidebar once you’re in.

Rakazo sign-up form on port 5173 with name, email and password filled in
  1. 1Email
  2. 2Create account

Signups stay open until you close them, which is fine behind a tunnel and not fine on a public hostname. The next step turns them off.

Putting it behind HTTPS with nginx and certbot

Rakazo’s docs say to put TLS in front of the web service on 127.0.0.1:5173, which is the only port a browser needs. You need an A record for your hostname pointing at the server and port 80 reachable for the HTTP-01 challenge, with any DNS provider. I had to add a Google Cloud firewall rule for 80 and 443 first, because the default network only lets SSH, RDP and ICMP in from outside.

sudo apt-get install -y nginx certbot python3-certbot-nginx
sudo vim /etc/nginx/sites-available/rakazo

This is the server block I used. The upgrade headers pass WebSocket connections through, and the long read timeout is there because a CPU model can take five minutes to answer:

server {
    listen 80;
    server_name rakazo.example.com;

    client_max_body_size 100m;

    location / {
        proxy_pass http://127.0.0.1:5173;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 3600s;
        proxy_buffering off;
    }
}

Change server_name to your hostname, enable the site, drop the default one and ask certbot for a certificate. The --redirect flag makes certbot rewrite the server block so plain HTTP gets a 301 to HTTPS:

sudo ln -sf /etc/nginx/sites-available/rakazo /etc/nginx/sites-enabled/rakazo
sudo rm -f /etc/nginx/sites-enabled/default
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d "${DOMAIN}" --non-interactive --agree-tos --redirect --register-unsafely-without-email

I skipped the account email because the lab box was going away the same day. On a server you keep, swap that flag for -m you@yourdomain. Certbot also set up its own renewal timer:

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/rakazo.example.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/rakazo.example.com/privkey.pem
This certificate expires on 2027-02-21.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for rakazo.example.com to /etc/nginx/sites-enabled/rakazo
Congratulations! You have successfully enabled HTTPS on https://rakazo.example.com

nginx alone isn’t enough. Rakazo’s sign-in cookies and CORS follow the origins in .env, so all three origins move to the HTTPS URL, RAKAZO_HOST takes the bare hostname, and signups close now that the first account exists:

cd ~/rakazo
sed -i "s#^BETTER_AUTH_URL=.*#BETTER_AUTH_URL=https://${DOMAIN}#; s#^WEB_ORIGIN=.*#WEB_ORIGIN=https://${DOMAIN}#; s#^API_URL=.*#API_URL=https://${DOMAIN}#; s#^RAKAZO_HOST=.*#RAKAZO_HOST=${DOMAIN}#; s#^SIGNUPS_ENABLED=.*#SIGNUPS_ENABLED=false#" .env
docker compose --env-file .env -f docker-compose.images.yml up -d --wait
curl -sI "https://${DOMAIN}/" | head -2

A 200 from nginx over HTTPS means the proxy answers, and plain HTTP now returns a 301 to the HTTPS URL. The real test was signing in at the HTTPS address with the account I’d made through the tunnel, which worked first time. From now on use only the HTTPS URL: the tunnel’s http://127.0.0.1:5173 origin is no longer in the allowed list, and sign-ins through it get rejected unless you add it to RAKAZO_EXTRA_AUTH_ORIGINS.

HTTP/1.1 200 OK
Server: nginx/1.24.0 (Ubuntu)

Server behind NAT with no public port 80? Then HTTP-01 can’t work, and you need a DNS-01 plugin for your DNS provider with certbot certonly, pointing nginx at the files it writes. I didn’t run that path on box1. Ubuntu packages the common ones:

  • Cloudflare: python3-certbot-dns-cloudflare
  • Route 53: python3-certbot-dns-route53
  • DigitalOcean: python3-certbot-dns-digitalocean
  • Any RFC 2136 server, BIND included: python3-certbot-dns-rfc2136

Give the plugin’s API token rights to edit DNS records in that one zone only. Rakazo also accepts other hostnames, such as a LAN IP or a tailnet name, through RAKAZO_ALLOWED_HOSTS.

Checking which model the bots use

Open Settings and choose the Models tab. The Main model should read qwen3:30b-instruct from Local (Ollama / LM Studio). That’s the PI_DEFAULT_MODEL line doing its job. Add provider at the bottom is where hosted keys go.

Rakazo Settings Models tab with qwen3:30b-instruct from Local (Ollama / LM Studio) as the main model
  1. 1Models tab
  2. 2Main model
  3. 3Add provider

The approval model showed qwen3:4b-instruct, which suits it since it only has to judge whether an action needs your OK. The computer-use model was empty, asking for one that can see the screen, because I hadn’t declared a local vision model. I switched main models through .env and up -d rather than in this dialog, so new bots pick them up as the deployment default.

Two switches on the General tab are worth turning on while you’re testing. Model picker in chat puts the current model in the message box, and Tool activity shows each step a bot took, which is how I caught the wrong answer below.

Rakazo Settings General tab with the Model picker in chat and Show tool activity switches turned on
  1. 1Model picker
  2. 2Tool activity

Both switches only change what you see. They do not change what the bot does or how long it takes.

Adding an API model (and why I couldn’t)

The plan was to run the same task on a hosted model too. In Add provider you pick a provider from a long list (OpenRouter, Anthropic, OpenAI, Amazon Bedrock, Groq, Ollama Cloud, xAI, a generic OpenAI-compatible entry and more), paste the API key, choose a Model and press Connect.

Rakazo Connect OpenRouter form with the API key field, model picker and Connect API key button
  1. 1API key
  2. 2Model
  3. 3Connect

The OpenRouter account I test with had no credit left that day, so I stopped at this form. I used the bigger local model as the second leg instead. Treat the comparison below as small local versus big local, not local versus hosted.

Running the same task on two models

I gave Chief one job that needs its computer and has an answer I can check: “Use your computer to read /etc/os-release and check free disk space on /. Reply with the distro name and version and how much space is free.” Then I checked inside the bot’s container myself, which showed Debian GNU/Linux 12 (bookworm) with 20G free on /.

16 vCPU, CPU onlyqwen3:4b-instructqwen3:30b-instruct
Total run time82.7 s298.7 s
Time to first response72.9 s291.5 s
Tool callsshell (ok), read_file (error)shell (ok)
Answer“/etc/os-release was not found”, 20G freeDebian GNU/Linux 12 (bookworm), 20G free
Correct?NoYes
“What is 17*23?” (warm)401, wrong, 0.41 s391, right, 1.26 s

Where do the run times come from? Rakazo’s own log events. I pulled them out of the api and worker logs with a filter on four event names:

docker compose -f docker-compose.images.yml logs api worker | grep -E "computer.provisioned|agent.tool.completed|run.first_response|run.finished"

Each JSON line carries a lot more than this. I trimmed them to the fields that tell the story:

Rakazo run logs comparing qwen3 4b-instruct and 30b-instruct tool calls and total run time

The 4B model was almost four times faster and wrong. It called shell and read_file together, the read_file call on /etc/os-release came back as an error and reported that the file didn’t exist instead of using the shell output it already had. The 30B model ran one shell command and answered correctly. Nearly all of its five minutes went on prompt processing: Ollama logged 11,599 prompt tokens at 43 tokens per second, then the follow-up call reused the cache and only processed 110 new tokens.

Rakazo Chief bot chat with a wrong answer from qwen3 4b-instruct and a correct Debian 12 answer from qwen3 30b-instruct

Something worries me more than the wrong answer. With tool activity expanded, the 4B run shows a tick next to Read file, while the log for the same call says "tool.outcome": "error". If you only read the chat, nothing tells you a step failed.

Rakazo tool activity expanded, showing Read file and Shell steps on the 4b run and a single Shell step on the 30b run

So my take is that a 4B model is fine for the approval role and not for the main one. If five minutes per turn is too slow for you, the fix is faster prompt processing, not a smaller model. I expect a GPU or a hosted model to give that, but did not measure it here. The same tradeoff showed up when I ran Hermes Agent on a CPU-only local model.

Choosing where bot computers run

Everything above used the default SANDBOX_PROVIDER=docker, where each bot computer is a container on the same host. Rakazo can also put them on a hosted sandbox service instead, and its configuration docs list these options:

SANDBOX_PROVIDERWhere the computer runsExtra setting
docker (default)Sibling container on your host, per-bot networkNone, the supervisor owns the Docker socket
e2bE2B cloud sandboxE2B_API_KEY
novitaNovita sandbox, after building its templateNOVITA_API_KEY
daytonaDaytona workspaceDAYTONA_API_KEY
createosCreateOS sandboxCREATEOS_SANDBOX_API_KEY
boatBoat cloud computerBOAT_API_KEY
noneNo computer, chat and connectors onlyNone

Rakazo’s separate sandbox-providers page also covers incus, boxd and instabox. I only tested docker. One setting is worth changing on a Docker host: SANDBOX_IDLE_MS puts a computer to sleep after 10 idle minutes by default, and the docs suggest 0 for Docker, where an idle container costs nothing. The installer also locks down what the Docker computers can reach:

systemctl is-enabled rakazo-computer-egress
sudo iptables -S | grep rakazo-c

The unit is enabled, and its rules drop traffic from the rakazo-c* bridges to the host and to every private range:

enabled
-A INPUT -i rakazo-c+ -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i rakazo-c+ -j DROP
-A DOCKER-USER -i rakazo-c+ -o rakazo-c+ -j RETURN
-A DOCKER-USER -d 0.0.0.0/8 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 10.0.0.0/8 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 100.64.0.0/10 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 127.0.0.0/8 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 169.254.0.0/16 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 172.16.0.0/12 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 192.0.0.0/24 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 192.168.0.0/16 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 198.18.0.0/15 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 224.0.0.0/4 -i rakazo-c+ -j DROP
-A DOCKER-USER -d 240.0.0.0/4 -i rakazo-c+ -j DROP

For safety that’s good news, since a bot told to scan your LAN or hit a router admin page gets nothing. It also means a bot can’t call Ollama on 10.0.1.50 from its own terminal. The model calls come from the api and worker containers, which sit on other networks and aren’t filtered.

Errors I hit and how I fixed them

These are in the order they happened, and three of them cost far more time than the install itself. The journalctl and grep filters below did most of the diagnosis. If those flags aren’t second nature yet, the Linux Commands Cheat Sheet on files, grep, find and processes is a good desk reference.

Error: connect ECONNREFUSED 127.0.0.1:11434

My first .env had RAKAZO_LOCAL_MODELS_URL=http://127.0.0.1:11434/v1, the URL every Ollama tutorial uses. From inside the worker that address is the worker. I tried three URLs from the worker with Node’s fetch, and all three were refused, because Ollama only listened on the host’s loopback. The host.docker.internal name and the LAN IP both started working once the systemd override set OLLAMA_HOST=0.0.0.0:11434.

Terminal showing Rakazo worker getting ECONNREFUSED from Ollama on 127.0.0.1, then a model list after OLLAMA_HOST is set to 0.0.0.0

I went with the LAN IP rather than host.docker.internal, because it will also work if you move Ollama to a GPU box on the same network later.

“Your model provider took too long to respond. Try again.”

With the URL fixed, the first message on the 4 vCPU box failed with this banner, and the api log said "run.failure": "TransientModelError" with "reason": "Request timed out.: Model request timed out (23)". MODEL_STREAM_TIMEOUT_MS defaults to 120,000 ms, and Ollama sends nothing back until it has processed the whole prompt, so a slow CPU blows straight through two minutes.

Rakazo chat error: Your model provider took too long to respond. Try again.

Raising the timeout to 10 minutes didn’t save the 4 vCPU box. Ollama’s journal showed why: prompt processing started at 12.8 tokens per second and slowed to 9.6 as the context grew, so the request died at 9m50s with half of the 10,043 token prompt done. On 16 vCPU the bigger 30B model got through 11,599 tokens at 43 per second.

Ollama journal showing Rakazo prompt prefill at under 13 tokens per second on 4 vCPU and 43 tokens per second on 16 vCPU

The fix is both changes together: MODEL_STREAM_TIMEOUT_MS and MODEL_STREAM_IDLE_TIMEOUT_MS set high (I used 30 minutes), and enough CPU that a 10k token prompt finishes within that window.

qwen3:4b thinks until the timeout

The plain qwen3:4b tag is a thinking model, and on a CPU that generates text at a handful of tokens per second, every reasoning token is time the run doesn’t have. Rakazo sends reasoning_effort only for models listed in RAKAZO_LOCAL_REASONING_MODELS, with none when thinking is off. I tested that directly against Ollama’s /v1 endpoint: with reasoning_effort set to none, “What is 17*23?” still came back with a long run of reasoning written into the reply. Switching to the -instruct tags, which don’t think at all, fixed it.

read_file error turned into a wrong answer

You saw this one in the comparison. A tool error went back to the model, the model treated it as a fact about the system, and the UI ticked the step anyway. I could not fix it with settings. Use a bigger main model, keep tool activity on, and check the api log for "tool.outcome": "error" when an answer looks off.

Trying OpenMausBot vs Rakazo on the same model

OpenMausBot is the other project people name as an open source Grok Bot alternative, so I gave release 0.1.177 about 45 minutes with the same qwen3:4b-instruct model. It ran on a second VM of the same size as box1 (16 vCPU, 64 GB, CPU only), whose Ollama had OLLAMA_CONTEXT_LENGTH=65536 instead of the 32768 used above, because OpenMausBot’s prompt doesn’t fit in 32k. Treat what follows as a log of what happened, not a how-to. OpenMausBot starts with one command and no clone, a different philosophy from Rakazo’s Compose stack, and its host check flagged a problem before anything else:

npx -y [email protected] doctor --host

One check failed and one warned. The failure is the bot sandbox, which Ubuntu 24.04’s AppArmor policy blocks by default:

ok    Ubuntu 24.04.5 LTS, kernel 7.0.0-1017-gcp
ok    x86_64
ok    Docker 29.10.0
FAIL  Bot sandbox: AppArmor blocks unprivileged user namespaces
      fix: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0   (and put it in /etc/sysctl.d/ to keep it after a reboot)
ok    seccomp is available
ok    cgroup v2
ok    140 GB free for /home/philip/.openmausbot
warn  /home/philip/.openmausbot is not on an encrypted disk
      fix: use LUKS full-disk encryption, unless your provider encrypts the disk at rest
ok    16 CPUs, 63 GB memory (a team of 20 needs 8 CPUs and 16 GB)
ok    Port 8799 is free for the server
ok    Ports 80 and 443 are free
ok    Clock is within 1 s of network time (signed requests allow 300 s)
1 problem, 1 warning.

That sysctl loosens a hardening default for the whole host, not only for OpenMausBot, so think about it before you copy it onto a shared server. Rakazo’s installer also touches the host, but only with a firewall unit scoped to its own bridges. With the sysctl set and the server running (npx -y [email protected] serve, on 127.0.0.1:8799), I pointed the openai-compatible engine at Ollama. The key is a dummy, because Ollama ignores it:

export OLLAMA_KEY=ollama
npx -y [email protected] engine set openai-compatible --key-env OLLAMA_KEY --base-url http://127.0.0.1:11434/v1
npx -y [email protected] models | grep openaiCompat

It found the model, which shows the engine can reach Ollama at all:

openaiCompat · available · default qwen3:4b-instruct · 1 models

Bots are defined in a team file. This one makes a single bot on the local model with a Local VM computer (computer: vm, shown as Private desktop in the UI), the closest match to a Rakazo bot computer:

version: 1
bots:
  - name: Ops
    title: Server checks
    model: openaiCompat/qwen3:4b-instruct
    approval: full
    computer: vm

Save it as ops.yaml and apply it with npx -y [email protected] team apply ops.yaml, which printed Applied: 1 created, 0 changed, 0 deleted. The first chat failed straight away with “Prepare the Cua desktop image with Driver 0.37.0”. That’s a one-time build you start from Settings, Desktops & browser, which only appeared for me after switching Settings to Advanced mode. It produced localhost/openmausbot/cua-local-vm:driver-0.37.0-v9 (2.13 GB) on top of the 1.87 GB trycua/xfce-cua base.

So the “Local VM” is not a VM. It’s a Docker container called openmausbot-computer running an XFCE desktop on Debian 12 that you can watch and take over from the browser, and it was ready 6.8 seconds into the run. Then I sent Ops the same disk and os-release task Chief got. Two runs after the image build, same result both times. The chat names the provider “Ollama”, while the exported transcript calls it “Other (OpenAI-compatible)”:

OpenMausBot Ops bot chat showing Streaming idle timeout elapsed from Ollama, with the private desktop running in the Screen panel

The run log spells out where the nine minutes went: three model attempts of about three minutes each, all ending on the same timeout. The first two lines come from the exported transcript (I cut the two retry notices between them), the last is the server’s slow-turn log line without its timestamp and IDs.

notice: Ops didn't hear back from Other (OpenAI-compatible).
error: Streaming idle timeout elapsed
openai-compat error 9m04s: queue 6.8s (dispatch), handshake 1ms, model 3m01s, retry 6m04s, setup 6.8s (computer 6.8s, sync 7ms, prompt 3ms); retries 2 (timeout, timeout), backoff 3.7s

Ollama’s journal explains it. OpenMausBot’s first request carried 39,414 prompt tokens (39,482 on the second run), nearly four times the 10,043 Rakazo’s prompt came to on qwen3:4b. Each attempt was cancelled after about three minutes (srv stop: cancel task and a 500), and because Ollama reused the cached prefix, progress only crept up across retries, to about two thirds of the prompt at roughly 18 tokens per second. No first token ever came back, so no tool ever ran. Before the second run I set replyWaitMinutes to 30 in ~/.openmausbot/config.json, a key I found in its source rather than its docs, and restarted the server. The cutoff stayed at three minutes.

So I can’t give you an OpenMausBot answer or run time on a CPU-only local model. What I can say is that its prompt is the bigger problem than its timeout. I did not test a GPU or a hosted model, so I can’t say whether this wall goes away there. The architecture differs from Rakazo in ways that matter for self-hosting, going by its self-hosting, headless CLI and Linux desktop docs as of 23 November:

Rakazo 0.14.0OpenMausBot 0.1.177
InstallCompose installer, 2m07snpx openmausbot, Node 24, no clone
StatePostgres containerSQLite and files in ~/.openmausbot
Bot engineIts own agent loop, any providerCLIs you install (claude, codex, grok, Gemini, ACP) or API engines such as openai-compatible
Bot computerPer-bot Debian container, LAN egress blockedLocal VM is an XFCE Docker or Podman container; also Boat cloud or your own VPS
Container installThe defaultRootless Podman install has no Local VM unless you add the Podman socket
Host changesEgress firewall unit for its own bridgesHost-wide AppArmor userns sysctl for the bot sandbox
Same task, qwen3:4b, 16 vCPU82.7 s, wrong answerNo answer, timeout after 3 attempts (9m04s)

My read: OpenMausBot is the shorter path if you already pay for Claude Code or Codex and want bots that use those CLIs. For bots on local models on modest hardware, Rakazo is the one that actually finished a run on this size of box. And if you came from OpenClaw, keep the OpenClaw command cheat sheet handy, since most of the Ollama tuning above carries over. For the wider field, our roundup of AI operating systems and agent platforms covers more of the projects in this space.

Backing up and updating

Three things need to survive a dead disk, and losing any one of them hurts differently:

  • The Postgres database: bots, chats, runs and accounts
  • The rakazo_appdata volume: the bots’ home directories
  • .env: its ENCRYPTION_KEY decrypts stored credentials

I took a manual backup of all three from ~/rakazo, using a throwaway Debian container to read the volume:

mkdir -p ~/rakazo-backups; S=$(date +%F)
docker compose --env-file .env -f docker-compose.images.yml exec -T postgres pg_dump -U rakazo -Fc rakazo > ~/rakazo-backups/rakazo-$S.dump
docker run --rm -v rakazo_appdata:/data:ro -v ~/rakazo-backups:/out debian:12-slim tar czf /out/appdata-$S.tgz -C /data .
install -m 600 .env ~/rakazo-backups/env-$S
ls -lh ~/rakazo-backups

The dump was tiny next to the bot homes. The appdata archive is owned by root because it was written from a container, so fix its mode or ownership before you copy it off the box:

total 48M
-rw-r--r-- 1 root   root    47M Nov 23 09:01 appdata-2026-11-23.tgz
-rw------- 1 philip philip  11K Nov 23 09:01 env-2026-11-23
-rw-rw-r-- 1 philip philip 619K Nov 23 09:00 rakazo-2026-11-23.dump

To confirm the dump was readable, I listed its contents with pg_restore -l inside the Postgres container, and it reported 453 table entries. For anything you keep, Rakazo ships backup-prod.sh with a systemd timer. The backup docs say it handles published-images installs when RAKAZO_DEPLOY_DIR points at the folder with docker-compose.images.yml, and that it keeps three verified snapshots by default. I didn’t install that timer on box1.

Updating is just as short on paper, but I didn’t test it: the lab ran only v0.14.0, and v0.15.0 came out after it. Take a backup, set RAKAZO_IMAGE_TAG and RAKAZO_COMPUTER_IMAGE_TAG to the new tag and run bash install-images.sh again. It keeps your .env and fetches that release’s Compose file. The published-images Compose file stays on Postgres 16, so a tag bump shouldn’t touch the database engine.

What I still don’t know

I got Rakazo running on local models end to end, but a day on one VM left a few questions open. These are the ones I’d test next:

  • Hosted model on the same task: blocked by an empty OpenRouter balance
  • A vision model for computer use: no local vision model tried
  • GPU prefill: should shorten 270 s of prompt processing, untested
  • Whether the tick on a failed tool call is a bug or a display choice

The prompt cache is the one I’d chase first. The second call of the 30B run processed only 110 new tokens. So a bot you talk to often may stay fast once its system prompt is cached, and only the first turn after a restart would pay the full five minutes. If you’re on CPU and a slow first turn is acceptable, that could make qwen3:30b-instruct a workable main model. If you’d like a second self-hosted stack to compare against, LibreChat with Ollama and LiteLLM is a chat front end without the computers, and Hindsight agent memory on Ollama covers the memory side. I’ll update this post once I’ve run Rakazo on a GPU box.

Keep reading

Open Source LLM Comparison Table (2026) AI Open Source LLM Comparison Table (2026) Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF) AI Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF) Claude Code Cheat Sheet: Commands, Shortcuts and Flags (PDF) AI Claude Code Cheat Sheet: Commands, Shortcuts and Flags (PDF) Install LocalAI on Linux: Docker, Binary and GPU Setup AI Install LocalAI on Linux: Docker, Binary and GPU Setup Claude Ship Explained: Code Review, PR Steward and Approvals AI Claude Ship Explained: Code Review, PR Steward and Approvals Install Immich on Ubuntu 26.04 LTS Cloud Install Immich on Ubuntu 26.04 LTS

Leave a Comment

Press ESC to close