Command Reference

Quick reference for every afk command. See the linked pages for detailed usage.

Streaming

afk stream <command> [args...]

Stream a terminal session to your mobile devices.

Flags: --session-id --login --logout

Details →

Sessions

afk connect [--session-id <id>]

Connect to any session (local or remote). Opens an interactive picker if no session ID is given.

Flags: --session-id --login --logout

Details →
afk sessions

List all local and remote sessions with status and details.

Details →

Notifications

afk notify [<message>]

Send a push notification to your mobile devices.

Flags: --title --session-id --app --event-type

Details →
afk hooks install | status | remove

Manage Claude Code notification hooks.

Details →

Account

afk status

Show current login status and token info.

Details →
afk whoami

Show who you are logged in as.

Details →
afk logout

Logout and delete stored authentication tokens.

Details →

Global Flags

afk --version

Show the installed AFK version.

afk --no-update <command>

Skip the automatic update check before running a command.