1password
Guide for implementing 1Password secrets management - CLI operations, service accounts, Developer Environments, and Kubernetes integration. Use when…
by julianobarbosa★ 18 GitHub stars
Install 1password in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
1Password
Overview
This skill provides comprehensive guidance for working with 1Password's secrets management ecosystem. It covers the op CLI for local development, service accounts for automation, Developer Environments for project secrets, and Kubernetes integrations including the native 1Password Operator and External Secrets Operator.
Quick Reference
Command Structure
1Password CLI uses a noun-verb structure: op <noun> <verb> [flags]
# Authentication
op signin # Sign in to account
op signout # Sign out
op whoami # Show signed-in account info
# Secret retrieval
op read "op://vault/item/field" # Read single secret
op run -- <command> # Inject secrets as env vars
op inject -i template.env -o .env # Inject secrets into file
# Item management
op item list # List all items
op item get <item> # Get item details
op item create --category login # Create new item
op item edit <item> field=value # Edit item
op item delete <item> # Delete item
# Vault management
op vault list # List vaults
op vault get <vault> # Get vault info
op vault create <name> # Create vault
# Document management
op document list # List documents
op document get <document> # Download document
op document create <file> --vault <vault> # Upload document
Workflow Decision Tree
What do you need to do?
├── Retrieve a secret for local development?
│ └── Use: op read, op run, or op inject
├── Manage project environment variables?
│ └── See: Developer Environments (below)
├── Manage items/vaults in 1Password?
│ └── Use: op item, op vault, op document commands
├── Automate secrets in CI/CD?
│ └── Use: Service Accounts with OP_SERVICE_ACCOUNT_TOKEN
├── Sync secrets to Kubernetes?
│ ├── Using External Secrets Operator?
│ │ └── See: External Secrets Operator Integration
│ └── Using native 1Password Operator?
│ └── See: 1Password Kubernetes Operator
└── Configure shell plugins for CLI tools?
└── Use: op plugin commands
Developer Environments
Developer Environments provide a dedicated location to store, organize, and manage project secrets as environment variables. CLI tools are available in both TypeScript/Bun and Python SDK variants.
Feature Overview
| Feature | GUI | TypeScript CLI | Python SDK CLI |
|---|---|---|---|
| Create environment | Yes | bun run create |
uv run op-env-create |
| Update environment | Yes | bun run update |
uv run op-env-update |
| Delete environment | Yes | bun run delete |
uv run op-env-delete |
| Show environment | Yes | bun run show |
uv run op-env-show |
| List environments | Yes | bun run list |
uv run op-env-list |
| Export to .env | Yes | bun run export |
uv run op-env-export |
| Mount .env file | Yes (beta) | No | No |
CLI Tools Setup (TypeScript)
Tools are written in TypeScript and require Bun runtime:
# Navigate to tools directory
cd tools
# Run any tool with bun
bun run src/op-env-create.ts --help
bun run src/op-env-list.ts --help
# Or use npm scripts
bun run create -- --help
bun run list -- --help
CLI Tools Setup (Python SDK)
Python tools use the official onepassword-sdk package and require uv:
# Navigate to tools-python directory
cd tools-python
# Install dependencies
uv sync
# Run any tool
uv run op-env-create --help
uv run op-env-list --help
Requirements: Python 3.9+, OP_SERVICE_ACCOUNT_TOKEN environment variable.
When to Use SDK vs CLI
| Use Case | Recommended | Why |
|---|---|---|
| Python applications (FastAPI, Django) | Python SDK | Native async, no subprocess overhead |
| Shell scripts, CI/CD pipelines | TypeScript CLI or op CLI |
Direct CLI integration |
| Batch secret resolution | Python SDK | resolve_all() for efficiency |
| Tag-based filtering | TypeScript CLI | SDK lacks tag filter support |
| Interactive local development | Either | Both have identical interfaces |
SecretsManager (Python SDK)
For Python applications that need runtime secret resolution:
from op_env.secrets_manager import SecretsManager
async def main():
sm = await SecretsManager.create()
# Single secret (with caching)
api_key = await sm.get("op://Production/API/key")
# Batch resolve
secrets = await sm.get_many([
"op://Production/DB/password",
"op://Production/DB/host",
])
# Load all vars from an environment item
env = await sm.resolve_environment("my-app-prod", "Production")
See references/python-sdk.md for full SDK reference and integration patterns.
Envi
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- references/cli-commands.md
- references/environments/README.md
- references/kubernetes-examples.md
- references/python-sdk.md
- scripts/setup-gh-plugin.sh
- scripts/setup-service-account.sh
- scripts/sync-check.sh
- templates/docker-compose-env.yaml
- templates/env-op-refs.template
- templates/env.template
- templates/github-actions-env.yaml
- tools-python/README.md
- tools-python/pyproject.toml
- tools-python/src/op_env/__init__.py
- tools-python/src/op_env/op_env_create.py
- tools-python/src/op_env/op_env_delete.py
- tools-python/src/op_env/op_env_export.py
- tools-python/src/op_env/op_env_list.py
- tools-python/src/op_env/op_env_show.py
- tools-python/src/op_env/op_env_update.py
- tools-python/src/op_env/secrets_manager.py
- tools-python/src/op_env/utils.py
- tools/package.json
- tools/src/op-env-create.ts
- tools/src/op-env-delete.ts
- tools/src/op-env-export.ts
- tools/src/op-env-list.ts
- tools/src/op-env-show.ts
- tools/src/op-env-update.ts
- tools/src/utils.ts
- tools/tsconfig.json
FAQ
What does the 1password skill do?
Guide for implementing 1Password secrets management - CLI operations, service accounts, Developer Environments, and Kubernetes integration. Use when retrieving secrets, managing vaults, configuring CI/CD pipelines, integrating with External Secrets Operator, managing Developer Environments, or automating secrets workflows with 1Password.
How do I install the 1password skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the 1password skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…