Skip to content

Sandbox Environment

User and home directory

The sandbox runs as the code user. The home directory is /home/code, backed by a persistent Docker volume (vibepit-home) that survives across sessions. Homebrew is stored in a second persistent volume (vibepit-linuxbrew) mounted at /home/linuxbrew.

The UID and GID of the code user match your host user, so file ownership is consistent between the host and the container.

Mounts

Path Type Writable Persists
Your project directory (original absolute path) Bind mount Yes Yes (host filesystem)
/home/code Docker volume Yes Yes (across sessions)
/home/linuxbrew Docker volume Yes Yes (across sessions)
/tmp tmpfs Yes No (cleared on container stop)
/ (everything else) Container image No (read-only) No

Vibepit hides the project's .vibepit configuration directory inside the sandbox, so the agent cannot read or change its own allowlist rules.

Environment variables

Vibepit sets these environment variables inside the sandbox container:

Proxy variables

Variable Value
HTTP_PROXY http://<proxy-ip>:<proxy-port>
HTTPS_PROXY http://<proxy-ip>:<proxy-port>
http_proxy http://<proxy-ip>:<proxy-port>
https_proxy http://<proxy-ip>:<proxy-port>
NO_PROXY localhost,127.0.0.1
no_proxy localhost,127.0.0.1

Vibepit sets both uppercase and lowercase variants because tools differ in which one they read. Tools that honor these variables (curl, pip, npm, and most language package managers) send their traffic through the filtering proxy.

Other variables

Variable Value
TERM Inherited from your host (e.g., xterm-256color)
COLORTERM Inherited from your host (if set)
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
VIBEPIT_PROJECT_DIR Absolute path to your project directory

DNS

The container runtime's DNS settings point the sandbox at the proxy's DNS server. The proxy checks every query against the DNS allowlist. Allowlisted domains get a real answer, and all other queries return NXDOMAIN.

Hostname

The sandbox container's hostname is vibes.

Init process

An init process (tini) runs as PID 1 to handle signal forwarding and zombie reaping.

Container hardening

Setting Value
Root filesystem Read-only
Capabilities All dropped (CAP_DROP: ALL)
Security options no-new-privileges
Memory limit Unlimited unless set with --memory or the memory config key (details)

For what each control does, see the Security Model.