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

Teller

$ teller 社区开源 高风险
TellerOps · 安全扫描与密钥管理 · Apache-2.0 · macos / linux / windows

Teller 是基于 Rust 的通用密钥管理工具,可通过 .teller.yml 聚合 Vault、AWS SSM、GCP Secret Manager、Doppler 与 .env 等后端。teller show 默认对密钥值脱敏,同时 teller export json 与 --json 支持结构化输出。

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

teller run 直接将密钥注入子进程且 teller show 默认本地脱敏,无需 MCP 中间层且更安全。

Agent 友好度体检单

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

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

FCRS-1.0 六维评分拆解

Agent 友好度 20 / 25

支持无头执行,扫描支持 --json 且导出支持 teller export json,但 teller show 输出为脱敏纯文本。

  • Supports --json and teller export json
  • Non-interactive execution driven by .teller.yml
安全与权限边界 19 / 25

teller show 默认只显示前两个字符且 teller run 避免落盘,但 teller export json 会输出原始明文密钥。

  • Default value masking in teller show
  • Raw secret exposure risk in teller export
安装与运行摩擦 13 / 15

可通过 brew install teller、Cargo 与 GitHub Releases 在 macOS、Linux、Windows 安装。

  • Single Rust binary across major OSes
能力覆盖与边际价值 13 / 15

通过一份声明式 .teller.yml 统一多种密钥后端,并附带 teller scan 泄露检测。

  • Multi-provider abstraction plus built-in leak scanner
维护与来源背书 7 / 10

TellerOps 维护的开源 Rust 重写版本,功能完善,社区定期维护。

  • Hosted at github.com/tellerops/teller
文档与可验证性 7 / 10

README 示例与 --help 较为清晰,但具体后端配置细节需参考仓库示例。

  • README and example .teller.yml templates in repo

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

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

提供方映射保存在 .teller.yml 中;上游密钥后端凭据来自环境变量或各厂商 CLI。

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

100% 免费开源(Apache-2.0);上游密钥托管服务可能单独计费。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Teller Agent Rules
- Use `teller show` (masked) or `teller scan --json .` for safe inspection; avoid `teller export json` unless writing to an encrypted sink.
- Prefer `teller run -- <cmd>` over materializing `.env` files on disk.

Agent 高频安全命令配方

只读查询(安全推荐)

以脱敏方式查看已配置的密钥键名
teller show

展示 .teller.yml 解析出的变量名,默认仅显示密钥前两个字符进行脱敏。

以 JSON 扫描源码树中泄露的已配置密钥
teller scan --json .

扫描代码仓库中是否意外明文硬编码了来自已配置后端的密钥,并以 JSON 输出。

受控写入与预演

在注入密钥的环境中运行子进程
teller run -- env | wc -l

在内存中将映射的密钥注入子进程环境变量,不在磁盘生成 .env 文件。

核心优势

  • + teller show 默认对密钥值脱敏,降低凭据意外进入 Agent 对话记录的风险。
  • + 支持 teller scan --json 检测代码中硬编码的线上密钥副本。

注意事项与踩坑点

  • ! teller export json 会将未脱敏的明文密钥输出至 stdout。
  • ! 依赖正确配置的 .teller.yml 与上游后端环境变量凭据。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI