by leizhiyuan
Android client for Rex, the terminal multiplexer: see every host, session and tab, and open any pane as a full-screen terminal (Ghostty emulator). Made for driving AI coding agents - pi, Claude Code, Codex, Gemini - from your phone, over LAN or a built-in Tailscale node. Rex 的 Android 手机终端客户端。
# Add to your Claude Code skills
git clone https://github.com/leizhiyuan/rexpocketGuides for using ai agents skills like rexpocket.
See how rexpocket compares with popular alternatives.
rexpocket is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by leizhiyuan. Android client for Rex, the terminal multiplexer: see every host, session and tab, and open any pane as a full-screen terminal (Ghostty emulator). Made for driving AI coding agents - pi, Claude Code, Codex, Gemini - from your phone, over LAN or a built-in Tailscale node. Rex 的 Android 手机终端客户端。. It has 51 GitHub stars.
rexpocket's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/leizhiyuan/rexpocket" and add it to your Claude Code skills directory (see the Installation section above).
rexpocket is primarily written in Kotlin. It is open-source under leizhiyuan on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rexpocket against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
An Android client for Rex, the terminal multiplexer. It shows every session on your own Rex servers, down to the tab, and opens any pane as a full-screen terminal you type into directly. It talks to your Rex and nothing else - on the local network, over your tailnet through a Tailscale node built into the app, or through the computer's own SSH daemon.
| Home | Terminal | Terminal at night |
|---|---|---|
![]() |
![]() |
![]() |
On a tablet or in a desktop window the list stays beside the open pane - a session or a tab is switched without leaving the terminal it was showing, and the dock is one hand's reach wide.
| Tablet: the list beside the pane | Tablet: a sheet at the platform's width |
|---|---|
![]() |
![]() |
esc, C-c, arrows that repeat while held, Tab, Return, ctrl, paste, a paperclip and /.
Settings → Terminal can show optional Shift and Alt keys; both are hidden by default. Hold
ctrl for C-c C-d C-z C-r C-l C-a C-e C-w C-j. A split shows one pane at a
time, with a bar to move between them. The keyboard never resizes the terminal - the pane
slides up under it by what it covers, so the line being typed into stays in view and a program in
it is never redrawn for the keyboard coming or going - and a keyboard on the desk takes the dock
away, since it has every key on it. Paste and attach stay in the menu.100.x address without taking the phone's VPN slot.ssh://host and sign in with an account and a password or a private key;
the app reaches Rex through the SSH daemon the machine already runs - no Rex port has to be open.
The host key is shown and pinned on the first connection; a changed one stops the connection
until you confirm it. A tailnet address is still dialed through the built-in node.Rex has to be reachable from the phone: over the local network, over a tailnet, or through SSH.
On the local network. Start Rex with a plaintext port:
rex server start --extra-listen :7297 --allow-anonymous
Anyone who can reach that port has full access to that Rex, so open it only on a network you trust.
Over a tailnet. Turn on Rex's built-in Tailscale on the computer; it serves Rex over HTTPS at its MagicDNS name. Nothing has to be opened on the router.
Over SSH. Install Rex on the computer, as rex server install does, so a non-interactive
login can run rex (the app also looks in ~/.local/bin). Nothing has to be opened: the app
reaches the server through the machine's own SSH daemon. How the transport works is described in
docs/design/ssh-hosts.md.
Add a host. Settings › Add host. A name and an address is all it takes:
192.0.2.10 - plaintext on port 7297192.0.2.10:7300 - another portmy-mac.tail1234.ts.net or a 100.x address - through Tailscale, on 443 with TLSssh://192.0.2.10 or ssh://my-mac.tail1234.ts.net - through that machine's SSH daemon;
type the account and a password or a private key, and the first connection asks you to
confirm its host keyThe line under the field shows how the app will connect.
For a tailnet host, join the tailnet. Settings › Tailscale, give the phone a node name and save. The app opens the sign-in page once; after that the node starts with the app.
Open a tab. Tap a tab on the home screen. The plus beside a session makes a new tab; the host's menu starts a new session.
In the terminal:
ctrl and slide to
a chord. Locked Shift applies to all repeated arrows; one-shot Shift applies only to the first.On the home screen, the eye keeps only the tabs with a program working or waiting, and search filters hosts, sessions and tabs.
Background alerts: Settings › Background alerts, and allow notifications. A quiet notification shows while the app watches; its Stop turns alerts off. The app does not start on its own after a reboot, and Android's battery saving can delay an alert.
The app keeps the last few hours of its own log on the phone, so a problem can be reported after it happened.
Off while the app only keeps its last few hours, and
Recording while a recording runs.The report holds the app version, the phone, your hosts, what the connection did, and the app's own
log - the last few hours, and a recording too if you made one. Addresses and host names become
<hidden>; tab titles, what a pane printed and what you typed are never in it. It is plain text, so
you can read it before you send it.
/api/control (rex.control.v1). The app subscribes to Rex's
events, so a session's tabs, each program's status, its title and the shell's directory arrive
as they change; nothing is polled. Calls run side by side; typed input has its own queue, so
keys reach the program in the order they were pressed./api/data (rex.data.terminal.v1) carries a GHOSTSNP
snapshot of the terminal, then its output. A dropped stream resumes from the last byte; an idle
pane costs no traffic.session.own_block, so Rex
applies the phone's size to it. Moving between tabs and panes is local to the phone: Rex's
active tab stays the desktop's. When the desktop takes the shown pane, the phone takes it back,
waiting longer each time the desk insists. A released pane stays the desk's until Take over.rex __internal dial-stdio, which joins its input and output to Rex's own Unix socket on that
machine. The app pins the host key it saw, compares it on every connection, and a changed key
stops retrying until you confirm the new one. The host is dialed directly, or through the
built-in Tailscale node when its address is on the tailnet.tailscale.com/tsnet library running in userspace,
with a SOCKS5 proxy on loopback in front of it; only the app's own connections use it. The node's UDP is bound to the phone's Wi-Fi or mobile
network, around a proxy VPN such as Clash when the VPN allows apps to bypass it, so a direct
path can form. The home screen shows the path to each tailnet host - direct, peer relay or
DERP - with its round trip; tap it to measure again.From mobile data to a computer behind a home router, Tailscale often falls back to a DERP relay abroad, and every r