Skip to main content

Codewire CLI

Codewire CLI (cw) is a persistent process server for AI coding agents. Like tmux, but purpose-built for long-running LLM processes — native terminal scrolling, copy/paste, and no weird key chords. Tags, subscriptions, and wait provide LLM orchestration primitives out of the box.

Operating Modes

The CLI has two modes:

Standalone mode

Sessions, relay, orchestration, and messaging — no Codewire account required. Everything runs locally or via a self-hosted relay.

Platform mode

Integrates with codewire.sh for workspace management, org commands, billing, and remote access. Requires a Codewire account.
See Platform commands for the full reference.

Key Features

  • Persistent sessions — Processes run in PTYs that survive disconnects
  • Tags and orchestration — Label sessions, subscribe to events, wait for completion
  • Agent messaging — Named agents exchange messages and coordinate with request/reply
  • Remote access — SSH gateway via relay, access any machine from anywhere
  • MCP integration — AI agents control sessions programmatically
  • Shared KV store — Cross-node key-value coordination in relay mode
  • Platform integration — Manage workspaces, orgs, and resources from the terminal

Installation

Homebrew

Supported on macOS (aarch64, x86_64) and Linux (aarch64, x86_64).

Install Script

Downloads the binary, verifies GPG signature and SHA256 checksum.
Options: --version VERSION, --prefix DIR, --verbose

Build from Source

Quick Start

Standalone

Platform

Architecture

A single Go binary acts as both node and CLI client. The node manages PTY sessions and keeps processes alive regardless of client connections.