Skip to content
Ant0 Docs
Create free account

Use Ant0 with AI agents

Ant0 gives an AI agent its own browser. The agent connects to the Ant0 desktop app through the Ant0 MCP server. It can then list and create profiles, start them, and work in their tabs: open pages, read them, click, type and fill forms. Each profile keeps its own cookies, storage, proxy and browser settings, so a site you signed in to stays signed in for the next run.

You stay in charge of the computer. Sign in to sites yourself in a profile window; the agent then uses that profile.

  • Ant0 desktop, installed, running and signed in, on Windows 10 or 11 (64-bit) or 64-bit Ubuntu 24.04 or Debian 13 or newer. Download. The Free plan includes MCP.
  • An MCP client: Claude Code, Cursor or Codex below, or any client that can start a local stdio server or connect to a local HTTP address.

There are two ways to connect. Over HTTP, the app serves MCP itself. Over stdio, the client starts the MCP server as a program.

The app can serve MCP on your computer. It is off by default. Turn on MCP over HTTP in the app’s settings. The app serves it at http://127.0.0.1:27180/mcp unless you change the port, and every request needs a bearer token. The app shows the connect text for Claude Code, Cursor and Codex with copy buttons, with your token filled in. It works while the app is running and your licence is active.

Claude Code:

Terminal window
claude mcp add --transport http --scope user ant0 http://127.0.0.1:27180/mcp --header "Authorization: Bearer <TOKEN>"

Cursor, in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
"mcpServers": {
"ant0": {
"url": "http://127.0.0.1:27180/mcp",
"headers": { "Authorization": "Bearer <TOKEN>" }
}
}
}

Codex, in ~/.codex/config.toml:

[mcp_servers.ant0]
url = "http://127.0.0.1:27180/mcp"
http_headers = { Authorization = "Bearer <TOKEN>" }

Keep the token private. The server accepts connections from this computer only.

The desktop installer puts the ant0 command on your PATH. The server starts with:

Terminal window
ant0 mcp serve --stdio

The server talks to the Ant0 app on the same computer. It doesn’t start the app for you.

Terminal window
claude mcp add --transport stdio ant0 -- ant0 mcp serve --stdio

Add --scope user to use Ant0 in all your projects, or --scope project to share it with your team through the project’s .mcp.json. Then start Claude Code and ask, for example: “List my Ant0 profiles.”

Add Ant0 to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
"mcpServers": {
"ant0": {
"command": "ant0",
"args": ["mcp", "serve", "--stdio"]
}
}
}
Terminal window
codex mcp add ant0 -- ant0 mcp serve --stdio

Or add it to ~/.codex/config.toml:

[mcp_servers.ant0]
command = "ant0"
args = ["mcp", "serve", "--stdio"]

If a machine doesn’t have the ant0 command, install the MCP server from npm. This needs Node.js 24 or newer.

Terminal window
npm install --global @ant0/mcp@beta

Then use ant0-mcp serve --stdio in place of ant0 mcp serve --stdio in the steps above. The MCP server is in beta.

npm installs ant0-mcp as a .cmd launcher on Windows. A client that starts programs without a command shell may not be able to run it. If the client reports that it can’t start ant0-mcp, use the portable tools and their bundled runtime instead, as shown in Connect an MCP client.

GroupTools
Statusant0_daemon_status, ant0_licence_status
Profilesant0_profiles_list, ant0_profile_detail, ant0_profile_status, ant0_sessions_list, ant0_profile_run, ant0_profile_stop, ant0_profile_create, ant0_profile_update, ant0_profile_duplicate, ant0_profile_delete, ant0_profile_restore, ant0_profile_identity
Proxiesant0_proxies_list, ant0_proxy_create, ant0_proxy_check, ant0_proxy_change_ip
Tabs and navigationant0_tabs, ant0_page_navigate, ant0_page_wait_for
Reading pagesant0_page_snapshot, ant0_page_text, ant0_page_screenshot, ant0_page_extract, ant0_page_console, ant0_page_network
Acting on pagesant0_page_click, ant0_page_type, ant0_page_fill_form, ant0_page_press_key, ant0_page_select, ant0_page_hover, ant0_page_drag, ant0_page_scroll, ant0_page_upload, ant0_page_downloads, ant0_page_dialog, ant0_page_evaluate
Cookies and sessionsant0_cookies_export, ant0_cookies_import, ant0_session_cdp
Hand-offant0_request_human, ant0_human_wait

