Terminal Multiplexer

Mission Control for AI Coding Assistants

Phi is a browser-based control center that gives you a single web UI to run, monitor, and switch between multiple AI coding agents. Native PTYs, live git diffs, and deep worktree awareness.

Core Features

Designed for developers who rely on isolated environments and robust terminal emulations for their AI tooling.

One UI, Many Agents

Spawn and tab between OpenCode, Claude Code, Antigravity, Pi Coder, and plain shell sessions, all directly in the browser.

Real Terminals

Each session is a genuine PTY rendered with xterm.js (WebGL with canvas fallback). Agent TUIs render exactly as they would natively.

Session Resume

Phi reads each tool's on-disk history (SQLite DBs, JSONL, binary files) allowing you to reattach to past conversations instantly.

Live Git Diff & Worktrees

A read-only side panel streams git diff and git log for the active workspace. Browse and switch between isolated git worktrees easily.

Quick-Action Presets

One-tap buttons for common agent commands (/exit, /model, ctrl+c, esc), plus a staged input bar for composing complex prompts.

Vikunja Kanban Sync

Drag-and-drop Kanban dashboard embedded as a custom tab type, synced directly to your local Vikunja REST API via a proxy.

Supported Assistants

Ensure the desired agent CLIs are installed and available on your PATH to utilize them within the Phi interface.

Assistant Name CLI Command Session Source Data
OpenCode
opencode ~/.local/share/opencode/opencode.db
Claude Code
claude ~/.claude/projects/ (JSONL)
Antigravity (Agy)
agy ~/.gemini/antigravity-cli/conversations/
Pi Coder
pi Pi session files
System Shell
bash -l

Installation & Quickstart

Method 1: Using NPM (Recommended)

Cross-Platform

Phi is distributed as a package on NPM. The installer automatically downloads the correct precompiled binary for your OS and architecture.

# Install globally
npm install -g @hypernewbie/phi-code

# Launch in your project directory
cd ~/code/my-project
phi

Method 2: Using Go Install

Requires Go 1.26+

If you have the Go toolchain installed, you can compile and install directly from the source.

go install github.com/hypernewbie/phi@latest

cd ~/code/my-project
phi

After launching, open http://localhost:7070 in your browser. The web UI is fully embedded, so you can run it from any directory. Note: Phi binds to 0.0.0.0 and has no authentication. Only run it on a trusted network.