CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Keeper Commander

$ keeper 官方出品 高风险
Keeper Security · 安全扫描与密钥管理 · MIT · macos / linux / windows

Keeper Commander(keeper)是 Keeper Security 官方命令行工具与 SDK,用于管理企业密码库、SSH/数据库轮转、KeeperPAM 隧道与合规审计。在完成授权设备 config.json 初始化后,支持批处理子命令与 --format=json 输出。

FCRS-1.0 综合评分
79 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
pip install keepercommander
CLI vs MCP 选型建议 优先选 CLI

keeper 依托本地加密设备状态即可通过 --format=json 完成 KeeperPAM 轮转、记录查询与审计导出,适合直接走 CLI。

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 19 / 25

支持 --format=json 与单次子命令调用,但未认证或无子命令启动时会进入交互式 keeper shell 或触发 SSO/2FA 提示。

  • Native --format=json across list, get, and audit commands
  • Interactive shell/2FA prompts when persistent config.json is missing
安全与权限边界 18 / 25

具备企业级 RBAC 与加密 config.json 设备令牌治理,但读取记录会输出明文密钥且 PAM 轮转属于变更操作。

  • Device-bound persistent login with enterprise RBAC
  • Supports destructive deletes and live PAM credential rotation
安装与运行摩擦 11 / 15

通过 PyPI(keepercommander)与安装包分发,Python 依赖树较大且需完成初次设备与 2FA 注册。

  • PyPI package + standalone installers with heavy Python dependencies
能力覆盖与边际价值 13 / 15

单工具覆盖企业保险库、合规审计报表与 PAM 自动化能力。

  • Unifies vault CRUD, audit logs, and KeeperPAM rotation
维护与来源背书 10 / 10

Keeper Security 官方项目(Keeper-Security/Commander),MIT 协议高频更新。

  • First-party Keeper-Security/Commander repository
文档与可验证性 8 / 10

docs.keeper.io 企业文档详尽覆盖 Commander 命令与 JSON 参数。

  • Official docs at docs.keeper.io

安全边界、鉴权与放权指南

鉴权方式
本地配置文件 浏览器 OAuth 环境变量密钥
凭证存储位置

持久化设备令牌与加密会话参数保存在 ~/.keeper/config.json(可通过 --config 指定路径)。

潜在副作用
只读查询 本地写入 远端写入 破坏性删除
费用与配额提示

MIT 开源 CLI;需配合 Keeper Security / KeeperPAM 商业订阅使用。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Keeper Commander (keeper) Agent Rules
- Always pass `--config` (pre-authenticated persistent login) and `--format=json` so `keeper` does not drop into `keeper shell` or prompt for SSO/2FA.
- Require explicit approval before running `pam action rotate`, `rm`, or `record-update`.

Agent 高频安全命令配方

只读查询(安全推荐)

以 JSON 列出保险库记录
keeper --config ~/.keeper/config.json list --format=json

通过 --config 完成认证,并使用 --format=json 输出可访问记录的元数据列表。

以 JSON 获取单条记录字段
keeper --config ~/.keeper/config.json get <record-uid> --format=json

按 <record-uid> 提取结构化 JSON 格式的记录详情。

受控写入与预演

触发记录的 PAM 凭据轮转
keeper --config ~/.keeper/config.json pam action rotate --record <record-uid>

通过 KeeperPAM 对 <record-uid> 执行托管密钥轮转。

核心优势

  • + 保险库查询、合规报表与 PAM 控制均支持完备的 --format=json 输出。
  • + 持久化设备 config.json 配置好后即可支持无人值守的 CI/Agent 运行。

注意事项与踩坑点

  • ! 首次启用 config.json 前必须交互完成主密码、SSO 或 2FA 设备授权。
  • ! 不带子命令直接运行 keeper 会进入交互式终端(keeper shell)。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI