acpantenna is a command-line tool for securely extending locally running coding agent sessions to a phone or any browser. Its core purpose is to let developers continue conversing with the agent after leaving the desktop, without having to restart the session.
Main capabilities include:
- Supports Claude Code, Codex, OpenCode, and any agent that uses the ACP protocol over stdio.
- A single command generates a one-time link and QR code; opening it on a phone resumes the current session, end-to-end encrypted.
- Uses the user's own account and subscription (via the official ACP adapter or directly using an installed OpenCode).
- The browser acts as an ACP client, but acpantenna acts as a filtering proxy, allowing only the methods needed for chat (such as initialize, session/prompt, etc.), rejecting file and terminal requests, and downgrading "always allow" to "allow once".
- Before connecting, a four-word verification code must be confirmed in the terminal, ensuring only authorized browsers can connect.
- Includes a built-in web client, latch.im, and can also be configured to connect to channels such as Matrix, Discord, Telegram, IRC, and Webhook.
- Supports skills that let the agent initiate a connection (e.g., saying "continue this on my phone").
Usage: Requires Node 18+ (Linux, macOS, or Windows 10 1803+), and the target agent (e.g., claude, codex) must already be logged in. It can be run directly via npx or installed globally. Basic steps: run the connect command in the project directory to start a new session (or use --session-id to connect to an existing session, --fork to copy a session), then open the link or scan the QR code, and after confirming the four-word match in the terminal, you can continue the conversation in the browser. Use the setup command to add other chat channels.
Use cases: Developers need to continue a desktop coding session on a mobile device, remotely check agent progress, or interact with the agent through chat tools.
Limitations:
- The relay server cannot hide connection times, frequency, and approximate data volume (frame padding can reduce information leakage).
- The latch.im web client is not open source, and its controller could theoretically read session content within the scope allowed by the filtering proxy.
- Sessions last at most one hour on the relay.
- All permission requests are denied by default; toolCalls: "ask" must be configured for them to be asked in chat.
- You must ensure the agent is logged in yourself, and acpantenna does not provide additional file or terminal access capabilities.