Skip to content
iYassrPublic

About

Use Claude Code, Codex, Cursor CLI, OpenCode and Antigravity from your phone. A herdr plugin with iPhone and web apps: read agent conversations, answer permission prompts, start new agents. End-to-end encrypted, free built-in tunnel, no VPN or port forwarding.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Your coding agents, as a chat on your phone.

Read, answer and steer Claude Code, Codex, Cursor CLI, OpenCode and Antigravity
running in herdr on your Mac or Linux computer, from your iPhone or any browser.

Download on the App Store Open the web app Latest computer release CI MIT License

Website · Quick start · Features · Security · Documentation

Shahi's agent list on iPhone: a Claude Code edit waits for approval, with Yes and No as buttons A Claude Code conversation in Reader, with quick replies above the composer Starting a new agent: Claude, Codex, Cursor, OpenCode or Antigravity, and an approval mode The Changes tab listing the repository's uncommitted files

The Shahi iPhone app 1.1 with an example project.

Pick up your agents from anywhere

You start a task with a coding agent at your desk, then step away. The agent asks for permission, has a question, or finishes something you want to review. Open Shahi on your phone and carry on with the same session: read the conversation, tap an answer, send the next instruction, or look at the terminal itself. When you are back at your desk, your replies and the agent's work are already there.

Nothing is uploaded or recreated. Your agents, files and commands stay on your computer, inside herdr; Shahi connects your phone to the work that is already running. Setup is one command and one QR scan, and the end-to-end encrypted tunnel is built in and free for everyone: no VPN, port forwarding or Shahi account.

Your computer must stay awake and connected. Closing Shahi on your phone does not stop the agents running there, and an agent waiting for an answer still waits for you.

Why not a terminal app?

A terminal is a poor way to talk to an agent on a phone. SSH apps show output wrapped for a wide screen, so you pinch, scroll sideways and hunt for Esc and Tab. Shahi reads each agent's own transcript instead, so messages, tool calls and diffs fit your screen and permission prompts become buttons. The real terminal is still one tap away, on the Screen tab.

Features

  • A conversation that fits. Reader turns each agent's transcript into a chat: messages, reasoning, tool calls, edits, subagents and task lists. Routine steps fold into one Activity section per turn, while questions, failed steps, files and images stay in view.
  • Answer with a tap. Permission requests and multiple-choice questions become buttons, with the command or edit they ask about shown above them. Shahi re-reads the screen before pressing anything, so a card that is out of date never answers a different question.
  • Start the next task. Launch Claude Code, Codex, Cursor CLI, OpenCode or Antigravity in any space, and for Claude Code or Codex choose how much it may do without asking.
  • The real terminal, one tap away. Screen shows exactly what the agent drew, with the Esc, Tab, arrow and Ctrl-C keys your phone keyboard lacks.
  • Review what changed. The Changes tab lists the uncommitted Git changes in the agent's repository, with read-only diffs. Open text files, images and PDFs from the conversation, and attach files of up to 32 MiB.
  • Know when you're needed. The Inbox gathers questions and finished work. Notifications tell you when an agent is waiting; on an iPhone paired through the relay, they show its question and answers, encrypted end to end.
  • Speak your next instruction. Live dictation on supported iPhones with iOS 26 or later, in English. Words appear as you talk, nothing sends until you do, and the audio stays on your phone.
  • Composer shortcuts. Type / for the agent's slash commands, including your own Claude Code commands and skills, or tap a quick reply such as Continue.
  • Plan usage at a glance. Settings shows Codex's 5-hour and weekly limits, and Claude Code's once you switch them on.
  • All your computers together. Pair your laptop, Mac and Linux servers at once. Each keeps its own live connection, and switching keeps your place and your unsent replies.
  • In your language. English, العربية and Español, following your device or chosen in Settings.

Supported agents

Reader formats the conversations of five agents running in herdr:

  • Claude Code: Messages, thinking, tools and results, subagents, task lists, questions and images.
  • Codex: Messages, reasoning, commands, edits, questions, plans, MCP and web activity, and images. Audio attachments are indicated but not played.
  • Cursor CLI: Messages, recorded tool calls, failure and cancellation notes, and attachment labels. Cursor's export omits tool results and attachment bytes.
  • OpenCode: Messages, thinking, tools and results, edits, questions, files, undo, and inline images in OpenCode 1 (OpenCode 2 names attached images without displaying them).
  • Antigravity: Messages, thinking, tools, files and questions. Results are paired only for a single recorded call.

Reader shows the exact session each agent reports through herdr's integration for it, which Shahi installs and keeps up to date, the one transcript the agent's own process has open, or (for Codex 0.160+) the one thread in that exact folder whose name the pane title shows. It never guesses an arbitrary conversation from a folder: a Claude Code session that was already running before its integration was installed asks you, once, to choose its conversation. For any other program, or output Reader cannot format, use Screen. Shahi is checked against new releases of herdr and of each agent on macOS and Linux. See Reader troubleshooting and the provider notes for details.

Quick start

1. On your Mac or Linux computer, run:

curl -fsSL https://getshahi.dev/install | sh

It installs herdr if it is missing (a pinned release, checked against its published SHA-256 before it runs), adds the Shahi plugin, starts herdr in the background and shows a pairing QR code. It asks for no password; read the script first if you like.

Already use herdr? Run these from a terminal inside it instead:

herdr plugin install iYassr/shahi
herdr plugin action invoke shahi.pair

2. On your phone, install Shahi from the App Store or open getshahi.dev/pwa, choose Scan QR code, and scan. Your agents appear.

A pairing code works once, for ten minutes. Treat it like a password: a device that claims it can operate your terminal. Run shahi.pair again for each phone or browser, and press T then Enter in the popup for a link instead of a QR. The first pairing also shows a four-digit passcode, once; keep it for SSH or a locally served web app. More in Using Shahi.

Requirements

  • macOS or Linux with herdr 0.9.0 or newer. Shahi follows herdr's protocol rather than its version number, so new herdr releases keep working.
  • git and bun 1.3.13 or newer. The install fetches bun if it is missing.
  • Outbound HTTPS to github.com and release-assets.githubusercontent.com, where Shahi's signed releases are downloaded from.
  • On Linux, systemd supervises the service. On a headless server, run loginctl enable-linger $USER once so Shahi keeps running after you log out. Without systemd, setup prints the command to run under your own init.

The full list and what gets installed where are in the plugin guide. If nothing appears, run herdr plugin action invoke shahi.status and read its report with herdr plugin log list --plugin shahi.

Updating and uninstalling

When Shahi shows Update computer, tap it: the computer installs a signed release and restarts the service, keeping your pairings. Updating herdr does not update Shahi. To remove Shahi:

herdr plugin action invoke shahi.uninstall

Your passcode and paired devices stay in the plugin's folders until you delete them; see uninstalling cleanly.

How it connects

Your phone and your computer each make an outbound connection to Shahi's relay, so they find each other without an open port on your computer or a change to your router. The relay forwards traffic; your phone and your computer encrypt and decrypt it, and the relay never receives the keys to read your conversations, files or commands.

flowchart LR
  subgraph Device["Your phone or browser"]
    App["Shahi app<br/>Encrypts and decrypts"]
  end
  Relay["Shahi relay on Cloudflare<br/>Forwards encrypted payloads<br/>Can observe connection metadata"]
  subgraph Computer["Your computer or server"]
    Service["Shahi local service<br/>Encrypts and decrypts"]
    Work["herdr<br/>Your existing agents and files"]
  end
  App <-->|"Outbound WSS<br/>Encrypted data"| Relay
  Relay <-->|"Outbound WSS<br/>Encrypted data"| Service
  Service <--> Work
Loading

The default relay is relay.getshahi.dev, and you can operate your own. Your coding agents still use their own providers and whatever accounts or plans those require.

Prefer SSH? In the iPhone app, choose Want to use SSH? and connect to a computer you already reach over SSH, with no third party in the path. Shahi shows the server's host-key fingerprint for you to compare before it sends a login, and pins the key you trust. To turn the relay off entirely, add RELAY_URL= to "$(herdr plugin config-dir shahi)/.env" and run herdr plugin action invoke shahi.restart; QR pairing and the hosted web app then stop working for that computer. See SSH connections.

Connection security

Shahi can operate your terminal, so a paired device has powerful access. Its connection is built around a few concrete protections:

