Your coding agents, in your pocket.
Run Claude Code, Codex, OpenCode, Pi or another coding agent on your computer and drive it from your Android phone or tablet. Start a task from the couch, and Ferngeist notifies you when the agent finishes.
Or grab the APK from GitHub Releases (no auto-updates). Requires Android 11 or later.
phone-demo.mp4
- Leave your desk. Your agent keeps working on your computer, and Ferngeist notifies you when it finishes or needs an answer.
- Review the work on your phone. You read the agent's messages, reasoning, tool calls and code diffs in a layout sized for a small screen.
- Keep going on a bad connection. Lose signal on the train and Ferngeist reconnects the session where it left off.
- Bring the agent you already use. Works with any agent that speaks the Agent Client Protocol, including Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI and OpenCode (full list).
- Phones, foldables and tablets. Ferngeist shows one pane on a phone, two on a small tablet and three on a large one.
- Free and open source. Ferngeist is MIT licensed, needs no account and runs no servers of its own. The app talks to the machines you connect it to and nothing else. Details are in the Privacy Policy.
You'll need the free Ferngeist Gateway on your computer (Windows, macOS or Linux). It finds the agents you have installed and gives your phone one secure address to reach them.
1. Install the gateway
# Windows (PowerShell)
irm https://arafatamim.github.io/ferngeist-acp-gateway/install.ps1 | iex# macOS / Linux
curl -fsSL https://arafatamim.github.io/ferngeist-acp-gateway/install.sh | shPackages for a manual install are on the gateway releases page.
2. Reach it from anywhere (optional)
The installer starts the gateway on your local network, so a phone on the same Wi-Fi can already connect. To reach it from outside your home, switch it to remote access:
ferngeist-gateway daemon install --remote # run as Administrator on WindowsThis command sets up a Tailscale Funnel and prints a stable HTTPS address. The first run also prints a Tailscale login link (a free account is enough).
3. Pair your phone
ferngeist-gateway pairIn Ferngeist, tap Add server, then enter the gateway address (the HTTPS address from step 2, or your computer's address on Wi-Fi) and the pairing code. Your agents appear in the app.
Use your own tunnel instead of Tailscale
The gateway listens on port 5788. Point a tunnel at that port and pass its URL with --public-url.
ngrok
ngrok http 5788
ferngeist-gateway daemon install --public-url https://xxxx.ngrok.ioCloudflare Tunnel
cloudflared tunnel --url http://localhost:5788
ferngeist-gateway daemon install --public-url https://xxxx.trycloudflare.comA custom domain works the same way: --public-url https://your.domain.example.
Connect to an ACP server without the gateway
If you already run an ACP agent over WebSocket, add it directly. Most agents talk over stdio, so wrap yours in a WebSocket bridge first. The agent's docs list the flag that starts it in ACP mode:
npx -y stdio-to-ws "npx @qwen-code/qwen-code@latest --acp" --port 8769Then add ws://<your-pc-ip>:8769 in Ferngeist as the server host.
More options are in the gateway docs.
Your agents, and the git history of the project you're working in.
On a tablet, agents, sessions and chat sit side by side.
Does my code leave my computer? Ferngeist sends your prompts to the agent on your computer and shows its replies. Your agent still sends code to its model provider, as it does when you sit at your desk.
Do I need Tailscale? No. Tailscale is the quickest option, and any HTTPS tunnel or your own domain works too.
Is there a build without Google services? Yes. The foss build drops ML Kit and Play Services; push notifications then need a UnifiedPush app such as ntfy.
Found a bug or want a feature? Open an issue on GitHub.
- Kotlin 2.4 / Jetpack Compose + Material 3
- Hilt / Room / Kotlin Coroutines and Flow / KSP
- ACP Kotlin SDK
Install JDK 21 for Gradle
and tests, matching CI and the diff library's Java 21 bytecode. The daemon JVM
criteria require a locally installed JDK 21; automatic download is not configured.
Set JAVA_HOME to that JDK as well so the Gradle launcher
uses the same runtime. On Linux, ./scripts/gradle-safe caps the whole build
at 4 GiB and runs one worker at a time.
The app has two product flavours under the distribution dimension:
google: the full build with ML Kit QR scanning. It ships to Google Play and GitHub releases. Push notifications arrive through a UnifiedPush distributor if you have one (e.g. ntfy), otherwise through Google Play Services. No Firebase project is involved.foss: a Fully Open-Source Software build for F-Droid. It omits ML Kit, so you type the pairing code instead of scanning a QR code, and it has no Play Services fallback: push notifications need a UnifiedPush distributor app such as ntfy. Without one the agent keeps running on your gateway, but you get no notification when it finishes.
cmd /c gradlew.bat :app:assembleGoogleDebugflowchart LR
subgraph UI["UI layer"]
App["app/\nNavigation + Hilt"]
Features["feature/*\nserverlist · sessionlist · chat"]
end
subgraph Shared["Shared contracts"]
Core["core/model\nDomain models + repository APIs"]
Common["core/common\nShared utilities"]
end
subgraph Services["App services"]
Bridge["acp-bridge\nChat facade + ACP session orchestration"]
GatewayClient["gateway-client\nGateway pairing + REST client"]
Persistence["data/*\nRoom + DataStore"]
end
subgraph External["Outside the APK"]
Gateway["Ferngeist ACP Gateway\noptional local-agent launcher"]
Agent["ACP-compatible agent"]
SDK["ACP Kotlin SDK\nWebSocket client + sessions"]
end
App --> Features
Features --> Core
Features --> Common
Features --> Bridge
Features --> GatewayClient
Persistence -.->|implements| Core
Bridge -.->|implements ChatSessionFacade| Core
Bridge --> GatewayClient
Bridge --> SDK
GatewayClient -->|REST| Gateway
SDK -->|gateway WebSocket| Gateway
SDK -->|manual WebSocket| Agent
Gateway --> Agent
Key data flow:
app/owns navigation and Hilt bindings, then routes users into the feature modules.- Feature modules render Compose UI and depend on
core/modelcontracts instead of persistence details. data/*provides the local Room/DataStore implementations for saved servers, gateway bindings, and preferences.acp-bridgeimplementsChatSessionFacade, manages ACP connections/sessions, and converts SDK callbacks into app events.gateway-clienthandles pairing and gateway REST calls; the bridge uses it when a chat starts from a gateway-backed agent.- Manual servers connect directly to an ACP agent through the SDK, while gateway-backed agents go through the optional Ferngeist ACP Gateway first.
app/ Android entry point, navigation, theme, DI
acp-bridge/ ACP transport, connection manager, session bridge
core/common/ Shared UI helpers and utilities
core/model/ Domain models and repository interfaces
data/database/ Room database, DAOs, entities
feature/serverlist/ Saved server management UI
feature/sessionlist/ Session listing and creation
feature/chat/ Streaming chat UI, reducers, markdown state
gateway-client/ Ferngeist ACP Gateway HTTP client
gradle/ Version catalog
MIT. See LICENSE.







