1Password for Openclaw

A secure automation skill for managing 1Password CLI operations and secret injection within AI agent workflows.

littlecrabzzz-alt
v1.0.0
Mar 1, 2026
0
2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install test-skill2123

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 test-skill2123 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?

The 1Password skill for Openclaw Skills provides a professional framework for AI agents to interact with the 1Password CLI (op). It focuses on secure installation, desktop app integration, and handling the complex TTY requirements of CLI authentication. By using this skill, developers can ensure their AI agents access sensitive credentials through official, biometric-backed channels without exposing raw secrets in chat logs or codebases.

This implementation prioritizes security best practices, such as leveraging op run and op inject to keep secrets out of persistent storage. It addresses the technical challenge of CLI prompts by utilizing dedicated tmux sessions, making it a robust choice for anyone building secure automation with Openclaw Skills.

1Password Use Cases

  • Automating the injection of environment variables from 1Password vaults into development environments.
  • Managing multi-account authentication for complex cloud infrastructure tasks.
  • Securely fetching database credentials or API keys during automated deployment pipelines.
  • Verifying identity and access permissions via op whoami in non-interactive agent shells.

How 1Password Works

  1. The skill identifies the host operating system and shell environment to ensure compatibility.
  2. It verifies the presence of the 1Password CLI (op) and checks the version.
  3. A dedicated tmux session is initialized with a unique socket and session name to handle the interactive sign-in flow.
  4. The agent executes op signin within the tmux session, triggering the 1Password desktop app for biometric or password authorization.
  5. Access is validated using op whoami to confirm the session is active and authorized.
  6. Secure commands like op vault list or op inject are executed within the protected session context.
  7. The tmux session is safely terminated and sockets are cleaned up to maintain system hygiene.

1Password Setup

To enable this skill, first ensure the 1Password CLI is installed. You can use the following command provided by Openclaw Skills:

brew install 1password-cli

After installation, enable CLI integration in your 1Password Desktop App under Settings > Developer. To verify the agent can communicate with the CLI, run:

op --version

1Password Data Schema & Taxonomy

Component Description
Binary 1Password CLI (op)
Session Manager tmux (for TTY persistence)
Socket Path Custom directory defined by OPENCLAW_TMUX_SOCKET_DIR
Session Naming op-auth-[timestamp] for isolation
Auth Methods Desktop app integration or manual account addition

1Password Advanced Features

  • Isolated TTY handling using custom tmux sockets to prevent session interference.
  • Support for multi-account management using the OP_ACCOUNT environment variable or --account flag.
  • Diskless secret management using op run and op inject for high-security environments.
  • Automated session capture and cleanup patterns specifically designed for AI agent shells.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*