Skip to main content

TOTP-CLIP

Generate TOTP authentication code for 2FA from a configuration stored in a YAML file with secrets in the system keyring and copy it to the clipboard.

Configuration (YAML)

Defaults to ~/totp.yml.

service_name:
  remote_name: identifier used to look up the secret in the keyring
  window_title: title of the window showing the OTP
  store_clipboard: Boolean option to either store the OTP in the clipboard

Secret storage (keyring)

Secrets are stored in the OS-native keyring (e.g. Secret Service on Linux, Keychain on macOS, Credential Locker on Windows) via the keyring library, under the service name totp-clip.

Adding a new account

totp-clip-setup service_name

This interactively prompts for the remote name, window title, clipboard preference and the TOTP secret key provided during the setup of the two-factor authentication, then writes the entry to the YAML configuration and stores the secret in the keyring. It can also be used to overwrite an existing entry.

Alternatively, the configuration and the secret can be managed manually: add an entry to the YAML configuration as described above, then store the secret with the keyring command line tool (install it with pipx install keyring):

keyring set totp-clip remote_name

where remote_name matches the corresponding entry in the YAML configuration.

Installation

pipx install totp-clip

Usage

totp-clip service_name

A shortcut may be manually created to launch the command mentioned.

Metadata

Release files for totp-clip 0.10.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for totp-clip 0.10.3
File Size Uploaded
totp_clip-0.10.3.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for totp-clip 0.10.3
File Interpreter ABI Platform
totp_clip-0.10.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 kB

Release files / totp_clip-0.10.3.tar.gz

Download URL totp_clip-0.10.3.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
43aa6af5be61a0db57d0d3add2cc5ffde0e2f6259c5c9c295cff9f4828206ea9
BLAKE2b-256 checksum
How to use checksums
0303ffec772a14fc6c77b20c445e5820d3119da8137335d91e34932fb7230726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Release files / totp_clip-0.10.3-py3-none-any.whl

Download URL totp_clip-0.10.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
734aafc77b02ba315b1b68eed375a768fe3daeddd282f732073b23b7822e9e86
BLAKE2b-256 checksum
How to use checksums
cef5ac08012dc80db2c863d35398956f92e0709f258a65750fd90d1042ee2fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.10.3 This release

2 release files

0.10.2

2 release files

0.9.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page