cd /news/developer-tools/apify-cli-1-7-0-built-for-ai-agents-… · home topics developer-tools article
[ARTICLE · art-49303] src=blog.apify.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Apify CLI 1.7.0: built for AI agents that mess up

Apify released CLI version 1.7.0 with improvements for AI coding agents, including clearer guidance for `apify call`, explicit final-status summaries for builds and runs, a new `apify mcp install` command for one-step MCP client setup, and OS keychain storage for sensitive credentials to prevent token exposure.

read3 min views3 publishedJul 7, 2026
Apify CLI 1.7.0: built for AI agents that mess up
Image: Blog (auto-discovered)

The Apify CLI has a new kind of user: AI agents. They mess up in ways people don't. They'll say a job is “done” when the build actually broke, guess what an Actor wants until it errors out, dig through config files just to connect, and now they can run scripts on your machine that could read your API token from a plaintext file. So we fixed all four in 1.7.0.

Why AI agents need a different CLI #

AI coding agents (Claude Code, Codex CLI, etc.) are great at following deterministic, repeatable steps, but they get confused by:

  • Ambiguous “it uploaded, so it's probably fine” progress output
  • Missing or unclear “what do I do next?” guidance
  • Hidden schemas and required inputs (they'll guess JSON and fail)

We observed these failure modes while testing end-to-end flows with agentic tools (“discover an Actor → inspect its input schema → run it → wait for the final run status”). This release addresses those weak points with explicit instructions, machine-readable status, and reliable exit codes.

Clearer guidance for apify call #

We found that agents sometimes failed when using apify call

(running an Actor on the Apify platform). We improved the instructions for exploring an Actor before running it and clarified what to do when the command fails.

A key part of this is apify actors info <actor-id> --input

, which prints the Actor's input schema. The apify call

description and examples now tell agents to run it first, so they can see which fields an Actor expects before building JSON input instead of guessing and failing.

Clear final status for builds and runs #

Commands like apify push

, apify call

, and apify actors start

run in multiple phases. An Actor can upload successfully but fail to build, or a run can start cleanly and later end as FAILED

, TIMED_OUT

, or ABORTED

.

That ambiguity tripped up agents, which often reported “done” after early phases succeeded.

Now every build and run ends with an explicit final-status summary, reliable --json

output with an ok

field, and an exit code of 0 only when the cloud job actually succeeded.

Async flows now print the run or build ID and suggest next commands. New apify runs wait

/ apify builds wait

commands let agents block until a terminal status without hand-rolled polling loops.

The new command: apify mcp install <client> #

Connecting an AI client to Apify used to mean editing JSON config files, looking up the right MCP server URL, and pasting in your API token by hand. That's easy to get wrong, and a common failure point for agentic setups.

The new apify mcp install <client>

command does it all in one step. It connects your chosen AI client to the Apify MCP server and sets up your token automatically.

apify mcp install claude-code

It supports six clients out of the box: Claude Code, Cursor, VS Code, Codex CLI, Kiro, and Antigravity.

If you want a standalone, client-agnostic way to talk to any MCP server from the terminal, check out mcpc, a universal MCP CLI client.

OS keychain for sensitive variables #

The Apify CLI now stores sensitive credentials (your API token and proxy password) in your operating system's native secret store instead of a plaintext file:

  • macOS → Apple Keychain
  • Windows → Windows Credential Manager
  • Linux → system keyring via libsecret (GNOME Keyring, KWallet, etc.)

This matters even more now that AI agents run tools and scripts on your machine: they can no longer read your Apify token by opening ~/.apify/auth.json

. Instead, credentials are protected by the OS keychain's access controls.

For existing users, the switch is automatic and invisible. The first time you run the CLI after upgrading, it migrates your token and proxy password from auth.json

into the keychain.

Apify CLI changelog.

── more in #developer-tools 4 stories · sorted by recency
── more on @apify 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/apify-cli-1-7-0-buil…] indexed:0 read:3min 2026-07-07 ·