CLI Reference

Complete reference for all forkoff commands and options.

Quick install: npm install -g forkoff

forkoff pair

Generate a QR code to pair with the mobile app.

Options

--timeout <seconds>QR code expiration time (default: 300)
--port <number>Local server port (default: 9876)

Example

bash
forkoff pair --timeout 600

forkoff connect

Reconnect to a previously paired device.

Options

--device <id>Specific device ID to connect

Example

bash
forkoff connect

forkoff disconnect

Unpair the current device.

Options

--allUnpair all devices
--device <id>Unpair specific device

Example

bash
forkoff disconnect --all

forkoff status

Show connection status and paired devices.

Options

--jsonOutput in JSON format

Example

bash
forkoff status --json

forkoff tools

Detect and configure AI tool integrations.

Options

--install-hooksInstall integration hooks
--uninstall-hooksRemove integration hooks
--listList detected AI tools

Example

bash
forkoff tools --install-hooks

forkoff config

View or modify configuration settings.

Options

get <key>Get a config value
set <key> <value>Set a config value
--resetReset to defaults

Example

bash
forkoff config set notifications.sound true

Configuration

ForkOff stores configuration in ~/.forkoff/config.json. You can edit this file directly or use the forkoff config command.

Available Settings

KeyDefaultDescription
notifications.enabledtrueEnable push notifications
autoApprove.readstrueAuto-approve file reads
autoApprove.safePaths[]Paths to auto-approve writes
server.port9876Local server port

Security

ForkOff takes security seriously. Here's how we protect your code:

End-to-End Encryption

All communication between your devices is encrypted using TLS 1.3. Your code and commands never pass through our servers unencrypted.

Local-First Architecture

The CLI runs entirely on your machine. We only relay encrypted messages between your devices. We can't see your code.

No Account Required

Start using ForkOff without creating an account. Device pairing uses cryptographic keys, not passwords.

Troubleshooting

QR code won't scan

Make sure your phone and computer are on the same network. Try:

bash
forkoff pair --port 9877

Connection keeps dropping

Check your firewall settings. ForkOff needs port 9876 (or your configured port) open for local connections.

Claude integration not working

Reinstall the hooks and restart Claude Code:

bash
forkoff tools --uninstall-hooks
forkoff tools --install-hooks