Skip to content

Run the Cully UI with Docker ​

The Compose project runs two containers. cully-ui serves the browser and proxies API calls and live events. cully-server runs tasks, Claude Code, and Git worktrees on the private Compose network. The frontend is published at 127.0.0.1:7793 by default. Cully MCP, the data API, PostgreSQL, and Mem0 use their existing deployment.

Start and sign in ​

  1. Copy deploy/ui.env.example to a private file. Set the UID and GID from id -u and id -g, and set CULLY_UI_WORKSPACES to an existing directory dedicated to the repositories Cully can edit. Worktrees created by this server use container paths.

  2. Configure Claude as described below. Then build the Cully CLI from the checkout and run the stack command from the checkout root.

    sh
    cully ui stack --env-file /path/to/ui.env up
    cully ui stack --env-file /path/to/ui.env status
  3. Open http://127.0.0.1:7793/ on the Docker host. Use this command in a private terminal to get the browser access code, then enter it on the page.

    sh
    cully ui stack --env-file /path/to/ui.env code

The code grants access to this Cully instance, including its tasks and workspaces. Cully exchanges it for a browser cookie that is separate from the cookies of other Cully instances. Keep the persistent state to preserve the code across upgrades. The browser can use the base URL for sign-in.

Configure Claude ​

Credential sourceConfiguration
Subscription fileSet CULLY_UI_TOKENS_FILE to an existing file with one CLAUDE_CODE_OAUTH_TOKEN_N entry per account. The server mounts it read-only. Cully skips exhausted accounts and resumes a blocked task on an available one.
Single subscription token or API credentialsGive the server CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, or ANTHROPIC_AUTH_TOKEN through the private configuration. Cully passes the credentials directly to Claude Code when there is no subscription pool.
Claude Code loginIf there are no configured credentials, the server uses the CLI's stored login. If Claude reports an authentication failure, Cully tells you to sign into Claude Code in the environment that runs it.

The browser access code only authorizes browser access. It is separate from the credentials used by Claude Code and from any Cully MCP login. If you use an existing remote Cully MCP endpoint, connect it through Setup in the browser. The endpoint must be reachable from cully-server.

The image installs Claude Code. Set CULLY_UI_CLAUDE_VERSION in the configuration to select another version.

Serve the browser and tasks without Docker ​

On Linux with a systemd user manager, cully ui stack --host-server serves the embedded browser UI and runs tasks from the same native process. Tasks use the service account’s Claude, Codex, and Cursor profiles, Git configuration and tools on its PATH.

  1. Copy deploy/cully-ui.service to ~/.config/systemd/user/cully-ui.service. Set ExecStart to the installed Cully binary and add --repo arguments for your host workspaces. Configure the tools and any private credential-file paths the service needs through a systemd user drop-in. Run systemctl --user daemon-reload.
  2. Keep the service on loopback. Use the existing HTTPS ingress to forward requests to the service’s port. Stop the old Docker stack before reusing its ingress port or Cully state.
  3. Run cully ui stack --host-server up. Use the same option for status, logs, code, and stop. Both reload-server and reload-ui restart the single service. Use --host-unit NAME.service when you installed it under another name.

The example uses ~/.local/state/cully-ui for Cully state and leaves harness configuration in the native profile directories. When overriding CULLY_STATE_DIR, use the same path for the user service and for the code command. Container-era records may still refer to container paths. Choose a host workspace when continuing a saved task whose original path is unavailable.

Use your SSH identity in tasks ​

The task server runs with the configured UID and GID. Docker gives that account access to files under the workspace bind mount according to the host filesystem permissions.

Set CULLY_UI_SSH_AGENT_SOCKET to a socket owned by the same user on the Docker host and CULLY_UI_SSH_KNOWN_HOSTS to a trusted host-key file. Load the identities you want to delegate into that SSH agent. Anyone who can start a task on this Cully server can request authentication using those identities.

sh
cully ui stack --ssh-agent --env-file /path/to/ui.env reload-server

Use the same --ssh-agent and, if applicable, --prebuilt flags for subsequent stack commands. The socket and trusted host keys are mounted into the task server. When the host agent moves to a new socket, update the path and reload the server. Remote access as an account such as root@host uses the remote host's SSH policy and whichever identity your agent can use for that host.

Reload one container ​

Use the same configuration file for each action.

ActionResult
statusView both containers and the task server's health.
reload-uiReplace the frontend and keep the task server running. Refresh the browser at the same address to see the changes.
reload-serverReplace the task server and keep the frontend running. Cully marks active tasks as interrupted so you can resume them.
logsView recent container logs.
stopStop both containers while retaining the task state and workspace.

Use a stable HTTPS address ​

For browser access from another machine, expose the loopback frontend port through your HTTPS ingress. Keep the same public address when you update either container. Forward the loopback host expected by the frontend, preserve Cully's cookies and its API origin checks, and leave response buffering off for live events. Ingress that terminates TLS should send the browser's Cully session cookie with the Secure attribute.

Deploy with prebuilt binaries ​

Build from the revision you want to deploy with CGO_ENABLED=0. Place executable copies named cully-frontend and cully-server in CULLY_UI_RELEASE_DIR. Set CULLY_UI_STATE_DIR to a persistent directory and CULLY_UI_CLAUDE_BIN to a compatible Linux Claude Code executable. Make those paths accessible to the configured UID and GID.

sh
cully ui stack --prebuilt --env-file /path/to/ui.env up

To upgrade a component, replace its executable in the release directory and run its reload action with --prebuilt. Use the same flag with status, code, logs, and stop.

Built in the open. Apache 2.0 licensed.