Files
composes/paseo/README.md
T
tiennm99 2a4e635e09 fix: show the container hostname in the shell prompt
Coolify injects HOST=0.0.0.0 into every compose app, and zsh seeds $HOST and
the %m/%M prompt escapes from that variable rather than calling gethostname().
The prompt read "0", the first dot-separated field of 0.0.0.0, even though the
container hostname itself was set correctly.

Pass the hostname in as HOST alongside the hostname: key, both from a single
SERVICE_HOSTNAME variable. Neither service reads HOST itself -- code-server
binds [::]:8443, Paseo binds PASEO_LISTEN -- so this only affects the prompt.

Not named HOSTNAME: Compose interpolation lets the deploying shell's
environment win over the .env file, and HOSTNAME is set in every container,
including the one Coolify runs in.

PASEO_LABEL is renamed to SERVICE_HOSTNAME; it was never a Paseo variable.
The example git identity is blanked out along with it.
2026-09-18 09:35:04 +07:00

12 KiB

paseo

Paseo — self-hosted daemon and web UI for running coding agents. Built from a local Dockerfile that adds gh, glab, Go, Python, a C toolchain, and shell tooling to the official image, which ships none of it. The agent CLIs and SDKMAN are not baked in; entrypoint.sh installs them into $HOME on start, see Agents.

Setup

  1. Set the variables from .env.example in Coolify or Dokploy.

  2. Point the domain at port 6767 and deploy.

  3. Open the domain. At the pairing screen enter the host with the port, then the PASEO_PASSWORD value:

    paseo.example.com:443
    
  4. List the agents you want in AGENT_CLIS; the first start installs them. Log in to each — see Agents — plus gh auth login and glab auth login.

The port must be typed by hand. The UI rejects a bare hostname, and the auto-connect hint does not help: the daemon builds it from the Host header, browsers drop the default :443, and the UI discards a hint with no port. What you see instead is its localhost:6767 placeholder, which in a browser means your own machine.

If it stays on localhost:6767 after you enter the address, clear site data — the old entry is cached in localStorage.

Environment

Variable Purpose
PASEO_PASSWORD Web UI and API login, and the paseo user's sudo password. Generate with openssl rand -base64 24.
PASEO_HOSTNAMES Domains allowed to reach the daemon, comma-separated. Your domain must be listed.
PASEO_TRUSTED_PROXIES Set to uniquelocal, or the UI loads but never connects.
AGENT_CLIS Agent CLIs to install on start if missing, space- or comma-separated. Empty installs none. See Agents.
SERVICE_HOSTNAME Container hostname, shown as the host label in the UI and in the shell prompt. Without it the label is a random container ID.
GIT_NAME / GIT_EMAIL Git author and committer identity for agents and terminals.
TZ Timezone for logs and agent shells.
SHELL Shell for Paseo's terminals. Paseo reads $SHELL and falls back to /bin/sh, ignoring the login shell, so chsh has no effect.

SERVICE_HOSTNAME is used twice: as the container's hostname: and as the HOST variable inside it. Coolify injects HOST=0.0.0.0 into every compose app, and zsh seeds $HOST and the %m/%M prompt escapes from that variable rather than calling gethostname() -- so the prompt reads 0, the first dot-separated field of 0.0.0.0. Paseo itself never reads HOST -- it binds PASEO_LISTEN -- so overriding it only affects the prompt. bash is unaffected; its \h uses the real hostname.

It is not called HOSTNAME, the obvious name, because Compose interpolation lets the deploying shell's environment win over the .env file, and HOSTNAME is set in every container -- including the one Coolify itself runs in. The container would silently take Coolify's hostname instead of this value.

PASEO_LABEL was this variable's old name. It was never a Paseo variable, only ours -- the daemon reads none of PASEO_LABEL, SERVICE_HOSTNAME or HOST, and takes the host label from the container hostname.

PASEO_TRUSTED_PROXIES matches the proxy's source IP, so hostnames are rejected. The daemon trusts X-Forwarded-Proto from loopback only, but Coolify's Traefik reaches it from the Docker bridge network — so it reads the request as plain HTTP, tells the UI to use ws:// on an https:// page, and the browser blocks that as mixed content. uniquelocal covers the private ranges Docker uses. An exact CIDR works too, but Coolify assigns a fresh subnet per project.

Networking

Listens on 6767, published nowhere — the platform maps the domain to it, so localhost:6767 on the host refuses connections. See the root README for why.

Agents

The image installs none of them. entrypoint.sh does, on start, for every name in AGENT_CLIS whose command is not already on PATH:

AGENT_CLIS=claude codex

That is the default in .env.example. The other four are opt-in — add their names to install them too.

Agent Name in AGENT_CLIS Installer it runs Log in with
Claude Code claude claude.ai/install.sh claude
Codex codex chatgpt.com/codex/install.sh codex login
opencode opencode opencode.ai/install opencode auth login
Copilot CLI copilot gh.io/copilot-install /login inside copilot
Oh My Pi omp omp.sh/install omp
Pi pi pi.dev/install.sh pi

Each vendor's own installer, run as paseo through gosu, landing in $HOME — ~/.local/bin for most, ~/.opencode/bin for opencode. $HOME is the paseo-home volume, so the binaries and the logins both survive a redeploy, and the check at the top of each start is all that runs from then on.

Budget for the first start with a fresh volume: these are fat static binaries, a few hundred MB each — Claude Code is around 216 MB, omp around 208 MB — so even the default two hold the daemon back by a minute or more, and all six by several. Nothing is wrong; it is downloading. Later starts skip everything already present. An agent that fails to install is logged and skipped rather than taking the container with it, so a bad release or a network blip cannot leave you without a shell.

