Faryo is a lightweight project and mobile workbench for the same live
tmux-backed Codex CLI, Claude Code, or shell session.
Use it to open a project deck, check what an agent is doing, send one instruction, approve or interrupt work, attach context, and return to the same desktop terminal session. It is not remote desktop, a hosted IDE, a browser terminal, or a second AI chat history.
Canonical repository: https://github.com/Snailflyer/faryo
The project workbench keeps project state, owner decisions, actions, watch
items, and the live session route in one phone-sized surface. The project-run
walkthrough shows a queued project action opening a live tmux-backed owner
session. The same-session handoff walkthrough demonstrates the other half of the
contract: browser actions return to the same live tmux session instead of
creating a detached mobile chat or stale terminal copy.
- Linux endpoint package:
faryo_1.1.0_all.deb - macOS endpoint package:
faryo_1.1.0_macos.tar.gz - Release page: https://github.com/Snailflyer/faryo/releases/tag/v1.1.0
- Launch guide: docs/launch/faryo-1.0.0.md
- Troubleshooting: docs/launch/faryo-1.0.0.md#troubleshooting--deployment-verification
- check a long-running terminal AI task from a phone
- send a short follow-up without opening a raw terminal
- approve, interrupt, attach files, or hand off notes
- keep phone and desktop on the same
tmuxsession history - keep project decisions, action items, and watch items close to the live agent session that will execute them
Best-supported path:
Linux endpoint
+ tmux
+ Codex CLI
+ Chrome / Android Chrome PWA
macOS Owner packaging, iOS Safari, Claude Code session discovery, and generic shell TUIs are supported but less polished.
curl -LO https://github.com/Snailflyer/faryo/releases/download/v1.1.0/faryo_1.1.0_all.deb
sudo dpkg -i faryo_1.1.0_all.deb
systemctl --user daemon-reload
systemctl --user enable --now faryo-owner-keepalive.timer
mkdir -p ~/.faryo/owner/config
cp /opt/faryo/apps/owner/config/faryo.env.example ~/.faryo/owner/config/faryo.env
$EDITOR ~/.faryo/owner/config/faryo.env
curl --noproxy '*' http://127.0.0.1:8765/healthOwner should bind to 127.0.0.1. Public access should go through Gateway, which
injects Owner tokens server-side so browsers do not receive raw Owner tokens.
Faryo has two small components:
phone / desktop browser
-> Faryo Gateway
-> Owner endpoint
-> tmux session
-> Codex, Claude, or shell TUI
apps/gateway is the public workbench. It owns login, route authorization,
endpoint health, session selection, handoff packages, and proxying to Owner
endpoints. It also renders the project deck, owner decisions, action queues,
watch items, and run handoffs that route approved work back to the selected
live session. Owner tokens are injected server-side and are not exposed to the
browser.
apps/owner is the local execution surface. It binds to loopback, controls a
target tmux pane, captures terminal output, sends text, uploads attachments to
a configured inbox, and discovers resumable Codex/Claude history.
The browser UI stays thin. It renders the workbench, sends commands, uploads attachments, and switches sessions; it does not replace the terminal runtime.
The endpoint package intentionally includes only Owner. Gateway is source deployed because it is the public routing and policy layer.
Faryo is built around a lightweight browser workbench, but endpoints and browsers do not behave identically.
The most refined path today is:
Linux endpoint
+ tmux
+ Codex CLI
+ Chrome / Android Chrome PWA
That path has received the most tuning for mobile viewport behavior, PWA use, compact output, command input, attachment handling, session switching, and Codex history convergence.
Supported but less heavily polished paths:
- macOS Owner packaging through the launchd installer.
- iOS Safari as a browser surface.
- Claude Code session discovery and compact rendering.
- Generic shell TUIs controlled through tmux capture/send.
These paths are usable, but they may need additional refinement around browser viewport behavior, backgrounding, paste/input edge cases, compact rendering, and agent-specific session history mapping.
Faryo treats "session convergence" as the process of making four things line up:
active tmux session
+ visible terminal process
+ agent history record
+ workbench session card
Different agents expose different state, so Faryo uses different convergence rules.
Codex is the most mature integration:
- reads the Codex local session database
- filters internal and subagent branches from normal history
- maps the active tmux process back to the current Codex thread
- resumes sessions through
codex resume - applies Codex-specific compact output rules
Claude is supported with a different path:
- reads Claude project JSONL history
- tracks managed Claude tmux sessions with Faryo tmux metadata
- resumes sessions through Claude session IDs
- applies Claude-specific compact output rules
Claude convergence is intentionally separate from Codex convergence. It is not as heavily tuned yet, especially across macOS, iOS Safari, and less common Claude output states.
Generic shell sessions are controlled through tmux only. They can be captured, viewed, and sent input, but they do not have Codex/Claude-style semantic history convergence.
Faryo's UI is a workbench, not a document editor or chat clone. The main screen is optimized for repeated mobile checks and short control actions. Screenshots near the top are redacted examples.
Core interactions:
- Workbench first: Gateway opens to route status, project cards, active sessions, recent history, and pending handoff packages.
- Project deck: project cards keep decisions, action items, watch items, stage goals, and owner review close to the session that can execute them.
- Run queue: approved project actions can be dispatched back to the live Faryo session instead of becoming a disconnected task list.
- Session cards: each card represents a resumable agent session or active tmux session. Opening a card routes the browser to that endpoint and session.
- Compact output: the default mobile view reduces noisy terminal output into readable work blocks while keeping the session grounded in terminal history.
- Raw output: full terminal capture is available when exact terminal evidence is needed.
- Latest control: when the user scrolls up, Faryo does not force-jump the view; new output waits until the user taps the latest control.
- Composer: the bottom input sends text into the active tmux pane. It works well with mobile keyboards and system dictation.
- Attachments: images and files can be uploaded into the configured inbox and referenced in the active session.
- Handoff packages: prompts, notes, screenshots, and files can be picked up and injected into a selected session.
- Agent controls: interrupt, approve, page up/down, resume, and close actions are exposed as direct controls instead of hidden terminal shortcuts.
- Thin state: the browser remembers display preferences, but the work session itself remains in tmux and the agent history store.
The UI intentionally avoids heavyweight panels and IDE-style layout. It should feel fast enough to open, inspect, dictate a command, attach context, and leave.
- Project workbench with project cards, owner decisions, action items, watch items, stage goals, and run queue handoff.
- Mobile-first PWA workbench with compact and raw terminal views.
- Shared session history across phone and desktop through the same
tmuxsession. - Codex and Claude session discovery, resume, interrupt, and approval controls.
- Multi-endpoint routing for local machines and cloud endpoints.
- Handoff packages for prompts, notes, images, and files.
- Lightweight attachment handling with local inbox paths.
- No browser automation, no remote desktop stack, and no database server in the runtime path.
Source code lives in this repository. Runtime configuration and secrets do not.
~/.faryo/
gateway/
config/faryo.env
config/gateway-auth.json
state/
logs/
owner/
config/faryo.env
data/
Example configuration files live under:
apps/gateway/config/faryo.env.example
apps/owner/config/faryo.env.example
Owner endpoint:
- Python 3.11 or newer
tmuxcurlzsh- optional:
git,openssh-client, Codex CLI, Claude Code
Gateway:
- Python 3.11 or newer
bcrypt- a reverse proxy such as Caddy or nginx for public HTTPS
Endpoint releases are built from apps/owner/RELEASE.
scripts/package-client.sh check
scripts/package-client.sh releaseThe release target builds:
dist/faryo_<version>_all.deb
dist/faryo_<version>_macos.tar.gz
dist/SHA256SUMS
Install the Linux endpoint package on an Owner machine:
sudo dpkg -i dist/faryo_<version>_all.deb
systemctl --user daemon-reload
systemctl --user enable --now faryo-owner-keepalive.timerAfter configuration, the Owner health and status endpoints should answer on
loopback. releaseVersion in /api/status is the endpoint version to use for
upgrade acceptance.
apps/gateway/ Public gateway, login, routing, and handoff workbench
apps/owner/ Local tmux-backed execution endpoint
packages/shared/ Shared code and contracts as they are extracted
docs/ Product, launch, release, UI, and client sync notes
deploy/ Runtime unit templates
scripts/ Packaging, endpoint install, and verification tools
Faryo is designed for a trusted operator running their own endpoints.
- Owner should bind only to
127.0.0.1. - Public access should go through Gateway.
- Tokens, password hashes, cookie secrets, and runtime env files are private runtime state.
- File preview and attachment APIs are token-protected and constrained by supported file types.
- Gateway bridge URL attachments reject private, loopback, link-local, multicast, reserved, and unresolved hosts.
See SECURITY.md for the short disclosure and deployment guidance.
Faryo is released under the MIT License. See LICENSE.



