Which page do you want? This page is for an autonomous agent that calls AnyAPI at
runtime - it provisions its own trial key. If instead a coding agent is integrating
AnyAPI into an app you’ll ship, the app is the caller: create a normal
dashboard key on your funded account and see
Agent skills. Trial keys carry a small budget and expire in 7 days, so
they belong to autonomous agents, not shipped code.
The one thing you do
Prompt your agent. That’s the whole setup step:Already have a funded account and want the agent to spend from it directly? Hand it an
API key instead and skip the trial - see
Agent skills. The trial is for the zero-setup, agent-first path.
What the agent does on its own
1
Installs the CLI (if it has a shell)
An agent that can run shell commands installs the AnyAPI CLI first. One command
installs the skills, mints the free trial key, and writes local credentials:
anyapi init installs the AnyAPI agent skills, offers MCP registration, and runs the
trial signup if no key is available - saving it to ~/.anyapi/config.json. After init,
the agent calls the installed anyapi binary directly.2
Mints its own free trial key
With no shell (a hosted chat or no-code runtime), the agent posts to the public signup
endpoint directly - no human, no account, no email:The body is optional; The agent stores
label just tags the key. The response returns the key once,
plus everything needed to upgrade later:secret as ANYAPI_API_KEY and relays notice to you verbatim.3
Starts working immediately
The trial key works right away. The agent lists APIs, reads schemas, checks its USD
balance, and runs a real call over MCP, the CLI, or REST - all priced in
USD, pay per request.
What it costs you to start
Nothing, and nothing is owed. A trial key carries a budget of about $0.15 of requests (thecapUsd in the response), creates no account, and self-expires in 7 days if
it is never upgraded. If the agent proves useless, you do nothing: the key just expires and
nothing lingers.
Upgrade past the trial
Continuing past the trial takes exactly one human approval, through OAuth 2.1. The agent never stops to ask you for a key - you approve a spend limit, and it keeps working on the same session.- With the CLI (recommended)
- Raw REST or MCP (no shell)
- Dashboard key (secondary)
The agent runs:This requires
anyapi-cli >= 0.3.0. It starts an OAuth flow with a localhost callback
and prints a single consent URL. Hand that one URL to the human. They open it,
reach the consent screen at
getanyapi.com/dashboard/authorize, sign in
or sign up, see a receipt of what the agent accomplished on the trial, set a spend
limit, and approve. The agent then holds an OAuth access token and keeps working - there
is no key to swap by hand.If the installed CLI predates
anyapi connect, use the dashboard-key path below
instead.Why this is safe
- The trial budget bounds what an unapproved agent can spend - about $0.15, no more.
- No account is created and nothing is owed. An unspent trial key expires on its own in 7 days.
- You decide if and when to continue. The OAuth approval is where you set the spend limit, after you’ve seen a receipt of what the agent actually did.