This release is a pre-release and may not be stable for production use.
viberun
viberun is a shell-first, agent-native app host. Run viberun to open the shell, then vibe <app> to jump into a persistent Ubuntu container on a remote host. App data is stored under /home/viberun and survives container restarts or image updates.
Quick start (end-to-end)
You need a local machine with ssh and a reachable Ubuntu host (VM or server) that you can SSH into with sudo access.
1) Install the CLI
curl -fsSL https://viberun.sh | bash
Verify:
viberun --version
Optional overrides (advanced):
curl -fsSL https://viberun.sh | bash -s -- --dev
curl -fsSL https://viberun.sh | bash -s -- --dir ~/.local/bin --bin viberun
Dev channel (latest main):
npx -y viberun@dev
uvx viberun-dev
curl -fsSL https://viberun.sh | bash -s -- --dev
Or with env vars:
curl -fsSL https://viberun.sh | VIBERUN_INSTALL_DIR=~/.local/bin VIBERUN_INSTALL_BIN=viberun bash
2) Connect a host (once per VM)
Start the shell:
viberun
If this is the first time, you'll see a setup banner. Type:
setup
Enter your SSH login (for example, user@myhost in ~/.ssh/config).
You can also run setup directly from the CLI:
viberun setup myhost
3) Start your first app
Inside the shell:
vibe hello-world
If this is the first run, the server will create the container.
Detach without stopping the agent: Ctrl-\ . Reattach later with vibe hello-world.
Paste clipboard images into the session with Ctrl-V; viberun uploads the image and inserts a /tmp/viberun-clip-*.png path.
4) Hello-world prompt (paste inside the session)
Create a beautiful hello-world web app with a simple, tasteful landing page.
5) Open the app
From the shell:
open hello-world
When the shell starts, viberun forwards app ports automatically. open prefers a public URL if configured; otherwise it uses the localhost URL.
Common commands
Shell commands (inside viberun):
vibe myapp
open myapp
apps
app myapp
rm myapp
CLI commands (advanced):
viberun setup [<host>]
viberun wipe [<host>]
Table of contents
Git setup
Git, SSH, and the GitHub CLI are installed in containers. viberun seeds git config --global user.name and user.email from your local Git config into a host-managed config file that is mounted into each app container and applied on startup. This removes the common "first commit" setup step without auto-authing you.
Choose one of these auth paths:
- SSH (agent forwarding): Start viberun with
VIBERUN_FORWARD_AGENT=1 viberun, thenvibe <app>. For existing apps, runapp <app>followed byupdateonce to recreate the container with the agent socket mounted. Thenssh -T git@github.cominside the container to verify access. - HTTPS (GitHub CLI): Run
gh auth loginand choose HTTPS, thengh auth setup-git. Verify withgh auth status.
If you update your local Git identity later, restart the app container (or run app <app> then update) to re-apply the new values on startup.
Development
This repo is Go-first and uses mise for tool and task orchestration.
Setup
mise install
Build
mise exec -- go build ./cmd/viberun
mise exec -- go build ./cmd/viberun-server
Run locally
mise exec -- go run ./cmd/viberun -- --help
mise exec -- go run ./cmd/viberun-server -- --help
Test and vet
mise exec -- go test ./...
mise exec -- go vet ./...
Container image
mise run build:image
# fallback: docker build -t viberun .
# proxy image (Caddy + auth):
docker build -f Dockerfile.proxy -t viberun-proxy .
E2E and integration
bin/viberun-e2e-local
bin/viberun-integration
Setup in development
When you run viberun via go run (or set VIBERUN_DEV=1), setup defaults to staging the local server binary and building the container image locally. Run:
viberun
setup
Or directly:
viberun setup myhost
Under the hood, it builds a viberun:dev image for the host architecture, streams it over ssh with docker save | docker load, and tags it as viberun:latest on the host.
For the full build/test/E2E flow, see DEVELOPMENT.md.
Architecture
High-level flow
viberun (shell)
-> vibe <app>
-> ssh <host>
-> viberun-server gateway (mux)
-> viberun-server <app>
-> docker container viberun-<app>
-> agent session (tmux)
container port 8080
-> host port (assigned per app)
-> mux forward -> http://localhost:<port>
-> (optional) host proxy (Caddy)
-> https://<app>.<domain>
Core components
- Client:
viberunCLI on your machine. - Server:
viberun-server gatewayexecuted on the host via SSH (no long-running daemon required). - Container:
viberun-<app>Docker container built from theviberun:latestimage. - Agent: runs inside the container in a tmux session (default provider:
codex). - Host RPC: local Unix socket used by the container to request snapshot/restore operations.
- Proxy (optional):
viberun-proxy(Caddy +viberun-auth) for app URLs and login.
Session lifecycle
viberunconnects to the host (from your saved config) and starts theviberun-server gatewayover SSH.vibe <app>creates the container if needed, or starts it if it already exists.- The agent process is attached via
docker execinside a tmux session so it persists across disconnects. viberunforwards app ports when the shell starts so you can openhttp://localhost:<port>immediately.
Setup pipeline
The setup script (run on the host) does the following:
- Verifies the host is Ubuntu.
- Installs Docker (if missing) and enables it.
- Installs Btrfs tools (
btrfs-progs) for volume snapshots. - Pulls the
viberuncontainer image from GHCR (unless using local image mode). - Downloads and installs the
viberun-serverbinary.
If setup is run from a TTY, it will offer to set up a public domain name (same as proxy setup in the shell).
Useful setup overrides:
VIBERUN_SERVER_REPO: GitHub repo for releases (defaultshayne/viberun).VIBERUN_SERVER_VERSION: release tag orlatest.VIBERUN_IMAGE: container image override.VIBERUN_PROXY_IMAGE: proxy container image override (for app URLs).VIBERUN_SERVER_INSTALL_DIR: install directory on the host.VIBERUN_SERVER_BIN: server binary name on the host.VIBERUN_SERVER_LOCAL_PATH: use a local server binary staged over SSH.VIBERUN_SKIP_IMAGE_PULL: skip pulling from GHCR (used for local builds).
Networking and ports
- Each app container exposes port
8080internally. - The host port is assigned per app (starting at
8080) and stored in the host server state. viberunforwards app ports when the shell starts sohttp://localhost:<port>connects to the host port.- If the proxy is configured, apps can also be served over HTTPS at
https://<app>.<domain>(or a custom domain). Access requires login by default and can be made public per app.
App URLs and proxy
viberun can optionally expose apps via a host-side proxy (Caddy + viberun-auth).
Set it up once per host (inside the shell):
proxy setup [<host>]
You'll be prompted for a base domain and public IP (for DNS), plus a primary username/password. Create an A record (or wildcard) pointing to the host's public IP.
After setup, in the shell:
app <app>thenurlshows the current URL and access status.url publicorurl privatetoggles access (default requires login).url set-domain <domain>orurl reset-domainmanages custom domains.url disableorurl enableturns the URL off/on.url openopens the URL in your browser.usersmanages login accounts;app <app>thenuserscontrols who can access the app.
If URL settings change, run app <app> then update to refresh VIBERUN_PUBLIC_URL and VIBERUN_PUBLIC_DOMAIN inside the container.
Snapshots and restore
Snapshots are Btrfs subvolume snapshots of the app's /home/viberun volume (auto-incremented versions).
On the host, each app uses a loop-backed Btrfs file under /var/lib/viberun/apps/<app>/home.btrfs.
app <app>thensnapshotcreates the nextvNsnapshot.app <app>thensnapshotslists versions with timestamps.app <app>thenrestore <vN|latest>restores from a snapshot (latestpicks the highestvN).rm <app>removes the container, the app volume + snapshots, and the host RPC directory.
Restore details:
- The host stops the container (if running) to safely unmount the volume.
- The current
@homesubvolume is replaced by a new writable snapshot of@snapshots/vN. - The container is started again, and s6 reloads services from
/home/viberun/.local/services.
Host RPC bridge
When you open a session, the server creates a Unix socket on the host and mounts it into the container at /var/run/viberun-hostrpc. The container uses it to request snapshot and restore operations. Access is protected by a per-session token file mounted alongside the socket.
Configuration and state
Local config lives at ~/.config/viberun/config.toml (or $XDG_CONFIG_HOME/viberun/config.toml) and stores:
default_hostagent_providerhosts(alias mapping)
Host server state lives at ~/.config/viberun/server-state.json (or $XDG_CONFIG_HOME/viberun/server-state.json) and stores the port mapping for each app.
Proxy config (when enabled) lives at /var/lib/viberun/proxy.toml (or $VIBERUN_PROXY_CONFIG_PATH) and stores the base domain, access rules, and users.
When enabled, the server injects VIBERUN_PUBLIC_URL and VIBERUN_PUBLIC_DOMAIN into containers.
Agents
Supported agent providers:
codex(default)claudegeminiampcode(alias:amp)opencode
Custom agents can be run via npx:<pkg> or uvx:<pkg> (for example, set config set agent npx:@sourcegraph/amp@latest in the shell).
Set the default agent with config set agent <provider> in the shell.
To forward your local SSH agent into the container, start viberun with VIBERUN_FORWARD_AGENT=1 viberun. For existing apps, run app <app> then update once to recreate the container with the agent socket mounted.
Base skills are shipped in /opt/viberun/skills and symlinked into each agent's skills directory. User skills can be added directly to the agent-specific skills directory under /home/viberun.
Security model
- All control traffic goes over the mux over SSH; the server is invoked on demand and does not expose a network port.
- The host RPC socket is local-only and protected by filesystem permissions and a per-session token.
- Containers are isolated by Docker and only the app port is exposed.
- App URLs are optional: the proxy requires login by default and can be made public per app with
app <app>thenurl public.
Wipe (safety)
viberun wipe [<host>] deletes local config and wipes all viberun data on the host.
It requires a TTY and asks you to type WIPE.
On the host, wipe removes:
- All containers named
viberun-*, any containers usingviberunimages, and the proxy container (defaultviberun-proxy). - All
viberunimages (including the proxy image). - App data and snapshots under
/var/lib/viberun(including per-app Btrfs volumes). - Host RPC sockets in
/tmp/viberun-hostrpcand/var/run/viberun-hostrpc. /etc/viberun,/etc/sudoers.d/viberun-server, and/usr/local/bin/viberun-server.
Locally, it removes ~/.config/viberun/config.toml (and legacy config if present).
Repository layout
cmd/: Go entrypoints (viberun,viberun-server,viberun-auth).internal/: Core packages (config, server state, SSH args, target parsing, TUI helpers).bin/: Helper scripts for installs, integration/E2E flows, and container utilities.skills/: Codex skill definitions used inside containers.config/: Shell/TMUX/Starship config, auth assets, and runtime configs.Dockerfile: Base container image definition.Dockerfile.proxy: Proxy image definition (Caddy + auth).
Troubleshooting
unsupported OS: ... expected ubuntu: setup currently supports Ubuntu only.docker is required but was not found in PATH: install Docker on the host or rerun setup.missing btrfs on host: rerun setup to installbtrfs-progsand ensure sudo access.no host provided and no default host configured: runsetupin the shell orviberun setup myhost.container image architecture mismatch: delete and recreate the app (rm <app>).proxy is not configured: runproxy setup(then retryapp <app>andurl).
Metadata
Release files for viberun-dev 0.0.0.dev20260125184521
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viberun_dev-0.0.0.dev20260125184521.tar.gz | 26.4 MB | With provenance | Details for viberun_dev-0.0.0.dev20260125184521.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viberun_dev-0.0.0.dev20260125184521-py3-none-any.whl | Python 3 | none | any | Details for viberun_dev-0.0.0.dev20260125184521-py3-none-any.whl |
Total release size: 52.9 MB
Release files / viberun_dev-0.0.0.dev20260125184521.tar.gz
| Download URL | viberun_dev-0.0.0.dev20260125184521.tar.gz |
|---|---|
| Size | 26.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a489fa4bc9fdcadf0c0314d53804438ff48bbb64eafbda5f68f4693eb60b3b9
|
|
BLAKE2b-256 checksum How to use checksums |
5312447f9841f93ef7e7294a5025794974d3a4abe53182b40428f0cce36cfe10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logRelease files / viberun_dev-0.0.0.dev20260125184521-py3-none-any.whl
| Download URL | viberun_dev-0.0.0.dev20260125184521-py3-none-any.whl |
|---|---|
| Size | 26.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d3f4d3d793ce5965f1a617bfce4b9fe8044dfaba6738242dbf8bbea9245fc54
|
|
BLAKE2b-256 checksum How to use checksums |
fca023455530721559d3ede1480b5c33b951d726be456ad0e36f79b31aa8b2c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logSecurity for viberun-dev 0.0.0.dev20260125184521
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for viberun_dev-0.0.0.dev20260125184521.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.