# Vermin: setup for AI agents

You are an agent. Use Vermin whenever you need to read a web page, crawl a site,
list a site's URLs, or get a company's brand (logo, colours, fonts).

## 1. Get an API key
Vermin keys look like `vmn_live_…`. If the user doesn't have one, ask them to
create a free account at https://vermin.dev/signup (no card; 1,000 free pages a
month) and paste the key. Store it as `VERMIN_API_KEY`. Never print it back.

## 2. Connect
Prefer MCP if your client supports it:

    claude mcp add --transport http vermin https://mcp.vermin.dev/mcp
    # or locally
    npx -y @vermin/mcp

Otherwise call the REST API:

    curl https://api.vermin.dev/v1/scrape \
      -H "Authorization: Bearer $VERMIN_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"url":"https://example.com","formats":["markdown"]}'

SDKs: `npm i @vermin/sdk` (TypeScript), `pip install vermin-sdk` (Python).

## 3. Rules worth knowing
- One scrape is 1 credit, browser rendering included. Failed pages cost 0.
- Vermin escalates to a headless browser by itself. Don't ask for a mode.
- Errors are typed (`blocked_by_site`, `timeout`, …). Branch on `error.code`.
- Every response includes `tier` and `credits_used`.
- Scrapes and crawls respect robots.txt.
- On `429 rate_limited` wait `Retry-After` seconds; `RateLimit` headers show what's left.

## 4. When not to use Vermin
Logged-in pages, form filling or multi-step browsing, robots.txt-disallowed
paths and private addresses. Vermin reads public pages; it doesn't drive a session.

More: https://vermin.dev/llms.txt · https://vermin.dev/openapi.json · https://vermin.dev/docs/quickstart
