phux docs
guides

Ways to use phux

Pick the interface that matches the job: the TUI or Cockpit for a person, the CLI and MCP for a script or agent, OpenCode, Pi, or Claude when those hosts...

evolving document
Full source summary

Pick the interface that matches the job: the TUI or Cockpit for a person, the CLI and MCP for a script or agent, OpenCode, Pi, or Claude when those hosts already run the work, the browser or iOS client when the glass is not a tty, and recording when you want a cast. They are peers of one server and one terminal model.

Choose an interface

Every interface is a peer over the same terminals. Choose by operator, not by protocol privilege.

Choose an interface

You want toStart with
Work interactively in a terminalThe reference TUI
Read and drive terminals from a script or coding agentAgents and the CLI
Connect a tool client over MCPThe MCP adapter
Give OpenCode terminal tools and fleet awarenessThe OpenCode integration
Give Pi target persistence and fleet awarenessThe Pi integration
Run Claude Code against the same terminalsThe Claude Code plugin
Run the terminal client in a browserThe web client
Use the native macOS appCockpit
Record a pane or an attached sessionRecording
Pair a phone over wss:// (contract)The iOS client

Every interface here is a peer of the others; the TUI has no protocol-level standing (ADR-0017).

Gaps: ../CONCEPTS.md.

Files

FileOwns
tui.mdReference TUI: prefix keys, layout, chrome, copy-mode, fleet overlay.
cockpit.mdNative macOS client over phux-client-ffi.
web.mdBrowser client that carries its own engine over the WebSocket wire codec.
ios.mdSwift/UniFFI iOS client and the phux pair connect-link contract.
agents.mdAgent surface: CLI verbs, JSON contracts, asks, workspace save/restore.
opencode.mdOpenCode package: tools, fleet context, target precedence, safety.
pi.mdPi package: tools, fleet context, target persistence, safety.
claude.mdClaude Code plugin: MCP tools plus lifecycle identity.
mcp.mdMCP adapter over the agent verbs.
sdk.mdWorkspace-internal phux-client free-function surface.
recording.mdSession recording: observer capture, interactive tee, playback as a pane.

Each file’s frontmatter declares its own stability. A shipped surface is stable; a surface still settling is evolving.

View exact source