Arc0

Arc0 CLI

Install and configure Arc0 CLI on macOS, Linux, or Windows. Connect Claude Code, Codex, and Gemini CLI to your phone via a secure WebSocket tunnel.

The CLI captures agent sessions via tmux and streams them over a secure WebSocket tunnel. Your full codebase never leaves your machine.

What It Does

  1. Attaches to tmux — Watches your terminal sessions where agents run
  2. Parses content — Identifies questions, diffs, plans, and status updates
  3. Streams via WebSocket — Sends content to your phone through a secure WSS tunnel
  4. Relays responses — Forwards your prompts and approvals back to the agent

Your full codebase never leaves your machine.

Installation

brew tap arc0ai/tap
brew install arc0

npm

npm install -g @arc0/cli

Binary Download

curl -L https://github.com/amicalhq/arc0/releases/latest/download/arc0-darwin-arm64.tar.gz | tar xz
sudo mv arc0 /usr/local/bin/

For Intel Macs, use arc0-darwin-x64.tar.gz.

npm install -g @arc0/cli

Binary Download

curl -L https://github.com/amicalhq/arc0/releases/latest/download/arc0-linux-x64.tar.gz | tar xz
sudo mv arc0 /usr/local/bin/
sudo chmod +x /usr/local/bin/arc0

For ARM64 systems, use arc0-linux-arm64.tar.gz.

npm install -g @arc0/cli

Binary Download

  1. Download arc0-windows-x64.zip from GitHub Releases
  2. Extract to a folder (e.g., C:\Program Files\Arc0)
  3. Add the folder to your PATH

WSL

Follow the Linux instructions inside your WSL environment.

Verify installation:

arc0 --version

Getting Started

Start Arc0 CLI

arc0 start

This creates the config directory at ~/.arc0/.

Pair with Mobile App

arc0 pair

Scan the QR code with the Arc0 mobile app.

Run Your Agent

Start your coding agent in a tmux session:

tmux new -s dev
claude

Arc0 CLI automatically captures the session and streams it to your phone.

Configuration

Arc0 CLI looks for config at ~/.arc0/config.yaml.

Example Configuration

~/.arc0/config.yaml
# Server settings
port: 3847
host: "127.0.0.1"

# Logging
log_level: "info"  # debug, info, warn, error

# Notifications
notifications:
  enabled: true
  on_question: true
  on_error: true
  on_diff: true
  on_plan: true
  on_complete: false

# Agent detection
agents:
  - name: "claude"
    pattern: "claude"
  - name: "codex"
    pattern: "codex"
  - name: "gemini"
    pattern: "gemini"

Command-Line Flags

FlagDescriptionDefault
--portPort for the local server3847
--log-levelLogging verbosityinfo
--no-notificationsDisable notificationsfalse
--configPath to config file~/.arc0/config.yaml

Environment Variables

VariableDescription
ARC0_PORTServer port
ARC0_LOG_LEVELLogging level
ARC0_CONFIGConfig file path

Custom Agents

Add detection patterns for agents Arc0 doesn't recognize:

~/.arc0/config.yaml
agents:
  - name: "my-agent"
    pattern: "my-custom-agent"
    question_patterns:
      - "\\?$"
      - "^Should I"
      - "^Do you want"

Supported Platforms

PlatformSupport
macOS (Intel)Full
macOS (Apple Silicon)Full
Linux (x64)Full
Linux (ARM64)Full
Windows (x64)Full
WSLFull

Requirements

  • Node.js 18+ (for npm installation) or standalone binary
  • tmux installed on your system

Updating

bash brew upgrade arc0
bash npm update -g @arc0/cli
Download the latest release and replace the existing binary.

Troubleshooting

Command not found? Make sure the installation directory is in your PATH.

Permission denied? Use sudo for global npm installs, or use nvm.

See Troubleshooting for more help.

Next Steps

On this page