Skip to main content
The official Agent Skill teaches your agent to discover an API, read its schema, run it, and handle pricing and errors. The skill teaches the workflow; the MCP server provides the live tools. Without MCP, the skill uses REST.
This page is for integrating AnyAPI into your app: your coding agent uses a key on your funded account, and the app is the caller in production. For an autonomous agent that calls AnyAPI at runtime with its own key, see Let your agent onboard itself.

Install

For any agent that reads .agents/skills/:

Setup

1

Already have a key? Export it

The skill reads the key from the environment:
No key yet? Skip this step.
2

Let the skill provision a key

With ANYAPI_API_KEY empty, the skill calls the public self-signup endpoint and puts the new free trial key in the environment without printing it. It starts on a small starter credit.
3

Connect your wallet when the trial runs out

The trial key is capped and expires in 7 days. When its budget is spent, calls return HTTP 402 trial_cap_reached, and the skill hands you one approval link. Sign in or sign up, set a spend limit, and approve, and the agent keeps working on your wallet. See Upgrade past the trial.
4

Ask for data

Ask your agent for third-party data, such as “get the top posts in r/golang”. It finds the API, checks its USD price, and runs it.

What the skill covers

  • The discover → inspect → run flow over MCP or REST.
  • Deadline discipline: inspecting selected-SKU 30-day latency before choosing an HTTP or MCP tool deadline, while treating p99 as an observation rather than a maximum.
  • Cost discipline: reading nested flat or linear USD offers, estimating bulk-job cost up front, and checking the wallet balance.
  • Result semantics: the {found, data} envelope; found: false is a successful answer, not an error.
  • Error handling: every machine-readable error prefix and what to do about each.