Find your path

phux documentation

phux documentation

TL;DR. Start with the quickstart if you want a persistent terminal you and an agent can share. The first half of these docs is task-oriented: install, run, automate, and configure phux. Protocol, architecture, operations, and decision records live in clearly separated reference sections when you need to understand or extend the substrate.


Start here

You do not need to understand the protocol before using phux.

Your goalBest first page
Run a persistent terminal and reattach to itQuickstart
Let an agent inspect and drive that same terminalAgent CLI guide
Connect OpenCode to shared phux terminalsOpenCode integration
Connect Pi to shared phux terminalsPi integration
Install through Homebrew, a release, or sourceInstall guide
Decide whether phux fits your workflow todayWhen to use phux
Change the prefix, keys, status bar, or hooksConfiguration
Reach your server from another networkRemote access

The shortest path is the quickstart. It gets a real session running first, then shows the read, act, wait, read loop that makes the same terminal useful to an agent.

Two speeds

Use phux

These pages are for people trying to get work done:

Understand or extend phux

These are reference material. Read them when you are building against phux, operating it, or checking why the system has a particular shape:

The distinction is deliberate. A user should be able to install and operate phux without reading an ADR. A protocol implementer should be able to find the normative answer without pulling behavior from a tutorial.

What phux is

phux treats a terminal as an addressable object that can outlive any one view. A person in the reference TUI, an agent using the CLI, and a browser client can observe or drive the same terminal through peer interfaces. The terminal stream stays a terminal stream; structured views are projected by consumers.

phux is pre-alpha. The local TUI, persistent sessions, multi-client attach, headless commands, and MCP adapter are real. Interfaces may still move, and some of the longer-range protocol design is intentionally documented before it ships. CONCEPTS.md owns the exact maturity boundary.

Working on the project

Contributors should read ../CONTRIBUTING.md. Documentation structure and review rules live in CONVENTIONS.md; release procedure lives in RELEASING.md. Code-level API docs are generated from Rust source with cargo doc --workspace --all-features.