Metadata-Version: 2.4
Name: onlykey-agent
Version: 1.1.17
Summary: Using OnlyKey as hardware SSH/GPG agent
Home-page: http://github.com/trustcrypto/onlykey-agent
Author: CryptoTrust
Author-email: admin@crp.to
Project-URL: Homepage, https://github.com/trustcrypto/onlykey-agent
Project-URL: Documentation, https://docs.onlykey.io
Project-URL: Source, https://github.com/trustcrypto/onlykey-agent
Platform: POSIX
Classifier: Environment :: Console
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Networking
Classifier: Topic :: Communications
Classifier: Topic :: Security
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: lib-agent>=1.0.9
Requires-Dist: onlykey>=1.3.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: platform
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# onlykey-agent

**Use your [OnlyKey](https://onlykey.io) as a hardware-based SSH and GPG agent.**

`onlykey-agent` lets you perform SSH authentication and GPG operations (signing,
encryption, and decryption) using keys that are generated and stored on an
OnlyKey hardware security device. Your private keys are created on the device
and never leave it — they are never written to disk or exposed to your computer,
which protects them from malware and key-theft even on a compromised host.

It is part of the [`lib-agent`](https://pypi.org/project/lib-agent/) family of
hardware agents (alongside `trezor-agent`, `ledger_agent`, `keepkey_agent`, and
`jade_agent`).

## Features

- **SSH agent** — authenticate to servers and Git hosts with a key held on your OnlyKey.
- **GPG agent** — sign emails, Git commits, and software releases, and decrypt messages.
- **age support** — encrypt and decrypt files with hardware-backed keys.
- **No keys on disk** — keys are generated and stored on the device and never reach the host.

## Installation

```bash
pip install onlykey-agent
```

This installs three console entry points:

- `onlykey-agent` — SSH agent
- `onlykey-gpg` — GPG tool
- `onlykey-gpg-agent` — GPG agent

## Usage

Use your OnlyKey to log in over SSH:

```bash
onlykey-agent user@example.com -c
```

Set up a GPG identity backed by your OnlyKey:

```bash
onlykey-gpg init "Your Name <you@example.com>"
```

Derived keys default to the original derivation, so existing SSH and GPG keys
are unchanged. `--skey derived-v2` / `--dkey derived-v2` selects the newer
HKDF-based derivation (firmware v3.1.0+), which gives different keys.

Full SSH and GPG instructions, including common use cases, are available in the
[project documentation](https://github.com/trustcrypto/onlykey-agent).

## Requirements

- Python 3.10+
- An [OnlyKey](https://onlykey.io) device (composite PQC GPG keys and `--skey/--dkey derived-v2` need firmware v3.1.0 or newer)
- [`lib-agent`](https://pypi.org/project/lib-agent/) and the
  [`onlykey`](https://pypi.org/project/onlykey/) Python package (installed automatically)

## Links

- Homepage / source: https://github.com/trustcrypto/onlykey-agent
- OnlyKey: https://onlykey.io
- Documentation: https://docs.onlykey.io

## License

Released under the GNU Lesser General Public License v3 (LGPLv3).
