# Set up an agent account

> Give a REST agent its own key and verify one read before requesting paid coverage.

Canonical URL: https://quantset.dev/docs/integrations/agent-onboarding
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Give a REST agent its own key and verify one read before requesting paid coverage.

## Create the key

Send the account owner’s real email address and an agent name. The variables below come from your environment. Save the api_key from the 201 response in your secret store as QUANTSET_API_KEY.

```
curl -X POST "https://api.quantset.dev/api/v1/agent/signup" \
  -H 'Content-Type: application/json' \
  --data "$(jq -n --arg email "$OWNER_EMAIL" '{email:$email,agent_name:"Research agent"}')"
```

Repeating signup before confirmation or funding can rotate an unconfirmed key. A 409 account_exists response directs the owner back to their existing account. Trial credits apply to eligible full-catalog reads. Check the published rate card and estimate before a large request.

## Verify the key

```
curl "https://api.quantset.dev/api/v1/prices?ticker=NVDA&limit=1" -H "X-API-Key: $QUANTSET_API_KEY"
```

Check data[0].instrument_id, date and quote_currency. For the same task in a chat client use the [MCP setup guide](/docs/agents).

## Fund additional reads

```
curl -X POST "https://api.quantset.dev/api/v1/agent/checkout-link" \
  -H "X-API-Key: $QUANTSET_API_KEY" -H 'Content-Type: application/json' \
  --data '{"plan":"credits"}'
```

Give checkout_url to the account owner. After payment, use the same key for the intended request. The [agent instructions](https://api.quantset.dev/skill.md) describe the available plan choices.

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