Protection What it does
End-to-end encryption Application payloads are encrypted between your device and your computer, in addition to the WSS transport encryption. The relay forwards ciphertext.
One-time pairing A short-lived QR secret introduces a device. Pairing replaces it with that device's own secret.
Proof before access Knowing a device identifier is not enough. The device must prove it holds its secret with a valid encrypted message before the server grants a session.
Fresh connection keys Each connection uses ephemeral X25519 keys. HKDF-SHA-256 mixes the exchange with the pairing or device secret; ChaCha20-Poly1305 protects messages.
Message integrity and ordering Altered messages and unexpected counters are rejected rather than accepted as commands.
Device revocation Revoke a device in Settings to close its connection and refuse its requests. A device revoked while offline is signed out the next time it connects.
Local service boundary The service listens on loopback only and answers only requests addressed to 127.0.0.1, localhost or [::1], or a proxy you name in SHAHI_ALLOWED_HOSTS. Direct access needs the passcode; relay access needs a paired device's credentials.

Encryption has a boundary. The relay and its infrastructure provider can see connection metadata: IP addresses, identifiers, and traffic sizes and timing. A compromised phone, computer or browser can read what that device can. iPhone notifications for a phone paired through the relay are encrypted for that phone, so Expo and Apple see only fixed wording and routing identifiers; for a computer reached over SSH or signed in with the passcode they can read the workspace and conversation names. Browser notifications are encrypted for your browser. Relay connection records, with no IP addresses or content, are kept for three months. Your agent's own connection to its model provider is separate from Shahi.

The iPhone app keeps pairing credentials in the iOS Keychain. Browser pairing lasts for the session unless you choose to remember it, and trusting the hosted web app means trusting its published code. Optional crash and Reader diagnostics exclude conversations, terminal text and credentials, and can be turned off with Share diagnostics in Settings.

Read the illustrated security guide → It covers pairing, encryption, credential storage, metadata, revocation, and what the published security reviews do and do not establish. The project has not had an independent security audit. For data collection and retention, read the privacy policy. Report vulnerabilities privately through SECURITY.md.

FAQ

Is Shahi free?

Yes. The apps, the computer service and the encrypted tunnel are free, and the code is MIT licensed. Your coding agents' own accounts and subscriptions are separate.

Do I need herdr?

Yes. Shahi shows the agents you run inside herdr, a lightweight terminal workspace for coding agents with spaces, panes and live status. The one-line installer sets herdr up for you if you do not have it.

Will my agents keep working when I close Shahi?

Yes. Closing Shahi on your phone does not stop the agents on your computer. The computer must stay awake, connected and running herdr, and an agent waiting for permission or an answer still needs your response before it can continue.

Can the relay read my code or conversations?

No. The relay forwards encrypted content without the keys to read it. It and its hosting provider can see connection metadata, such as IP addresses, traffic sizes and timing. The privacy policy explains diagnostics, notifications and data retention.

Can I connect more than one computer?

Yes. Add each one from Settings → Computers → Add a computer, then switch by tapping the computer name on the main screen. Each computer keeps its own pairing, connection and conversations.

Is there an Android app?

Not yet. The web app works in any modern phone browser and can be added to the home screen. The native app is on the App Store for iPhone.

Development

Shahi is a Bun service beside herdr, an Expo and React Native iPhone app, a React web app, and a Cloudflare Worker relay. Both clients share the wire contract and the encryption code.

mobile/      iPhone app (Expo, React Native)
web/         Browser app and PWA
server/      Local service that talks to herdr
shared/      Types, pairing, encryption and shared client logic
relay/       Encrypted-traffic relay (Cloudflare Worker)
plugin/      herdr plugin: installation and service management
site/        getshahi.dev
operations/  Monitoring and service alerts
e2e/         Browser tests against isolated fixtures
bun install
bun run typecheck
bun run test
bun run test:mobile --runInBand
bun run test:relay
bun run build:web
bun run test:e2e --project=phone --project=ios

Browser tests run against a stub that records actions instead of sending them to your agents. Checks against a real herdr need a named test session and a fresh configuration directory; never point write tests at your working session. Start with CONTRIBUTING.md and CLAUDE.md; developing the plugin explains linking a checkout, and on a Mac covers building the iOS app.

Documentation

Support and license

Questions: email support@getshahi.dev or open an issue. Send vulnerabilities privately using the security reporting instructions.

Shahi is open source under the MIT License.

About

Use Claude Code, Codex, Cursor CLI, OpenCode and Antigravity from your phone. A herdr plugin with iPhone and web apps: read agent conversations, answer permission prompts, start new agents. End-to-end encrypted, free built-in tunnel, no VPN or port forwarding.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages