Skip navigation
We’ve added a CLI for Claude Platform to make every API endpoint runnable from your terminal.
0:00 / 0:30

We’ve added a CLI for Claude Platform to make every API endpoint runnable from your terminal.

ClaudeDevs

877K followers

Visit on X
6,906 likesDownloadOriginal post

1,217,667 views

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.

39 Comments

Comments from the original post on X (Twitter)

  • ClaudeDevs's profile picture

    @ClaudeDevs

    For interactive login, the CLI supports "ant auth login". This runs a browser OAuth flow, scopes the token to a workspace, and stores it for you. That one credential is then used by the CLI (and even the SDKs) to authenticate your API calls.

    252 likes

  • ClaudeDevs's profile picture

    @ClaudeDevs

    Every API resource is a subcommand, including messages, models, and files. Build requests from typed flags or piped YAML, inline a file with @.path, reshape any response with --transform. Output as json, yaml, jsonl, or explore (default) for a TUI you can fold and search.

    195 likes

  • ClaudeDevs's profile picture

    @ClaudeDevs

    Use the ant CLI to create and update Claude Managed Agents, locally or from CI. Version control your agent as YAML in Git and have CI run "ant beta:agents update" to sync changes to the Claude Platform.

    67 likes

  • ClaudeDevs's profile picture

    @ClaudeDevs

    The CLI can kick off a Managed Agents session, send it an event, and the agent goes to work: reasoning, calling tools, working toward an answer. When it's done (or stuck), pull the trace: every event, every tool call, every decision is retrievable from the same CLI.

    115 likes

  • ClaudeDevs's profile picture

    @ClaudeDevs

    Claude Code knows how to use ant using the built-in "/claude-api" skill Ask it to list your sessions, upload a folder of PDFs, or debug a run. It shells out to the CLI and reads the results back without any glue code. Install with brew, curl, or go:

    125 likes

  • John Greg's profile picture

    @JohnGregQuantum

    Running agents straight from the terminal is insane. about to abuse this immediately!!

    24 likes

  • j.jorvex179's profile picture

    @keepkeykey

    Omg can you slow it down

    22 likes

  • Syed Khaliq Hussain's profile picture

    @KhaliqHussainnn

    Is there anything claude can’t do??? Wtf

    6 likes

  • Ziwen's profile picture

    @ziwenxu_

    It's more than a feature it's the game changer for everyone.

    6 likes

  • stonksage's profile picture

    @Byteandbank

    Step 1: Give AI a CLI. Step 2: Ask it to fix your code. Step 3: Pretend you did it yourself. 😎

    6 likes

  • Victor | Structural Alpha's profile picture

    @MarginOfAlpha

    ant. they named it ant. somewhere a pm is fighting for their life in a thread about why claude-cli was taken or why this won't confuse every search for apache ant build tool from 2003

    6 likes

  • Rahul - QA - Automation - AI's profile picture

    @ErRahul337

    Ant CLI just dropped and suddenly Claude devs have a better terminal experience than most of us 😂 Piping agents straight into shell + native Claude Code integration = dangerous productivity. Well played @ClaudeDevs

    6 likes

  • 狐狸狼's profile picture

    @dahulilang

    This is exactly what the Claude API workflow was missing. Being able to pipe results straight into shell scripts makes agentic automation so much cleaner. The claude-api skill integration with Claude Code is the cherry on top. More CLI tools like this please.

    5 likes

  • The Calda's profile picture

    @The_Calda

    The “open docs, copy curl, paste, pray” workflow might finally be getting replaced.

    5 likes

  • Ziwen's profile picture

    @ziwenxu_

    Wait!! It means every ai product we are trying to create can be one prompted with Claude

    5 likes

  • yag's profile picture

    @yag

    ANThropic 🐜

    5 likes

  • yag's profile picture

    @yag

    Antropians 🐜

    5 likes

  • Jake Moffatt's profile picture

    @jakeonrails

    Will it cost me $1000 to use or can I use my subscription to use this?

    5 likes

  • Ilko Kacharov's profile picture

    @kachar136

    The terminal quietly became the new IDE. Piping agent output straight into your shell beats bolting on another dashboard. The teams who win with AI won't have the prettiest UI — they'll have made it composable. Big step.

    4 likes

  • Lawrence Stark's profile picture

    @lawrence_stark_

    The real question - is this covered by the subscription or not?

    4 likes