AI 导读
Claude 官方为 Claude Platform 推出 ant CLI,把全套 API 端点搬进终端,Messages API 和 hosted agents 的结果可直接 pipe 进 shell。
正文
哇偶,Claude 官方这个 ant CLI 有点意思啊,
把 Claude Platform 全套 API 塞进终端,每个端点都能通过命令行直接跑。
ant 是 Claude Platform 的原生命令行工具,Messages API、hosted agents,结果直接 pipe 进 shell,不用翻文档拼 curl。
Ant能解决什么问题?
以前调 Claude API 要:翻文档 → 拼 HTTP → 处理 JSON → 写脚本封装,
现在:终端里直接调,输出直接进你的 pipeline,agent 也能从命令行启动。
怎么用Ant?
ant CLI 被设计成 coding agent 友好型,Claude Code 用 claude-api skill 就能读懂它,你的 agent 不光能写代码,还能直接调用 Claude 官方 API 干活。
一些实用场景:
1. 批量处理本地文件,直接 pipe 给 Claude 分析
2. shell 脚本里自动化调用,省掉 Python 胶水代码
3. CI/CD 流水线里集成 Claude 能力
4. Claude Code 里让 agent 自己调 API,闭环更深
说白了,Claude 正在从网页聊天工具往终端基础设施切。
对于写代码的人,终端就是主场,那么它这次直接切进了你的主场。
视频 30 秒,建议先扫一眼 👇
Video
We’ve added a CLI for Claude Platform to make every API endpoint runnable from your terminal. Call the Messages API, stand up Claude Managed Agents, pipe results straight into your shell. The ant CLI is well understood by coding agents (Claude Code) using the claude-api skill. Video在 X 查看被引用的帖子
来源:@AYi_AInotes · x.com