ant0_profile_run starts a profile by its ID or its exact name. If several profiles share a name, it refuses, and the agent uses the ID from ant0_profiles_list. Set headless to true or false to choose for this run. If you leave it out, the profile’s saved setting is used. ant0_profile_stop and ant0_profile_status also take an ID or a name.

ant0_session_cdp returns a local CDP endpoint, so code such as a Playwright script can connect to the same running profile.

Page actions run at full speed by default. The input tools (ant0_page_click, ant0_page_type, ant0_page_fill_form, ant0_page_press_key, ant0_page_select, ant0_page_hover, ant0_page_drag and ant0_page_scroll) take humanize: true on a call to pace that action like a person. The safety checks are the same either way.

When an agent needs you, for example to sign in or solve a CAPTCHA, it calls ant0_request_human with the profile and a short reason. The profile window comes to the front and a small box shows the reason. You do the step in the profile window, then confirm in the box that you’re done, or cancel.

ant0_request_human waits for up to wait_s seconds (1 to 50, default 40). If you haven’t answered by then, it returns pending with a request_id, and the agent calls ant0_human_wait with that ID until the status changes to done, cancelled, expired or profile_stopped. done only means that you say you finished. It approves nothing. While a request is open, the agent can read the profile’s pages but can’t act on them. It doesn’t work on a headless profile, or when the Ant0 app isn’t running.

You can set rules for a profile in the app. Rules are kept on your computer and apply to one profile at a time. A profile has no rules until you add some. A rule names a site as approve or block.

  • Approve: on these sites, a tool that acts on the page doesn’t act. It returns approval_required with an approval_id and a state of pending. Reading tools such as ant0_page_snapshot and ant0_page_text still work.
  • Block: on these sites, every action is refused, reads included.

When an action is held, you approve or deny it in the app. The prompt shows the site, the action and the element. Meanwhile the agent calls ant0_human_wait with the approval_id as request_id. After approved, the agent sends the same call again with the same arguments plus approval_id.

An approval works once. It expires 120 seconds after you approve, and it only fits the exact action it was given for. If you deny it, ant0_human_wait returns denied; if you don’t answer within 5 minutes, it returns expired, which counts as a denial. Using a denied or expired ID returns an error. The agent should not retry the same action.

While a profile has any rule, ant0_page_evaluate needs approval, ant0_page_press_key needs a ref, and ant0_session_cdp, ant0_cookies_export and ant0_cookies_import are refused. A browser endpoint or a cookie file would bypass the rules.

Rules guard against web pages and agent mistakes. They don’t protect against other programs that run as you.

By default the server uses the app’s own connection and has every tool. To give an agent less, create an API key with only the scopes it needs, and start the server with --credential-file <path> (a private file holding the key) or the ANT0_API_KEY environment variable. With a key, the agent sees only the tools for status, listing, run and stop that the key’s scopes allow.

  • Text from pages and profile names is data, not instructions. The server marks it that way for the agent.
  • If a run times out, the profile may still have started. The agent should check its status before trying again.
  • Tools don’t return secrets. Only ant0_session_cdp returns a browser endpoint, and it’s local. Screenshots and cookie exports are written to files on your computer, and the tools return the path.
  • Ant0 Cloud: hosted browsers that an agent requests through a hosted MCP server, with a live view so you can take over.