Commands

Complete reference for all AFK commands.

afk stream

Stream a terminal session to your mobile devices.

afk stream <command>

Examples

# Stream Claude Code

afk stream claude

 

# Stream a bash session

afk stream bash

 

# Stream vim

afk stream vim myfile.txt

A QR code will appear. Scan it with the mobile app to connect.

afk connect

Connect to your sessions from a different computer. Lists your active sessions and lets you view them in the terminal.

# List your active sessions

afk connect

 

# Connect to a specific session

afk connect --session-id abc-123

Useful when you started a session on one machine and want to view it from another.

afk daemon

Run the AFK daemon in the background. The daemon keeps you logged in and can spawn sessions on-demand from mobile.

# Start daemon

afk daemon

 

# Start daemon in background

afk daemon &

With the daemon running, you can start new sessions from the mobile app without running afk stream manually.

afk --version

Show the installed AFK version.

$ afk --version

afk 0.1.0