# YubiKey Code for Raycast

URL: https://www.raycast.com/yoyoyeti/yubikey-code

> Get OTP and 2FA codes from your YubiKey using ykman, and copy or paste them.

- Install: raycast://extensions/yoyoyeti/yubikey-code
- Author: [Zac](https://www.raycast.com/yoyoyeti)
- Installs: 1,247
- Categories: Productivity, Security
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/yubikey-code/

## Commands

- **Get Code**: Get OTP from YubiKey

## README

### YubiKey Code

Easily get a OTP from your YubiKey

#### Requirements

- [ykman](https://docs.yubico.com/software/yubikey/tools/ykman/Install_ykman.html#macos) (`brew install ykman`)

#### Setup

To start using the extension, simply provide your path to `ykman` and select your preferred primary action.

You can also provide a path to a custom icon pack. Icon packs must follow the [Aegis Icon Pack Format](https://github.com/beemdevelopment/Aegis/blob/master/docs/iconpacks.md). You can download a pre-built icon pack from https://aegis-icons.github.io/, or build your own.

![preference](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/yubikey-code//media/preferences.png)
