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.
Continue reading
The rest of this article is for AI News Blitz readers. Choose an option below to keep reading.