Create a room in the browser on either device. On the other device, scan the QR code or open the invite link. Select a recipient to send files, text, or links.
After setting up MCP below, you can ask your agent to send and receive files in chat. Both ends must stay online and be able to connect directly.
Send from your phone to an agent
Tell the agent “Create a One to Ten room so I can send you a file from my phone.”
Open the invite link from the agent, select “AI Agent” in the room, and send the file. The agent accepts the transfer and returns the saved file’s path when it finishes.
Send from an agent to your phone
Tell the agent “Join this room and send report.pdf to my iPhone.”
Create a room on your phone. Give the agent the full invite link and the path to the file. When the request appears on your phone, accept it and choose how to save the file.
Set up the CLI and MCP on a computer
On the computer running the agent or CLI, open the project source directory. Build with Node.js 22.23, 24.22, or 26.12, or a newer release in one of those major versions.
Build the CLI and MCP
npm ci
npm run build:agent
All participating devices must be able to reach the address below. For HTTP testing on a trusted local network, add --allow-http to the end of the command.
CLI quick start
Use the full invite link from the browser to list online devices. Then specify a recipient and file. If devices have the same name, use the device ID from the list.
Find a device and send a file
npm run cli -- peers --invite "FULL_INVITE_LINK"
npm run cli -- send --invite "FULL_INVITE_LINK" --to "iPhone" ./report.pdf
To receive a file in the terminal, run the command below to create a room. Open the printed invite link on your phone and send to “File Room CLI”, then accept in the terminal.
Receive in the terminal
npm run cli -- receive --server 'https://1210.ipocket.xyz' --out ./inbox
In scripts, run the CLI with npm run --silent cli -- and add --json to get status updates as one JSON object per line.
Connect MCP to an agent
Run the macOS or Linux terminal example below from the project root to register MCP with Codex. Put outgoing files in outbox. Incoming files are saved in inbox.
Start a new agent session after registering and use the examples above to transfer files. Other clients that support local stdio can use the same Node entry point and arguments.