Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 1Password CLI
Follow the official CLI get-started steps. Don't guess install commands.
## References
- `references/get-started.md` (install + app integration + sign-in flow)
- `references/cli-examples.md` (real `op` examples)
## Workflow
1. Check OS + shell.
2. Verify CLI present: `op --version`.
3. Confirm desktop app integration is enabled (per get-started) and the app is unlocked.
4. REQUIRED: create a fresh tmux session for all `op` commands (no direct `op` calls outside tmux).
5. Sign in / authorize inside tmux: `op signin` (expect app prompt).
6. Verify access inside tmux: `op whoami` (must succeed before any secret read).
7. If multiple accounts: use `--account` or `OP_ACCOUNT`.
## REQUIRED tmux session (T-Max)
The shell tool uses a fresh TTY per command. To avoid re-prompts and failures, always run `op` inside a dedicated tmux session with a fresh socket/session name.
Example (see `tmux` skill for socket conventions, do not reuse old session names):
```bash
SOCKET_DIR="${OPENCLAW_TMUX_SOCKET_DIR:-${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/openclaw-tmux-sockets}}"
mkdir -p "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/openclaw-op.sock"
…
The line at the top of this page pins the label git:20260304.8ebbeae, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_f3zwczdujimttqbs
GET https://markdownregistry.com/api/v1/resolve?ref=trpc-group/trpc-agent-go/1password
GET https://markdownregistry.com/api/v1/blob/9e9dace009cf3fa8dc8b3fc9af867ba44999289a3fdbd21ac9d9bddf585e29cc
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
trpc-group/trpc-agent-go · examples/agui/server/skill_artifacts/skills/artifact_demo/SKILL.md · Demo skill that writes an output file and persists it as an artifact.
trpc-group/trpc-agent-go · examples/dynamicworkflow/skills/skills/fanout-analysis/SKILL.md · Use this workflow recipe when a question benefits from several independent perspectives followed by a single…
trpc-group/trpc-agent-go · examples/dynamicworkflow/skills/skills/quality-loop/SKILL.md · Use this workflow recipe when a draft, plan, proposal, or other deliverable should be independently reviewed and…
trpc-group/trpc-agent-go · examples/mcpbroker/basic/skills/remote-http-mcp/SKILL.md · Connect to a remote streamable HTTP MCP service that exposes announcements and FAQ tools.
trpc-group/trpc-agent-go · examples/skilldynamicschema/skills/plan_route/SKILL.md · Plan a route and return distance + ETA (schema + deterministic result).
bitterbot-ai/bitterbot-desktop · skills/1password/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
leoyeai/agent-master-skills · skills/1password/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
leoyeai/openclaw-master-skills · skills/1password/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
amd/gaia · tests/fixtures/openclaw_skills/1password-liteclaw/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
amd/gaia · tests/fixtures/openclaw_skills/1password-craftbot/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
cowork-os/cowork-os · resources/skills/1password/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…
betterwright/betterwright · skills/1password/SKILL.md · Read this when the browser profile has the 1Password extension and a login, signup, or payment form should be filled…
letta-ai/skills · tools/1password/SKILL.md · Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or…