tofa cam

Open a browser-based webcam scanner and add the first QR detected.

Synopsis

tofa cam [FLAGS]

Flags

FlagDescription
--camera <INDEX>Camera index passed to the browser (default: 0)
--name <NAME>Override the account name (default: derived from QR metadata)

Examples

Default camera:

$ tofa cam
Passphrase: ********
Open http://127.0.0.1:54321 in your browser…
✓ added GitHub:you

Pick a specific camera (e.g., the second one):

$ tofa cam --camera 1

Notes

  • The browser scanner runs locally on a random port — nothing leaves your machine.
  • Grant the browser permission to use the camera when prompted.
  • Once a QR decodes, the page closes itself and tofa continues with the detected account.

See also