An unrecognised name is logged and skipped too. To install one by hand instead, run its installer in a terminal inside Paseo as paseo — never under sudo, where they target root's home and land outside the volume, and where Claude Code's refuses outright.

Both directories are on the image's PATH, so Paseo picks an agent up as soon as its installer finishes — no redeploy, no daemon restart. The shell rc entry the installers add only reaches interactive terminals; the daemon looks the binary up in its own environment, and without these entries it reports every self-installed agent as unavailable while a terminal runs it fine.

The installers pull in any runtime they need, into $HOME as well. omp is the one to know about: it is Bun-compiled, and with no Bun on PATH its installer takes the prebuilt binary. Ask for the source build (--source) and it installs Bun to ~/.bun first.

Why on start and not in the Dockerfile. Two reasons. paseo cannot write /usr/local, so a CLI installed there can never apply its own update — every one of these ships an updater (claude update, codex update, omp update, …) that expects to rewrite its own binary, and it fails on permissions; Claude Code nags about it at startup. And a build-time install into /home/paseo would only ever reach a new volume: Docker seeds a named volume from the image once, at creation, and never again. Rebuild with a seventh agent added and nobody with an existing paseo-home would get it. The start-time check has neither problem — it fires on every fresh volume, and the agents update themselves in place afterwards.

Pi and Oh My Pi are separate projects sharing an ancestor; their commands do not collide.

SDKMAN

entrypoint.sh installs SDKMAN on start too, into ~/.sdkman, whenever that directory is missing. No variable gates it — the JVM toolchain is small next to an agent CLI and the image ships no Java at all.

Install what you need from a terminal:

sdk install java
sdk install gradle

sdk is a shell function, defined by the hook the installer appends to .bashrc and .zshrc, so it exists in terminals only. The current/bin directory of five candidates — java, scala, gradle, maven, sbt — is on the image's PATH regardless, so the binaries themselves resolve for the daemon and for commands an agent runs non-interactively, where no rc file is read. Install a candidate outside that five and you get the sdk function in a terminal but not the binary elsewhere; add its current/bin to the PATH line in the Dockerfile if you want it there.

SDKMAN_DIR is set in the image, to the same ~/.sdkman the installer would have picked on its own. It is what puts the candidate paths above and the install location in one place.

Storage

Volume Mount Holds
paseo-home /home/paseo Daemon state, agent CLIs and their configs and credentials (.claude, .codex, .config/*), SDKMAN and its candidates
paseo-workspace /workspace Code the agents work on

The agent CLIs, gh and glab all keep their config under /home/paseo, so every login survives a redeploy — the base image points CLAUDE_CONFIG_DIR, CODEX_HOME and the XDG_* variables into it. The agent binaries live there too, since you install them yourself. Dotfiles as well, so a .zshrc or oh-my-zsh install persists. Anything written outside $HOME (chsh, apt install) is lost on rebuild.

Image

Tool Source Why not apt
gh GitHub's signed apt repo Debian does not package it
glab (GLAB_VERSION) The .deb on GitLab's releases page Debian does not package it, and GitLab runs no apt repo
Go (GO_VERSION) Official go.dev tarball Debian 12 ships 1.19
Python (PYTHON_VERSION) uv python install Debian 12 ships 3.11
less nano jq unzip zip lsof psmisc ugrep bfs zsh sudo apt —
build-essential apt —

Bump a pinned version with a build arg, e.g. --build-arg GO_VERSION=1.27.1. uv itself is installed too. GLAB_VERSION is pinned rather than tracking the latest because GitLab's download URL carries the version in the path.

The Dockerfile itself only says what each layer installs. The reasoning is all here:

  • $HOME is /home/paseo, a volume that masks anything the build writes there. Hence /opt/python and /usr/local/go rather than the defaults.
  • Do not add agent CLIs here, or a runtime only they need. Under /usr/local they cannot self-update; in $HOME they can, and they persist anyway. Bun used to be here for omp and went the same way. See Agents.
  • One concern per layer, cheapest and least-changing first, so bumping a version rebuilds as little as possible.
  • build-essential is the C toolchain the language layers assume but do not ship: cgo, npm's node-gyp addons and Python C extensions all shell out to gcc and make. It rides along in the apt layer so there is one apt-get update.
  • git and curl are already in the base image. sudo is not, despite Debian's base-passwd shipping an empty sudo group, so the apt layer adds it and puts paseo in the group.
  • The image stays root: the entrypoint chowns the volumes, then drops to the paseo user (uid 1000) with gosu.
  • entrypoint.sh is installed as /usr/local/bin/entrypoint, next to the base image's paseo-docker-entrypoint, which it wraps. It was paseo-sudo-entrypoint when setting the sudo password was all it did.
  • entrypoint.sh runs before the base entrypoint, not after: that one ends in exec gosu paseo and never returns, and by then is no longer root. Every job it has needs root — chpasswd, the chown, and gosu paseo for the SDKMAN and agent installs.
  • It sets the paseo password on every start rather than at build, so the password never lands in an image layer, and because /etc/shadow is in the image rather than on a volume and reverts on each recreate. The password is piped, not passed as an argument, since arguments are visible in ps; chpasswd splits on the first colon, so a colon in the password is fine. An empty PASEO_PASSWORD leaves the account locked and sudo unusable.
  • It also chowns /home/paseo before installing anything, agent CLI or SDKMAN. A freshly created volume can arrive owned by root, and the base entrypoint's own chown has not run yet at that point.
  • sudo resets PATH to its secure_path, which excludes /usr/local/go/bin. Use sudo env PATH="$PATH" go ... or the full path.
  • The agent PATH entries belong in the image, not in a shell rc: the daemon probes for each provider's binary with which in its own environment, which comes from the image and never sources an rc file. They are spelled /home/paseo/... because ENV only expands variables the Dockerfile itself set earlier.