tofa cam
Open a browser-based webcam scanner and add the first QR detected.
Synopsis
tofa cam [FLAGS]
Flags
| Flag | Description |
|---|---|
--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
tofacontinues with the detected account.
See also
tofa scan— screen capture variant (no camera needed).tofa add --qr— for an image on disk.