t2cli

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 1 Imported by: 0

README

t2cli

CLI tool for Token2 T2F2 security keys. Reads TOTP/HOTP codes from the device over HID and displays them in an interactive terminal UI.

Installation

go install codeberg.org/oschwand/t2cli@latest

Usage

Launch the interactive UI (default command):

t2cli

View of the main UI

List connected Token2 devices:

t2cli list

Display OTP codes in plain text (no TUI):

t2cli codes

Print version:

t2cli version
Interactive UI
  • j / down arrow: move down
  • k / up arrow: move up
  • Enter: copy selected code to clipboard (requires xclip)
  • q / Esc: quit

TOTP codes refresh automatically at each time step boundary. A progress bar shows the remaining time.

Configuration

Optional config file at ~/.config/t2cli/config.yaml:

device:
  vendor_id: 0x349E

Dependencies

License

MIT -- see LICENSE.

Documentation

Overview

SPDX-License-Identifier: MIT

Directories

Path Synopsis
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
internal
apdu
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
config
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
otp
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
transport
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
tui
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL