| Crates.io | claude-afk |
| lib.rs | claude-afk |
| version | 0.1.0 |
| created_at | 2026-01-18 15:01:18.461572+00 |
| updated_at | 2026-01-18 15:01:18.461572+00 |
| description | Push notifications to your phone when Claude Code needs your attention |
| homepage | https://github.com/JazzyMcJazz/claude-code-afk |
| repository | https://github.com/JazzyMcJazz/claude-code-afk |
| max_upload_size | |
| id | 2052452 |
| size | 104,370 |
Push notifications to your phone when Claude Code needs your attention. Step away from your desk while Claude codes.
Prerequisite: Rust must be installed.
# Install the CLI
cargo install claude-afk
# Pair your device (generates QR code)
claude-afk pair
# Install Claude Code hooks
claude-afk install-hooks
# Enable notifications
claude-afk afk
# Disable notifications when you're back
claude-afk back
claude-afk pair and scan the QR code with your phoneclaude-afk install-hooks to configure Claude CodeWhen Claude Code requests permission, you can respond directly from your phone:
Note: Action buttons may not appear on all devices or browsers due to web notification limitations.
claude-afk status # Check current status
claude-afk pair # Set up device pairing (generates QR code)
claude-afk install-hooks # Install Claude Code hooks
claude-afk afk # Enable notifications
claude-afk back # Disable notifications (keeps pairing)
claude-afk clear # Remove device pairing
You can run your own backend using Docker:
# Clone the repository
git clone https://github.com/JazzyMcJazz/claude-code-afk.git
cd claude-code-afk
# Generate VAPID keys
npx web-push generate-vapid-keys
# Create .env file with your VAPID keys
cp site/.env.example site/.env
# Edit site/.env with your generated keys
# Start with Docker Compose
docker-compose up -d
Set the CLAUDE_AFK_API_URL environment variable to point to your self-hosted instance:
export CLAUDE_AFK_API_URL=https://your-domain.com
| Variable | Description |
|---|---|
CLAUDE_AFK_API_URL |
Override the default API URL (for self-hosting) |
MIT