Designing the hf CLI as an agent-optimized way to work with the Hub
Which summary reads better? Pick one — models revealed after.Both summaries are AI-generated.
Hugging Face has redesigned its official hf command-line interface to serve both human users and AI coding agents like Claude Code, Codex, and Cursor, automatically detecting when an agent is driving it and adjusting output accordingly. The company reports that on complex multi-step tasks, agents using the hf CLI consume up to six times fewer tokens than those relying on hand-rolled curl or Python SDK approaches. Since beginning to track agent traffic in April 2026, Hugging Face has seen significant usage, with Claude Code alone accounting for roughly 40,000 distinct users and nearly 49 million requests.
The Hugging Face CLI (hf CLI) has been redesigned to better serve both human users and AI coding agents, optimizing output formats for each. AI agents like Claude Code and Codex now account for significant traffic on the Hub, with Claude Code alone handling nearly 49M requests. The updated CLI adjusts its output—simplified and structured for agents, while maintaining rich formatting for humans—to improve efficiency and reduce token usage in multi-step tasks.