ainewsblitz.com

Breaking · Claude Developers

Anthropic launches official 'ant' CLI for Claude API

On June 2, 2026, Anthropic announced—with a demo video via its official developer account @ClaudeDevs—the addition of "ant CLI," an official command-line tool that makes every Claude Platform API endpoint runnable from the terminal. It can call the Messages API, stand up Managed Agents, and pipe results straight into the shell from a single CLI, with emphasis on the fact that the company's coding agent "Claude Code" can natively understand and use the tool via the claude-api skill.

The ant CLI is an official tool that exposes every Claude API resource as a terminal command. Users can generate messages with ant messages create, or create, update, and launch sessions for Managed Agents with ant beta:agents create, piping the results directly into the shell. Commands follow a unified structure of ant <resource>[:<subresource>] <action> [flags], with beta resources automatically receiving the anthropic-beta header. Requests can be built with flags or piped YAML/JSON, files can be inlined with @path syntax, and --transform lets users shape responses with GJSON paths without jq. Output formats include auto/pretty/json/yaml/jsonl plus a TUI explore mode, with support for automatic pagination and list streaming.

Claude Platform is Anthropic's developer hub, offering APIs using frontier models such as Claude Opus and Sonnet, cloud-hosted Managed Agents, and session management. Previously, hand-written curl and JSON or SDK use was the norm, creating friction in the developer experience; ant CLI replaces this with terminal-native operation. Installation is supported via brew install anthropics/tap/ant on macOS, go install (requiring Go 1.22+), or binaries from GitHub releases. Authentication is via ant auth login browser OAuth (workspace-scoped) or the ANTHROPIC_API_KEY environment variable, with profile management and multiple workspace support. It runs on macOS/Linux/WSL and supports CI/CD and remote environments via --no-browser. Written in Go and MIT-licensed, the latest version as of May 28, 2026 is v1.10.0.

The ant CLI was released around April 2026, roughly alongside Claude Managed Agents, enabling a GitOps-style workflow where agents are version-controlled in YAML and synced via CI using ant beta:agents update. Compared with rivals such as OpenAI's CLI, it strengthens the angles of being "terminal-native" and "a CLI as an agent control surface," highlighting its affinity with Claude Code.

The June 2 post drew high engagement, with over 3,630 likes, 300,000+ views, and 143+ replies. Reactions were broadly positive, including a comment that "piping agents straight into shell plus native Claude Code integration equals dangerous productivity," while many praised the GitOps workflow of versioning agents in YAML and syncing via CI, and faster terminal-centric prototyping. The ability for Claude Code to call ant directly drew "game changer" and "the terminal is becoming an agent control surface" remarks, with concrete use cases shared such as PDF uploads, session listing, debugging, and going from launching a Managed Agents session to retrieving traces—all delegated to the CLI. A few voices raised unresolved support tickets, desktop app feature requests, or billing concerns. Details are published in the official documentation and the GitHub repository. No specific pricing or benchmark figures were disclosed, and API usage fees apply separately.

Source post →