SoduWork is a self-hosted workspace for AI coding agents, and the Hub you deploy is the part that decides whether the whole thing is usable. It holds the accounts, the model keys and the usage ledger, while the agents themselves run on a desktop client or on a runner box. Get the Hub, the proxy and the model catalog right and the rest is clicking through a desktop app.
This guide builds the Hub from source with its own Docker Compose launcher, puts Nginx with TLS and WebSockets in front, registers a local Ollama model, and runs a real Pi agent task through a Linux client and a runner. SoduWork calls itself a public beta, so expect rough edges. Every command below ran on Ubuntu 24.04 against SoduWork v1.13.21 in November 2026, on a CPU-only VM.
Understand what SoduWork runs where
SoduWork has three moving parts. The Hub is a FastAPI service plus an admin console backed by PostgreSQL 16. The client is an Electron desktop app that runs agent sessions locally. Runners are Linux machines that register with the Hub over a WebSocket and take jobs. The Hub container never runs agents and doesn’t mount the Docker socket.
Model traffic doesn’t go straight from the client to Ollama. In our run the client called the Hub’s OpenAI-compatible endpoint at /api/v1/ai-proxy/v1/chat/completions, and the Hub forwards to the model service. That keeps API keys on the server and puts every token on one usage page, which is the main reason to self-host it instead of pointing each laptop at a provider.

Only Nginx listens on the network. The Hub binds to 127.0.0.1:18989, PostgreSQL stays on the Compose network, and Ollama is reached from inside the Hub container through the Docker bridge gateway. Port 11434 never needs to be open to the internet, and in this lab the firewall allowed only 80 and 443.
The agent runtime is a “harness”. Pi ships built in and is the one we ran end to end. The README lists others, and you should know which of them this guide covers before you plan around one:
| Harness | Model source | Covered here |
|---|---|---|
| Pi | SoduWork models through the Hub | Yes, client and runner |
| OpenCode, DeepSeek Harness, Qwen Code, Kimi Code, Codex Harness | SoduWork models through the Hub | No, not installed |
| Codex | Your own OpenAI account | No, needs an OpenAI account |
| Claude Code | None | Removed as an option in v1.13.17 |
If you want one of those other agents against a local model today, our guides on running DeepSeek Harness on a local model and setting up OpenCode cover them standalone. The client’s Cloud mode, which needs a per-user dedicated runner over SSH, wasn’t tested either.
SoduWork vs OpenClaw: which one fits
Both get filed as self-hosted agent platforms, and both can talk to Ollama, but they solve different problems. SoduWork is a team server: an admin owns the model keys and the user accounts, and agents run on whichever client or runner picks up the task. OpenClaw is a personal assistant behind one Gateway process that you message from WhatsApp, Telegram, Slack or its own Control UI. The OpenClaw column follows its docs and README, and our OpenClaw cheat sheet walks through its CLI against a local Ollama model.
| Question | SoduWork | OpenClaw |
|---|---|---|
| Server pieces | FastAPI Hub and PostgreSQL in Docker Compose, Nginx in front | One Node.js Gateway, config in ~/.openclaw/openclaw.json |
| Where you talk to it | Desktop client, plus a web admin console | Control UI on port 18789, CLI, TUI and 20+ chat channels |
| Accounts and usage | Admin-created users, central model keys, a per-token usage page | One owner by default; a shared “multiplayer claw” is a config change |
| Where agent work runs | On the desktop client or a registered runner box | On the Gateway host, unless you configure sandboxing |
| Licence and status | MIT, public beta | MIT, run by the OpenClaw Foundation, no paid tier |
Pick SoduWork when several people need coding agents and someone has to answer “who spent those tokens”. Pick OpenClaw when one person wants an assistant they can reach from a phone, and lock down its tool sandbox before you give it a shell, as the hardening notes linked in the Ollama step show.
Size the host before you build
SoduWork’s requirements page asks for Python 3.12 or newer, Docker Engine with Compose v2, and 20 GB of free disk. That covers the Hub alone. The model is what sizes the box, because a 7B model on CPU wants about 6 GB of RAM before the agent sends its first prompt.
We ran everything on one GCP e2-standard-8 (8 vCPU AMD EPYC 7B12, 32 GB RAM, 100 GB balanced disk, no GPU) so the Hub, Ollama, the runner and the client shared a host. Treat that as a floor for a single-user lab, not a team server. These are the numbers we measured:
| Measurement | Result |
|---|---|
| Hub image build and first start | 3 min 15 s |
| Hub image / PostgreSQL image | 2.96 GB / 648 MB |
| Build cache left behind | 3.2 GB |
| Disk used on root after build | 8.6 GB |
| Idle RAM, Hub / database | 144 MiB / 60 MiB |
| qwen2.5:3b on CPU | 12.3 tok/s generation, 33.2 tok/s prompt, 2.7 GB loaded |
| qwen2.5:7b on CPU | 5.85 tok/s generation, 14.5 tok/s prompt, 6.0 GB loaded |
| Host RAM during a Pi task | 4.9 GB used |
Read the prompt column before the generation column. An agent sends thousands of tokens of instructions with every request, so on CPU you wait minutes for the model to read before a single word comes back, and SoduWork’s client stops waiting after three minutes of silence. For a team, size the model host separately and put a GPU behind it; the GPU guide for local LLMs covers what fits in each VRAM tier. The Hub itself barely registers, so a small VM runs it fine once the model lives elsewhere.
Build the Hub with deploy.py
Install Docker Engine and the Compose plugin from Docker’s own repository. Ubuntu’s docker.io package works too, but the launcher expects docker compose as a plugin, and the upstream repo ships it:
sudo apt-get update
sudo apt-get install -y ca-certificates curl git python3
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 applies.
Next, clone the release tag. Pinning the tag keeps the Hub and the client builds you download later on the same version, which matters because the upgrade order is Hub first:
git clone --depth 1 --branch v1.13.21 https://github.com/mdiri-ai/SoduWork.git ~/SoduWork # pin: client and Hub must match #https://github.com/mdiri-ai/SoduWork/releases
cd ~/SoduWork
The deploy.py launcher describes itself as a “private single-host Docker Compose launcher”. It generates the secrets, builds the Hub image and starts the stack. Pass --public-url on the first run with the HTTPS name Nginx will answer on, because the Hub bakes it into its CORS origins and download links:
python3 ops/self-host/deploy.py up --public-url https://work.example.com
Most of the 3 minutes 15 seconds went into the image build. The tail of the run confirms both containers came up healthy and tells you where the instance config lives:
Container soduwork-540f19873f8c-db-1 Healthy
Container soduwork-540f19873f8c-hub-1 Healthy
SoduWork is ready: https://work.example.com
Private instance configuration: /home/ubuntu/.local/share/soduwork/self-host/deployment.json
Use python ops/self-host/deploy.py credentials (with the same --data-dir) for the initial admin password.
The Compose project name carries a random ID, and yours will differ from 540f19873f8c. Note it, because the backup commands later use it. The launcher reads ops/self-host/compose.yaml from the checkout and pipes it to docker compose -f - on stdin, with the secrets from deployment.json passed as environment variables, so Compose never reads a Compose file from disk:
docker compose ls
docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"
A dash under CONFIG FILES is expected, because the YAML never touched disk. The Hub publishes only on loopback, so nothing is reachable from outside until Nginx is in place.
NAME STATUS CONFIG FILES
soduwork-540f19873f8c running(2) -
NAMES IMAGE STATUS PORTS
soduwork-540f19873f8c-hub-1 soduwork-540f19873f8c-hub Up 31 seconds (healthy) 127.0.0.1:18989->8989/tcp
soduwork-540f19873f8c-db-1 postgres:16-bookworm Up 37 seconds (healthy) 5432/tcp
This is the YAML deploy.py feeds Compose for v1.13.21, shown for reference. Three parts of it matter later: the Hub publishes only on 127.0.0.1, HUB_PUBLIC_URL and CORS_ORIGINS both come from --public-url, and the Hub keeps its files in seven named volumes beside the database volume. Leave the template alone: a local edit makes the upgrade’s git checkout refuse to switch tags. Only the port and the public URL are meant to change, through deployment.json:
# Fresh single-Hub installation; existing cluster files are unchanged.
services:
db:
image: postgres:16-bookworm
restart: unless-stopped
environment:
POSTGRES_USER: soduwork
POSTGRES_DB: soduwork
POSTGRES_PASSWORD: ${SODUWORK_DB_PASSWORD:?Run python ops/self-host/deploy.py up}
volumes:
- database:/var/lib/postgresql/data
healthcheck:
test: [CMD-SHELL, "pg_isready -U soduwork -d soduwork"]
interval: 5s
timeout: 5s
retries: 20
hub:
build:
context: ../..
dockerfile: ops/self-host/Dockerfile
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "127.0.0.1:${SODUWORK_HTTP_PORT:?Run python ops/self-host/deploy.py up}:8989"
environment:
DATABASE_URL: "postgresql+asyncpg://soduwork:${SODUWORK_DB_PASSWORD:?Run python deploy.py up}@db:5432/soduwork"
JIYONG_DATABASE_URL: ${JIYONG_DATABASE_URL:-}
JIYONG_ASSET_DIR: /srv/runtime/jiyong-assets
ADMIN_USER: admin
ADMIN_PASS: ${SODUWORK_ADMIN_PASSWORD:?Run python deploy.py up}
AUTH_SECRET: ${SODUWORK_AUTH_SECRET:?Run python deploy.py up}
CONNECTOR_OAUTH_KEY: ${SODUWORK_OAUTH_KEY:?Run python deploy.py up}
HUB_PUBLIC_URL: ${SODUWORK_PUBLIC_URL:?Run python deploy.py up}
CORS_ORIGINS: "${SODUWORK_PUBLIC_URL:?Run python deploy.py up},null"
SODUWORK_ENV: production
DEVICE_AUTH_COMPAT: "false"
DB_MIGRATION_MODE: auto
HUB_LOCAL_EXECUTION_ENABLED: "false"
REPORT_AUTO: "false"
REPOSITORY_SYNC_INTERVAL_SECONDS: "0"
LIBRARY_STORAGE_BACKEND: local
ARTIFACT_STAGING_DIR: ${ARTIFACT_STAGING_DIR:-/srv/app/hub-backend/uploads/.ingest}
LIBRARY_STORAGE_DIR: uploads/library
CLIENT_UPDATE_DIR: /srv/app/hub-backend/client-releases
volumes:
- uploads:/srv/app/hub-backend/uploads
- downloads:/srv/app/hub-backend/downloads
- client-releases:/srv/app/hub-backend/client-releases
- runtime:/srv/runtime
- repos:/srv/app/repos
- workspaces:/srv/app/hub-backend/workspaces
- releases:/srv/app/hub-backend/releases
healthcheck:
test: [CMD, python, -c, "import json,urllib.request; assert json.load(urllib.request.urlopen('http://127.0.0.1:8989/readyz',timeout=4))['ready']"]
interval: 5s
timeout: 5s
retries: 24
start_period: 60s
stop_grace_period: 45s
security_opt:
- no-new-privileges:true
volumes:
database: {}
uploads: {}
downloads: {}
client-releases: {}
runtime: {}
repos: {}
workspaces: {}
releases: {}
Note HUB_LOCAL_EXECUTION_ENABLED: "false", which fits the design: agent work happens on a client or a runner, not inside the Hub container. To change the port, pass --port on the very first up. A later up with a different port aborts and tells you to edit deployment.json instead. Before moving on, ask the readiness endpoint whether the database and cluster checks pass:
curl -s http://127.0.0.1:18989/readyz
All three flags should read true. If any of them is false, run python3 ops/self-host/deploy.py logs before going further, because every later step talks to this endpoint through Nginx and will fail in less obvious ways.
{"ready":true,"database":true,"cluster":true,"mode":"single-instance"}
The build cache is 3.2 GB of the 8.6 GB used. On a small disk, docker builder prune gets most of that back, at the cost of a slower rebuild on the next upgrade.
Get the admin credentials
The launcher generates the first admin password when it creates the account database. Read it back with the credentials subcommand from the same checkout:
python3 ops/self-host/deploy.py credentials
It prints the user and a 32-character password, masked here. Run it before you log in anywhere, because you’ll need this password for the admin console in the Ollama step.
Administrator: admin
Initial password: ********************************
Only used when the account database is first created; later password changes are authoritative.
That last line is worth reading twice. Once you change the password in the console, this command still prints the old one, so it’s no recovery tool. Change the password at first login under User management and store the new one in your password manager.
Put Nginx with TLS and WebSockets in front
The client and runners hold long WebSocket connections and the agent streams tokens over them, so the proxy has to pass upgrades and stop buffering. Point a DNS record at the server first, then install Nginx and Certbot:
sudo apt-get install -y nginx certbot python3-certbot-nginx
sudo certbot certonly --nginx -d work.example.com --non-interactive --agree-tos --register-unsafely-without-email
Use a real email in production so account and policy notices reach you. Certbot confirms the certificate paths and installs its renewal timer:
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/work.example.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/work.example.com/privkey.pem
This certificate expires on 2027-02-28.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
We only asked Certbot for the certificate and wrote the server block by hand, because its automatic Nginx edits don’t add the WebSocket headers. Open a new site file for the Hub.
sudo vim /etc/nginx/sites-available/soduwork
This is the exact file that ran in the lab. The map block sets Connection: upgrade only when the client asks for it, and the hour-long timeouts keep idle runner sockets from being cut:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
listen [::]:80;
server_name work.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name work.example.com;
ssl_certificate /etc/letsencrypt/live/work.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/work.example.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
client_max_body_size 200m;
location / {
proxy_pass http://127.0.0.1:18989;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
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_buffering off;
proxy_request_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
}
proxy_buffering off is the line people forget. With buffering on, Nginx holds streamed tokens until a buffer fills, so the agent looks frozen and then dumps a paragraph at once. Enable the site, drop the default one, and test:
sudo ln -s /etc/nginx/sites-available/soduwork /etc/nginx/sites-enabled/soduwork
sudo rm -f /etc/nginx/sites-enabled/default
sudo nginx -t && sudo systemctl reload nginx
curl -sI https://work.example.com/ | head -3
A clean test and an HTTP/2 200 from the public name mean the whole chain works, from certificate to loopback port. If you get a 502 instead, the Hub isn’t on 18989, so check docker ps before touching Nginx.
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
HTTP/2 200
server: nginx/1.24.0 (Ubuntu)
date: Mon, 30 Nov 2026 11:23:57 GMT
If you built the Hub without --public-url, the docs’ route is to stop the instance, set publicUrl in deployment.json, and run up --no-build. The URL feeds the Hub’s HUB_PUBLIC_URL and CORS_ORIGINS settings in the generated Compose project, so a wrong value shows up as broken links and refused browser requests.
Connect Ollama in the Model catalog
Install Ollama on the same host with the upstream script. The Hub container needs to reach it, and a container can’t reach a service bound to the host’s 127.0.0.1, so Ollama has to listen on more than loopback:
curl -fsSL https://ollama.com/install.sh | sh
sudo systemctl edit ollama
Add the override below. The larger context length matters because a Pi request carries roughly 6,000 tokens of system prompt and tool definitions, and a smaller window truncates them:
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_CONTEXT_LENGTH=16384"
Binding to 0.0.0.0 is safe only while the cloud firewall or ufw keeps 11434 closed to the outside. Ollama has no authentication, and an open port lets anyone burn your CPU. Our Ollama hardening notes go deeper on this. Our lab relied on the cloud firewall alone. With ufw enabled, its default deny also drops the Hub container’s calls to the host, so allow the Compose subnet, which the gateway lookup below also reveals if you swap Gateway for Subnet. Our gateway of 172.18.0.1 sits in Docker’s default /16 pool, so the rule is sudo ufw allow from 172.18.0.0/16 to any port 11434 proto tcp. Restart and pull the models:
sudo systemctl daemon-reload
sudo systemctl restart ollama
ollama pull qwen2.5:3b
ollama pull qwen2.5:7b
Find the address the Hub container sees for the host. It’s the gateway of the Compose network, so swap in your own project ID:
docker network inspect soduwork-540f19873f8c_default --format "{{(index .IPAM.Config 0).Gateway}}"
On this host it returned 172.18.0.1, so the API address is http://172.18.0.1:11434/v1. Sign in to the admin console at your Hub URL with the credentials from earlier, open Capabilities then Model catalog, and click Connect a service. We filled the form like this:
- API protocol: OpenAI compatible
- Identifier:
ollama-local - Name: Ollama on web01
- API address:
http://172.18.0.1:11434/v1 - API key:
ollama(Ollama ignores it, the form wants something)
After saving, the service showed Enabled models 0/0. That’s the trap. Click Discover models on the service card, then enable each model it finds. Ours moved to 2/2:

- 1Connect a service
- 2Discover models
The README puts it plainly: “Saving a service credential alone does not create a selectable model.” Skip discovery and every user’s model picker stays empty, which is the most common complaint you’ll see about a fresh install.
Register a Linux runner
In the admin console, open Execution network, switch to the Runner devices tab and click Install on a new machine. It generates a runner ID and a one-time key, and gives you a command that pulls the installer from your own Hub.
Install python3-venv on the runner host first, because the installer builds a virtualenv and stock cloud images lack it. Know one thing before you run it with sudo: the script repoints Ubuntu’s apt sources to a mirror in China every time it runs as root, so plan to undo that right after:
sudo apt-get install -y python3-venv
curl -fsSL https://work.example.com/api/v1/download/runner-install.sh -o ~/runner-install.sh
sudo bash ~/runner-install.sh --hub https://work.example.com --id rn-web01-runner-e8335e --key t_REDACTED --tags linux,cpu
Paste the ID and key the console gave you in place of ours. The installer output is in Chinese; it unpacks the runner under /opt/soduwork-runner, downloads its own Node.js and Pi from npmmirror.com, and registers a systemd unit that sets pip and npm to Chinese registries too. It finished in 103 seconds:
Node v22.23.3 / npm 10.9.9
added 128 packages in 9s
Pi 0.84.4 已安装并通过启动自检
⑤ 配置写好了:/opt/soduwork-runner/runner.json
Node/npm/Pi 已通过自检;Agent 安装位于 Runner 私有数据目录。
Created symlink /etc/systemd/system/multi-user.target.wants/soduwork-runner.service → /etc/systemd/system/soduwork-runner.service.
装好了:执行机 rn-web01-runner-e8335e 已常驻(systemctl status soduwork-runner 看它)。
Restore the apt sources now, before anything else on that box runs apt. The installer keeps the original as a backup, and it rewrites the live file again on every reinstall, so repeat this after each one:
sudo cp /etc/apt/sources.list.d/ubuntu.sources.soduwork-backup /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get update
A finished install only proves systemd started the unit, not that the Hub accepted it. Check the status and the first log lines, so you know the WebSocket got through Nginx.
systemctl status soduwork-runner --no-pager
The log line with 已上线 (“online”) and a welcome op is the Hub accepting it. The concurrency limit of 20 is the default:
Active: active (running) since Mon 2026-11-30 11:29:27 UTC; 13s ago
Nov 30 11:29:27 web01 python[16755]: 2026-11-30 11:29:27,582 INFO 执行机 rn-web01-runner-e8335e @ web01 → https://work.example.com(并发上限 20)
Nov 30 11:29:27 web01 python[16755]: 2026-11-30 11:29:27,911 INFO 已上线:{"op": "welcome", "runnerId": "rn-web01-runner-e8335e", "serverTime": 1796038167, "caps": ["bin1", "sessionAck1"]}(二进制帧)
Back in the console, the runner shows as healthy and idle on the same tab. We covered the host column in the capture, but yours will show the machine’s hostname.

