Install
openclaw skills install 1password-cliSecurely access and manage secrets with 1Password CLI using a Service Account token for vault operations like read, write, edit, and delete.
openclaw skills install 1password-cliThis skill allows agents to securely access and manage secrets using the 1Password CLI (op) and a Service Account. It provides commands for reading, writing, and managing items within a dedicated vault.
brew install --cask 1password-cliOP_SERVICE_ACCOUNT_TOKEN in your environment (e.g., .env file or export in shell).OP_SERVICE_ACCOUNT_TOKEN=... to .env.All commands require the OP_SERVICE_ACCOUNT_TOKEN to be set.
Verify the service account is working:
op whoami
List vaults accessible to the service account:
op vault list
Get details of an item (JSON format is best for parsing):
op item get "Item Name" --vault "Vault Name" --format json
Or get a specific field (e.g., password):
op read "op://Vault Name/Item Name/password"
Create a login item:
op item create --category login --title "My Service" --url "https://example.com" --vault "Vault Name" username="myuser" password="mypassword"
Create a secure note:
op item create --category "Secure Note" --title "API Key" --vault "Vault Name" notes="my-secret-key"
Update a password:
op item edit "Item Name" password="newpassword" --vault "Vault Name"
op item delete "Item Name" --vault "Vault Name"
--format json to op commands for structured data that is easier to parse.OP_SERVICE_ACCOUNT_TOKEN or retrieved secrets to the console unless explicitly asked.--vault flag to avoid ambiguity.OP_SERVICE_ACCOUNT_TOKEN is set correctly.