Upgrading
Pre-1.0 policy
Section titled “Pre-1.0 policy”Between minor v0.x releases incompatible changes are possible. They are listed in the “Breaking changes” section of the release notes. Only the latest release is supported.
In v0.x an upgrade needs a full stop: every server replica and every gateway instance runs the same version, and a rolling upgrade is not supported (it comes with the public beta and expand/contract migrations).
Release notes
Section titled “Release notes”Web terminal, live view and terminate
Section titled “Web terminal, live view and terminate”This release adds a web terminal, a live view and Terminate (web-terminal.md). Check these changes before you upgrade:
- New listener
:8444. Every server replica opensWERBOT_INTERNAL_ADDR(default:8444), an mTLS-only listener that replicas use to bridge browser streams. It accepts only client certificates of the internal CA. Keep it on the private network and open it between the replicas. With several replicas setWERBOT_INTERNAL_ADDRandWERBOT_INTERNAL_URL(an address the other replicas can reach); with one replica no setting is needed (scaling.md). - Load balancer. The balancer in front of the server or
werbot webmust pass WebSocket upgrades and keep idle connections at least 60 seconds (scaling.md). Without it the web terminal and the live view do not connect; nothing else is affected. - UI origin. The server accepts a WebSocket only from the origin of
WERBOT_WEB_URL(it defaults toWERBOT_PUBLIC_URL). SetWERBOT_WEB_URLto the address users open in the browser (web.md). - Gateways. Upgrade standalone gateways with the server: older ones do not serve browser streams.
- Migrations.
00180to00182add the server replica registry, stream tickets, and the session columns for the entry (front) and terminate requests. They run at server start as usual. - Dependency. The server includes
github.com/coder/websocketv1.8.15; the UI includes@xterm/xtermand@xterm/addon-fit.
AI agents
Section titled “AI agents”This release adds AI agents (agents.md). Check these changes before you upgrade:
-
Stricter command classes, for everyone. Forms of programs that used to be
readbut write files or run programs now get a stricter class (policies.md):awkisopaquewhen its program callssystemorgetline, contains@(gawk directives such as@includeor@load), has|or>afterprintorprintf, comes from-for is not literal, or when an option other than-F/-v(--field-separator/--assign) is given.sedisopaquewith ane,worWcommand or aneorwflag ofs, with-f, with a script that does not parse and without a script.less -o/-O/--log-file;curl -o/-O/--output/--remote-name/--remote-name-all/-D/-c/--trace/--trace-ascii/--stderr/--libcurl/--etag-save/--hsts/--alt-svc;wget -O/-o/-a/-Pand their long forms arewrite. A barewget <url>iswrite; it staysreadonly with-O -,-O /dev/nullor--spider. The values-and/dev/nullstayread.git diff,git logandgit showwith--ext-diffor--textconvareopaque.lesswith options the classifier does not parse or a non-literal first argument isopaque.
Rules on
writeoropaqueand the Only allowed commands preset therefore deny these forms or ask approval for them, where they ran asreadbefore. Expect more refusals and approval requests for people under such rules; give a trusted script a class override if needed. -
Custom
permitpolicies apply to agents. Apermit (principal, …)without a principal type now also matches AI agents and can widen what they may do. Review your custom policies and writeprincipal is Werbot::Userwhere a policy is meant for people only (policies.md). -
Approvedline. After an approved command approval the gateway writesApprovedon stderr (or the terminal) before the command runs. Scripts that read the stderr of a waiting exec see this extra line. -
No exit status for a session the gateway ends. A command or terminal that a lock, a revoke, a cancel, the idle timeout, the max duration or a gateway shutdown ends now closes without an exit status (OpenSSH exits with 255) instead of exit 0, for people too. Scripts that read such a cut-short command as a success now see a failure.
-
Locks on agents. The lock targets
agent,agent_run,agents_of_userandall_agentsare now accepted (jit.md). -
Migrations.
00160to00164add the agent tables, link sessions and approvals to agent runs and add agent profiles (cli_session.agent_id). They run at server start as usual. -
New dependency. The CLI includes the MCP Go SDK (
github.com/modelcontextprotocol/go-sdkv1.8.0) forwerbot mcp, with its modulesgoogle/jsonschema-go,segmentio/asm,segmentio/encoding,yosida95/uritemplate/v3andgolang.org/x/time. No new environment variable.
Backup
Section titled “Backup”Back up before every upgrade. For the Docker Compose quick start, run in its directory (werbot/, with docker-compose.yaml):
docker compose exec -T postgres pg_dump -U werbot -Fc werbot > werbot-$(date +%F).dumpdocker run --rm -v werbot_werbot-data:/data -v "$PWD":/backup busybox \ tar -czf /backup/werbot-data-$(date +%F).tar.gz -C /data .The cluster example (docker-compose.cluster.yaml, run in its directory) keeps recordings in S3 (SeaweedFS), so back up Postgres only:
docker compose -f docker-compose.cluster.yaml exec -T postgres pg_dump -U werbot -Fc werbot > werbot-$(date +%F).dumpStore WERBOT_SECRET_KEY separately: without it the backup cannot be decrypted.
Upgrade with Docker Compose
Section titled “Upgrade with Docker Compose”- Read the release notes.
- Make a backup.
- Set the new tag in
.env:WERBOT_VERSION=v0.2.0. - Run:
docker compose pull && docker compose up -d --waitWith one container, up -d is a full stop: the old container stops before the new one starts.
Upgrade a cluster
Section titled “Upgrade a cluster”Use this order for a setup with several server replicas, werbot web and standalone gateways:
- Stop every gateway instance on every host. Active SSH sessions end, so plan a window.
- Stop every server replica and
werbot web. - Make a backup.
- Start the new server version. One replica applies migrations under an advisory lock; the others wait.
- Start
werbot webof the same version. A different version makes the UI show a version-mismatch banner. - Update and start the gateways.
For the example in deploy/, stop everything except Postgres (a plain stop with the gateways profile would stop Postgres too and the backup would fail):
docker compose -f docker-compose.cluster.yaml stop gateway-1 gateway-2 web serverdocker compose -f docker-compose.cluster.yaml exec -T postgres pg_dump -U werbot -Fc werbot > werbot-$(date +%F).dump# set WERBOT_VERSION in .envdocker compose -f docker-compose.cluster.yaml --profile gateways pulldocker compose -f docker-compose.cluster.yaml --profile gateways up -d --waitStop first: up -d recreates containers one by one, so the old and the new version would run together.
Upgrade the binary
Section titled “Upgrade the binary”Replace the werbot file and restart the process. Verify the download first: security.md.
Migrations
Section titled “Migrations”werbot server applies migrations (schema and River job queue) at start, under an advisory lock, so replicas do not race. To run them by hand: werbot migrate.
Downgrade
Section titled “Downgrade”Not supported. Set the previous WERBOT_VERSION and restore the backup:
docker compose exec -T postgres pg_restore -U werbot -d werbot --clean --if-exists < werbot-2026-11-18.dumpRestore into a stopped stack where only Postgres runs.
Gateways
Section titled “Gateways”A gateway runs the same version as the server. Stop it before the server upgrade and start it after (see Upgrade a cluster). A standalone gateway offline for more than 24h needs a new join token (configuration.md).
werbot web runs the same version as the server and is upgraded with it (see Upgrade a cluster).