Run the Agent Computer sandbox locally. Gives you a full desktop environment with Claude, Codex, and OpenCode agents accessible through a browser UI.
# Set your API keys
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
# Run it
nix run github:getcompanion-ai/computer-harnessOr without Nix:
docker run --rm -it \
-p 8080:8080 -p 6080:6080 -p 2222:2222 \
-e ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
ghcr.io/getcompanion-ai/computer-harness:latest| Port | Service |
|---|---|
| 8080 | Agent UI - browser-based agent interface |
| 6080 | VNC - live desktop view via noVNC |
| 2222 | SSH - ssh -p 2222 node@localhost |
Override ports with environment variables:
COMPUTER_UI_PORT=9090 COMPUTER_VNC_PORT=9091 nix run github:getcompanion-ai/computer-harnessPass extra Docker flags through:
nix run github:getcompanion-ai/computer-harness -- -v /path/to/workspace:/home/node/workspacePass extra env vars:
COMPUTER_ENV="-e GITHUB_TOKEN=$GITHUB_TOKEN" nix run github:getcompanion-ai/computer-harness