- 1Runner devices
- 2Install on a new machine
Remove a runner later with the same script and --uninstall. A runner that shows offline here usually means the WebSocket upgrade isn’t reaching the Hub, so check the two proxy_set_header lines for Upgrade and Connection first. A server block without them can look healthy, since plain page loads in the admin console don’t need the upgrade, while runners and streaming chats can’t work without it.
Install the Linux client and run a Pi task
The client ships as a .deb on the GitHub release. Check the hash against the release page before installing:
curl -fLO https://github.com/mdiri-ai/SoduWork/releases/download/v1.13.21/SoduWork-1.13.21-linux.deb # pin: match the Hub version #https://github.com/mdiri-ai/SoduWork/releases
sha256sum SoduWork-1.13.21-linux.deb
sudo apt-get install -y ./SoduWork-1.13.21-linux.deb
Your hash should match ours exactly, since it’s the same release asset. A mismatch means a corrupted or swapped download, so delete it and fetch again rather than installing it.
2b94a6bae5f3142355c3ce90d5d2ff9324219182f0b10fc06a816f8b109be0b6 SoduWork-1.13.21-linux.deb
ii soduwork 1.13.21 amd64
The first launch has three surprises, and the third one matters most because it decides where your data goes:
- With no desktop keyring, it asks for an encrypted local vault passphrase of 12 to 256 characters.
- The interface opens in Chinese; Interface language on the login screen switches it.
- It points at the vendor’s hosted service, not your Hub.
To use your own Hub, click Change address on the login screen, enter your URL in the Hub URL field, and click Save and connect. Sign in with a password; email sign-in needs mail configured on the Hub, which we skipped:

- 1Change address
- 2Hub URL
- 3Save and connect
Start a new chat and open the Runtime menu in the composer. Pick Pi, listed as “Enterprise models”. The other harnesses appear as Not installed on a fresh client, which is why this guide stays with Pi:

- 1Runtime
- 2Pi
- 3Not installed
We picked qwen2.5:3b in the model selector and gave Pi a small, checkable task: “Create a file named servers.csv with a header row name,ip,role and three example rows, then tell me how many data rows it has.” It took 3 minutes 15 seconds, with one failed write that Pi retried on its own.

Pi wrote the file correctly, a header plus three rows. The answer wasn’t. The 3B model ended on “Now, I will count the number of data rows in the file. Please be patient” and never gave the count. That’s a small model losing the thread in a multi-step agent loop, not a SoduWork fault, because the tool call worked and the Hub logged every request. So treat a 3B model as a way to test the plumbing, not for real work, and expect the 7B model to be too slow on CPU for the reason covered in the errors section.
The admin console’s Usage and cost page recorded the run as three model requests and 18.3K tokens, which is where the 6,000-token-per-request figure comes from:

During the run the model server held 2.7 GB and the client’s Electron processes about 250 MB each, for 4.9 GB used on the host. Client chats in Local mode run Pi inside the client; the org runner you registered serves jobs the Hub dispatches, not these chats.
Fix the errors we hit
Four problems came up between the build and the first task. Each one has a clear message or a clear symptom, and none needs a rebuild.
unknown directive “http2”
Our first site file used the newer standalone http2 on; directive. Ubuntu 24.04 ships Nginx 1.24, which predates it, so the test fails:
2026/11/30 11:23:48 [emerg] 11296#11296: unknown directive "http2" in /etc/nginx/sites-enabled/soduwork:16
nginx: configuration file /etc/nginx/nginx.conf test failed
Put http2 on the listen line instead, as in the file above. On Nginx 1.25.1 and newer the standalone directive is the preferred form.
ensurepip is not available
On a stock Ubuntu cloud image the runner installer failed to create its virtualenv. The Ubuntu cloud image we used didn’t ship python3-venv, so expect this on any fresh VM built from one.
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt install python3.12-venv
It recovered by itself. Separately, the installer had already switched /etc/apt/sources.list.d/ubuntu.sources to mirrors.tuna.tsinghua.edu.cn when it started, and kept a backup. That mirror is fine for users in China and slow, or unwanted, everywhere else. Check whether it happened to you:
diff /etc/apt/sources.list.d/ubuntu.sources.soduwork-backup /etc/apt/sources.list.d/ubuntu.sources
Our diff showed both archive URIs replaced. Nothing breaks right away, which is why it’s easy to miss, but every later apt upgrade on that box pulls from the new mirror.
44c44
< URIs: http://archive.ubuntu.com/ubuntu/
---
> URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
52c52
< URIs: http://security.ubuntu.com/ubuntu
---
> URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
The installer kept a backup, so undoing it takes two commands. Copy the original back and refresh the package index.
sudo cp /etc/apt/sources.list.d/ubuntu.sources.soduwork-backup /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get update
Installing python3-venv first removes the virtualenv error, but not the mirror change. The installer runs its mirror function whenever it runs as root, so the restore step after the runner install is required, not optional.
Model picker is empty after connecting Ollama
No error appears; the client’s model list is just blank. The service in the Model catalog reads Enabled models 0/0 because saving the connection doesn’t import anything. Run Discover models, enable the models, and reopen the picker. If discovery itself fails, test the address from inside the Hub container with docker exec and curl http://172.18.0.1:11434/v1/models, which tells you whether Ollama is still bound to loopback.
The model returned nothing new for 180 seconds
The client shows this in Chinese as 模型连续 180 秒没有返回新内容,SoduWork 已中断本次等待并保留工作现场。 with the code SODUWORK_AGENT_STREAM_STALLED. It comes from the client’s stall recovery, which aborts a model stream that’s been silent for three minutes and retries once:
const HARD_IDLE_MS = 3 * 60 * 1000;
const MAX_RECOVERIES = 1;
const ABORT_SETTLE_MS = 5 * 1000;
const ERROR_CODE = 'SODUWORK_AGENT_STREAM_STALLED';
Our run on the 3B model finished without it, but the arithmetic says CPU users are near the edge. A model streams nothing while it reads the prompt. At 6,100 tokens per request, qwen2.5:3b’s 33 tok/s prompt rate means about 185 seconds of silence, right at the limit, and qwen2.5:7b at 14.5 tok/s needs about 420 seconds. Those are estimates from one run’s measured rates, not a benchmark.
The limit is a constant in the client with no setting to raise it, so prompt speed is what you can change. Put the model on a GPU, which reads prompts far faster than eight CPU cores, or stay on the 3B model for CPU tests. Moving up to a 7B model on CPU is likely to hit this wall on the first turn.
Know what telemetry and update polling send
The README says the client sends no separate analytics or crash reports to MDiRi, the company behind SoduWork. What does leave the client goes to whichever Hub it’s connected to, and that’s service.soduwork.ai until you change the address. Two kinds of traffic go there:
- Usage accounting: conversation ID and title, agent, model, provider, tokens, cost and timestamps.
- Update checks: version, platform, architecture and channel, plus reports of update attempts.
Installed clients check for updates at startup and then every six hours. The interval is hardcoded in the client:
132: setInterval(checkClientUpdate, 6 * 60 * 60 * 1000);
There’s no setting to turn either off. Pointing clients at your own Hub keeps both on your server, which is the practical answer, so a self-hosted install sends nothing to the vendor as long as every client’s address is changed. That last condition is the weak spot, because a new hire who installs the client and signs up on the default screen lands on the hosted service. Conversation titles in your usage table are then data you’re responsible for, and clients launched from source skip the update check entirely.
If you compare this with other self-hosted agent platforms, the pattern is similar to Rakazo on Linux: the vendor’s hosted endpoint is the default, and self-hosting is what keeps prompts and usage records off third-party servers.
Upgrade the Hub and back up PostgreSQL
SoduWork’s data and upgrades guide asks you to back up the database, all file volumes and deployment.json together, taken from the same point in time, and to practise a restore. So run it while no agent tasks are in flight. Start with the database. A custom-format dump from the running container took under half a second on our fresh instance:
mkdir -p ~/backups
D=$(date +%F)
docker exec soduwork-540f19873f8c-db-1 pg_dump -U soduwork -Fc soduwork > ~/backups/soduwork-$D.dump
docker exec -i soduwork-540f19873f8c-db-1 pg_restore --list < ~/backups/soduwork-$D.dump | head
Listing the archive proves the dump is readable without restoring it. A backup you’ve never opened is a guess, so put that second line in your backup script and not just a one-off check.
;
; Archive created at 2026-11-30 11:58:31 UTC
; dbname: soduwork
; TOC Entries: 729
; Compression: gzip
; Dump Version: 1.15-0
; Format: CUSTOM
; Integer: 4 bytes
; Offset: 8 bytes
; Dumped from database version: 16.16 (Debian 16.16-1.pgdg12+1)
Run the next block in the same shell, since it reuses $D. Files live in seven named volumes besides the database: uploads, workspaces, repos, runtime, downloads, client-releases and releases. The last three hold installers and assets an admin uploads, so a restore without them loses data. A throwaway BusyBox container mounts all seven read-only and tars them next to the dump, and deployment.json goes with them because it holds the instance settings and stays private. Our lab run mounted only the first four, which is why the archive below is so small:
P=soduwork-540f19873f8c
docker run --rm -v ${P}_uploads:/data/uploads:ro -v ${P}_workspaces:/data/workspaces:ro -v ${P}_repos:/data/repos:ro -v ${P}_runtime:/data/runtime:ro -v ${P}_downloads:/data/downloads:ro -v ${P}_client-releases:/data/client-releases:ro -v ${P}_releases:/data/releases:ro -v ~/backups:/backup busybox tar czf /backup/soduwork-files-$D.tgz -C /data .
cp ~/.local/share/soduwork/self-host/deployment.json ~/backups/
chmod 600 ~/backups/deployment.json
ls -lh ~/backups
On an instance with one test chat the archive is tiny either way. These three files are the set to ship off the host:
-rw------- 1 ubuntu ubuntu 401 Nov 30 12:02 deployment.json
-rw-rw-r-- 1 ubuntu ubuntu 412K Nov 30 11:58 soduwork-2026-11-30.dump
-rw-r--r-- 1 root root 211 Nov 30 12:02 soduwork-files-2026-11-30.tgz
The repo also ships full_backup.py and db_admin.py for the same job; the manual commands above show exactly what’s being captured. For upgrades, the docs set the order: stop dispatching work and let running tasks finish, take the backup above, stop the instance, switch the source, then start it. The Hub goes first and clients after. Set TAG to the newest tag on the release page:
cd ~/SoduWork
python3 ops/self-host/deploy.py stop
TAG=v1.13.21 #https://github.com/mdiri-ai/SoduWork/releases
git fetch --depth 1 origin tag "$TAG"
git checkout "$TAG"
python3 ops/self-host/deploy.py up
No newer tag existed when we tested, so we exercised the restart path with up --no-build instead of a real version jump. deployment.json keeps the public URL and port, so you don’t pass --public-url again. When nothing changed in the source, up --no-build reattaches to running containers in about 2 seconds, and a cold start after deploy.py stop took 17 seconds. Stopping keeps everything:
This instance is stopped. Database, files and credentials are retained.
After an upgrade, curl /readyz, check that the runner reconnected, then update the clients. With the Hub on your own server and a dump on another, the remaining risk is the one the vendor flags itself. It’s beta software, so read the release notes before each upgrade, and if you’re weighing other agent CLIs, the OpenCode CLI cheat sheet, Codex CLI cheat sheet and Hermes Agent cheat sheet cover the alternatives.