1Password CLI for Openclaw

A secure interface for your AI agent to manage, read, and inject secrets using the 1Password command-line tool.

zhaozewen0519
v1.0.0
Mar 18, 2026
0
913
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install 1password-bak

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install 1password-bak using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is 1Password CLI?

The 1Password CLI skill empowers your AI agent to interact with 1Password vaults directly through the op tool. This integration for Openclaw Skills ensures that sensitive credentials and environment variables are handled securely without being hardcoded or exposed in plain text logs. By bridging the gap between local desktop security and automated terminal environments, it provides a safe way for agents to perform authenticated tasks.

Built with security-first principles, this skill leverages the official 1Password binary to handle authentication and secret retrieval. It is designed to work seamlessly with the 1Password desktop app, allowing for biometric unlock and multi-account support while maintaining a clean, technical workflow for Openclaw Skills users.

1Password CLI Use Cases

  • Automating secret injection into development environments for secure coding.
  • Signing into 1Password accounts via terminal for multi-account management.
  • Retrieving environment variables securely for CI/CD or local automation workflows.
  • Managing vault items and lists without leaving the AI agent interface.
  • Running applications with secure secrets using the op run command.

How 1Password CLI Works

  1. The agent checks the host OS and verifies if the op binary is present in the system path.
  2. It confirms that the 1Password desktop app integration is enabled and the application is unlocked.
  3. A dedicated tmux session is created using a fresh socket to handle the TTY requirements of the 1Password CLI.
  4. Authentication is performed inside the tmux environment using op signin to trigger the desktop app prompt.
  5. Access is verified using the op whoami command to ensure the session is active.
  6. Secrets are read, injected, or managed within the isolated session to prevent TTY-related failures.
  7. The tmux session is securely terminated once the operation is complete.

1Password CLI Setup

To get started with this skill for Openclaw Skills, you must first install the 1Password CLI. Use the following command:

brew install 1password-cli

After installation, verify the version:

op --version

Finally, open your 1Password desktop app, go to Settings > Developer, and ensure that the "Connect with 1Password CLI" option is enabled.

1Password CLI Data Schema & Taxonomy

The skill manages secret data and session metadata to ensure secure execution. It primarily interacts with the following schema:

Attribute Description
Account The 1Password account URL or shorthand identifier (e.g., my.1password.com).
Secret Path The canonical reference to a secret, formatted as op://vault/item/field.
Socket Path The file system path to the temporary tmux socket used for session isolation.
Session ID A unique timestamped identifier for the active CLI session.
Vault List A collection of metadata regarding accessible 1Password vaults.

1Password CLI Advanced Features

  • Multi-account support allowing agents to switch contexts using the --account flag.
  • Secure process execution via op run, preventing secrets from ever touching the disk.
  • Isolated TTY session management using custom tmux socket conventions for Openclaw Skills.
  • Automatic injection of secrets into configuration files using op inject.
  • Guardrails that prevent secrets from being logged in chat history or code outputs.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*