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

Posting

$ posting 社区开源 低风险
Darren Burns · 浏览器与网页抓取 · Apache-2.0 · macos / linux / windows

Posting(darrenburns/posting)将 HTTP 请求以可读的 .posting.yaml 文件保存在代码仓库中。除现代化的 Textual TUI 外,还提供 posting run <request> --json 无头运行器以及 posting remote 远程驱动接口,兼顾人机协作与 CI 自动化。

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

posting 直接在仓库内使用本地 .env 密钥运行纳入 Git 版本控制的 .posting.yaml 请求并输出 --json,避免在 MCP 中重复定义 HTTP 接口。

Agent 友好度体检单

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

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

FCRS-1.0 六维评分拆解

Agent 友好度 21 / 25

posting run ... --json 可无头输出结构化 JSON 响应且支持 posting remote 编排,但直接运行 posting 会进入 TUI。

  • Headless posting run --json outputs status, headers, and body as JSON
  • Supports posting remote for driving active sessions
安全与权限边界 21 / 25

纯文本 .posting.yaml 便于在执行前审计,且 posting run 会拒绝内嵌脚本以避免隐蔽副作用。

  • Plain YAML request definitions auditable in Git
  • Headless runner rejects embedded scripts for safety
安装与运行摩擦 14 / 15

支持 brew install posting、pip install posting 与 uvx posting,覆盖 macOS、Linux 与 Windows。

  • Easy zero-setup execution via uvx posting or Homebrew
能力覆盖与边际价值 12 / 15

用同一套 .posting.yaml 集合同时服务开发者 TUI 调试与 CI/Agent 自动化。

  • Shared .posting.yaml format for both humans and CI/agents
维护与来源背书 8 / 10

持续活跃维护的 Apache-2.0 开源项目(darrenburns/posting)。

  • Apache-2.0 darrenburns/posting repository
文档与可验证性 8 / 10

posting.sh 官方指南详细说明了无头运行器、.env 变量与 .posting.yaml 结构。

  • Official guide at posting.sh/guide/

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

鉴权方式
无需鉴权 本地配置文件
凭证存储位置

结合本地 .posting.yaml 集合,从 --env / -e 指定的 .env 文件加载环境变量与密钥。

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

Apache-2.0 开源 Python CLI,完全免费。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Posting (posting) Agent Rules
- Never run bare `posting` in agent shells because it starts a TUI; use `posting run <file> --json`.
- Always pass `--collection <dir>` and `--env <file>` explicitly.
- Inspect `.posting.yaml` method (`GET` vs `POST`/`DELETE`) before invoking `posting run`.

Agent 高频安全命令配方

只读查询(安全推荐)

无头运行已保存的 YAML GET 请求并输出 JSON
posting run api/health.posting.yaml --collection ./requests --env staging.env --json

在不启动 TUI 的情况下执行 .posting.yaml 请求,并以 JSON 输出状态码、响应头与响应体。

列出活跃的 Posting TUI 实例
posting remote list

查看可供 posting remote send 调用的运行中 Posting 实例。

受控写入与预演

通过无头运行器执行变更类 YAML 请求
posting run api/create-item.posting.yaml --collection ./requests --env staging.env --json

执行仓库中的 POST/PUT .posting.yaml 请求并返回结构化 JSON 结果。

核心优势

  • + posting run --json 让 Agent 直接复用开发者提交到 Git 的 .posting.yaml 请求集合。
  • + 无头模式主动拦截内嵌脚本,保证执行行为可预测。

注意事项与踩坑点

  • ! 直接执行 posting --collection <dir> 会启动全屏 TUI 而非立即退出。
  • ! 依赖前置 Python 脚本的请求会被 posting run 拒绝执行。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI