Self-hosted worker for Oz cloud agents.
oz-agent-worker is a daemon that connects to Oz via WebSocket to receive and execute cloud agent tasks on self-hosted infrastructure.
- Docker daemon (accessible via socket or TCP)
- Service account API key with team scope
- Network egress to warp-server
The worker needs access to the Docker daemon to spawn task containers. Mount the host's Docker socket into the container:
docker run -v /var/run/docker.sock:/var/run/docker.sock \
-e WARP_API_KEY="wk-abc123" \
warpdotdev/oz-agent-worker --worker-id "my-worker"Note: Mounting the Docker socket gives the container access to the host's Docker daemon. This is required for the worker to create and manage task containers.
go install github.com/warpdotdev/oz-agent-worker@latest
oz-agent-worker --api-key "wk-abc123" --worker-id "my-worker"git clone https://github.com/warpdotdev/oz-agent-worker.git
cd oz-agent-worker
go build -o oz-agent-worker
./oz-agent-worker --api-key "wk-abc123" --worker-id "my-worker"The worker automatically discovers the Docker daemon using standard Docker client mechanisms, in this order:
DOCKER_HOSTenvironment variable (e.g.,unix:///var/run/docker.sock,tcp://localhost:2375)- Default socket location (
/var/run/docker.sockon Linux,~/.docker/run/docker.sockfor rootless) - Docker context via
DOCKER_CONTEXTenvironment variable - Config file (
~/.docker/config.json) for context settings
Additional supported environment variables:
DOCKER_API_VERSION- Specify Docker API versionDOCKER_CERT_PATH- Path to TLS certificatesDOCKER_TLS_VERIFY- Enable TLS verification
export DOCKER_HOST="tcp://remote-host:2376"
export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH="/path/to/certs"
oz-agent-worker --api-key "wk-abc123" --worker-id "my-worker"Copyright © 2026 Warp