# 1password-cli を Homebrew Cask でインストール

1password-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install cask:1password-cli
```

## エージェント安全性の回答

1password-cli brokers access to secrets and vault items from local workflows.

- **認証情報アクセス:** Can read secrets, documents, and account metadata after authentication.
- **リモート変更:** Can edit vault items and service-account-backed secret state.
- **公開/成果物リスク:** Can export or inject secrets into downstream release tools.
- **推奨コントロール:** Gate item reads, exports, edits, and service-account token use.
- **エージェント利用ガイダンス:** Allow metadata inspection only; require approval for secret reads or item mutations.

追加のインストールコマンド:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask 1password-cli
```

  証拠: local Homebrew cask metadata

## パッケージ情報

- **パッケージキー:** cask:1password-cli
- **パッケージマネージャ:** Homebrew Cask
- **バージョン:** 2.38.1
- **ソース概要:** Command-line interface for 1Password
- **ホームページ:** <https://developer.1password.com/docs/cli>
- **最終更新:** 2026-07-30T21:48:56Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- op (バイナリ)
- op (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.38.1
## プロジェクトの歴史と使われ方

1Password CLI is the official op command for using 1Password from a terminal, scripts, and developer workflows.

### プロジェクトの歴史

The official get-started documentation describes 1Password CLI as bringing 1Password to the terminal, with installation paths for macOS, Windows, and Linux and integration with the desktop app for local authentication.

1Password's official CLI 2 release notes show an actively maintained product-history stream for the modern CLI, including package installer changes, desktop app integration fixes, shell plugin work, and Docker tag behavior after CLI 1 deprecation.

### 採用の歴史

CLI adoption is tied to developer and operations workflows: Homebrew, winget, manual installs, Docker images, shell plugins, scripts, and desktop-app-backed authentication are all documented official distribution or usage paths.

### 使われ方

Users run op to sign in, manage vault items, retrieve secrets, automate scripts, and integrate 1Password with shell and development workflows. The configuration directory can be controlled with --config or OP_CONFIG_DIR, otherwise it follows documented XDG and legacy directory precedence.

### パッケージ好きにとっての重要性

For package maintainers, 1Password CLI is notable because the Homebrew cask wraps a proprietary vendor-distributed binary, while the install docs state the cask is maintained by both Homebrew and 1Password developers and downloads from AgileBits/1Password CDN domains.

### タイムライン

- 2020s: 1Password CLI 2 becomes the actively maintained CLI line documented by the official CLI2 release notes.
- 2020s: Official install docs document Homebrew, winget, Linux package managers, manual downloads, and desktop app integration.
- 2025: CLI 2 release notes mention Docker tag behavior following CLI 1 deprecation.

### Related projects

- Related official surfaces include the 1Password desktop apps, 1Password Connect, shell plugins, Docker images, and the Homebrew Cask packaging repository.

### ソース

- <https://app-updates.agilebits.com/product_history/CLI2>
- <https://www.1password.dev/cli/config-directories.md>
- <https://www.1password.dev/cli/get-started.md>
- <https://www.1password.dev/cli/reference>


## セキュリティノート

1password-cli に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ${XDG_CONFIG_HOME}/op, ~/.config/op, ~/.op, ${XDG_CONFIG_HOME}/.op
## 他のパッケージマネージャ記録

- Nix - _1password-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/_1/_1password-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - 1password-cli: normalized package name match | MacPorts ports tree: security/1password-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/1password-cli: normalized package name match | Scoop official bucket manifest trees: bucket/1password-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - AgileBits.1Password.CLI: normalized package name match | Windows Package Manager source index: AgileBits.1Password.CLI from https://cdn.winget.microsoft.com/cache/source.msix
- Chocolatey - op: installed executable or alias match | Chocolatey community package catalog: op from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nvs'


## Combined YAML source

View the package source record on GitHub. [combined/1password-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/1password-cli.yml)


## ソース

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
