1password-developer
Work with 1Password developer features including SSH key management, the SSH agent, 1Password Environments for secrets injection, and the op CLI. Use this…
от danchamorro★ 18 звёзд на GitHub
Установить 1password-developer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
1Password Developer Workflows
This skill covers the 1Password developer toolchain: SSH key management via the SSH agent, secrets injection via Environments, and the op CLI.
Quick Reference
| Tool | Purpose |
|---|---|
| 1Password Desktop App | SSH agent, key imports, environment management |
op CLI (stable) |
Item management, secret references, op run, op inject |
op CLI (beta) |
Adds op run --environment and op environment read |
| SSH Agent | Serves keys from 1Password vaults to SSH/Git clients |
| Environments | Store and inject env vars at runtime without plaintext on disk |
SSH Key Management
Supported key types
1Password supports only these SSH key types:
- Ed25519 (recommended, fastest, most secure)
- RSA: 2048, 3072, and 4096-bit only
Not supported: ECDSA, DSA, RSA keys larger than 4096-bit (e.g., 6096-bit), PuTTYgen .ppk format.
Check a key's type and size before importing:
ssh-keygen -lf ~/.ssh/your_key
# Output: 256 SHA256:abc... user@host (ED25519)
# Output: 4096 SHA256:xyz... user@host (RSA)
Importing SSH keys
The CLI cannot import existing SSH keys. This is a desktop-app-only operation.
From the official docs: "To import an existing SSH key, use the 1Password desktop app."
To import via the desktop app:
- Navigate to the target vault in the sidebar
- Select New Item > SSH Key
- Select Add Private Key > Import a Key File
- Navigate to the key file and import
- If the key has a passphrase, enter it once
- Save
The CLI can only generate new keys:
op item create --category ssh --ssh-generate-key ed25519 --title "My New Key" --vault Private
Watchtower for SSH keys
The 1Password Developer Watchtower (Developer > View Watchtower) scans ~/.ssh/ and shows:
- Needs Attention: Unencrypted keys on disk
- Recommendations: Keys that can be imported or managed
Some keys show "Import" buttons, others show "Show in Finder" with an Import option in the dropdown.
SSH Agent setup
The 1Password SSH agent serves keys from vaults without exposing private keys to SSH clients.
macOS agent socket: ~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock
Enable in the app: Settings > Developer > Set Up SSH Agent
Configure your SSH client (~/.ssh/config):
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Verify the agent sees your keys:
SSH_AUTH_SOCK="$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" ssh-add -l
Agent config for custom vaults
By default, the agent only serves keys from the built-in Personal, Private, or Employee vault. For shared or custom vaults, create ~/.config/1Password/ssh/agent.toml:
ssh-keys
vault = "Private"
ssh-keys
vault = "Bridge"
ssh-keys
vault = "Business"
You can use vault names or vault UUIDs. Get vault IDs with:
op vault list --format=json | jq -r '.[] | "\(.id) \(.name)"'
Important: Creating this file overrides the default behavior entirely. If you create it, you must explicitly include your Private/Personal vault or its keys will no longer be available.
The 1Password app may need to be quit and relaunched to detect a newly created agent.toml file.
Using keys after they're in 1Password
Once keys are in 1Password and the agent is configured, update ~/.ssh/config to point IdentityFile at the public key (not the private key). The public key acts as a hint telling the agent which key to offer:
# Before (private key on disk)
Host github.com
IdentityFile ~/.ssh/my_key
# After (public key hints to agent, private key lives in 1Password)
Host github.com
IdentityFile ~/.ssh/my_key.pub
Public keys are not secret and can stay on disk. This approach also avoids the SSH server 6-key limit.
1Password Environments
Environments store key-value pairs (like .env files) in 1Password and make them available at runtime.
Creating an Environment
Done through the desktop app: Developer > View Environments > New Environment. You can import variables from an existing .env file or add them manually.
Injecting secrets with op run --environment
This is the recommended approach. Requires the beta CLI (v2.33.0-beta.02+):
op run --environment <environment-id> -- npm run dev
How it works:
- You authenticate once at process start
opfetches all variables from the Environment- Variables are injected into the subprocess as environment variables
- Secrets exist only for the duration of the process
- Any secret values appearing in stdout/stderr are automatically masked
Get the environment ID: In the app, select the Environment > Manage environment > Copy environment ID.
Wrapping other toolchains
op run works with any command, not just npm. It injects environment variables into the subprocess, so you can stack it with other toolchains:
#
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 1password-developer?
Work with 1Password developer features including SSH key management, the SSH agent, 1Password Environments for secrets injection, and the op CLI. Use this skill whenever the user mentions 1Password, op CLI, 1Password SSH agent, 1Password Environments, secret references, op run, op inject, or wants to manage SSH keys through 1Password, secure .env files with 1Password, or inject secrets at runtime. Also trigger when the user wants to stop storing plaintext secrets on disk or asks about securing developer credentials.
Как установить скилл 1password-developer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 1password-developer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…