AI Agents
Chatito Agent API for builders: Bearer keys, MCP, paper-first scopes, recipes, and why agent keys never include live trade.
Chatito is infrastructure for AI agents as well as humans: market context, strategy lifecycle, practice trading, Lab invent (scoped), webhooks, MCP, and SDKs. Humans still own any real-money policy.
This page is the human orientation. Machine-readable truth lives on chatito.ai.
In the product app: Help → AI Agents (/help/#agents) is the dedicated slide for keys, checkout, and short how-tos.
Tour The Screens
1. Settings · Agent API
Settings · Agent API
Mint keys for bots
- Claim code if an agent started bootstrap. Confirm scopes, claim once, secret once.
- Create key with scopes you need. Default is read; live is never available.
- Your keys list for revoke. Treat
chk_…like passwords.
2. Standalone Checkout
app.chatito.com/checkout
Pay link for AI Lab
- No dashboard chrome - logo, checkout, short product intro only.
- Sign in if needed, then Connect Wallet and pay onchain from a linked wallet.
- Agents should prefer catalog field
billing.human_checkoutover hardcoding.
3. Help · AI Agents
Help · AI Agents
In-app orientation
- Open from the header Help icon, then the AI Agents section (or
/help/#agents). - Start here jumps to Settings keys, checkout, and machine recipes.
- Public links point at chatito.ai for API truth while you stay in the product shell.
Hard Rules for Agents
- Practice first. Agent keys are for read, paper_trade, optional lab, and manage scopes - not silent live arming.
- Never invent live trading as an agent capability unless product docs explicitly open it. Agent keys cannot open, activate, or revoke a Smart Policy. Heat on MetaMask is a human 6.2h Sign, not an agent verb.
- Prefer chatito.ai markdown + OpenAPI over scraped marketing copy for product facts and prices.
- Fail closed on auth errors; don’t retry forever on 401/403.
- Never log
chk_…secrets. Store them only in the agent host secret store. - kill is a soft stop. close flattens paper and hides the book (
confirm=true). Live ON returns 409. - Share, referrals, and Challenges never auto-post.
Where to Read
| Resource | URL |
|---|---|
| Agent host index | chatito.ai |
| Agent llms.txt | chatito.ai/llms.txt |
| Agent API | chatito.ai/agent-api.md |
| Recipes | chatito.ai/recipes.md |
| OpenAPI | chatito.ai/openapi-agent-v1.yaml |
| Errors | chatito.ai/errors.md |
| Product facts | chatito.ai/product.md |
| Smart Policy | chatito.ai/smart-policy.md · human Docs |
| DEX Executor | chatito.ai/executor.md · human Docs |
| LP Executor | chatito.ai/lp-executor.md · human Docs |
| Risk | chatito.ai/risk.md |
| FAQ | chatito.ai/faq.md |
REST Surface
- Base:
https://app.chatito.com/api/agent/v1 - No key yet:
GET /public/catalog·GET /public/status· bootstrap claim / Lab pay paths - Auth after mint:
Authorization: Bearer chk_… - Live trading is not an agent scope in current product policy
- Paper cockpit: 4-venue list/create/pause/enable/kill/close, Trade For Me (always paper), fills/orders/positions, PATCH, calendar/statistics/charts, Research Factory, notifications/share/referrals/Challenges redeem
- After Close, books leave
list_strategies. The owner still reads retained autopsy withget_research(status=closed) orGET /research/books/{id}. No restore. Spawn from a closed parent is 404. - Research Factory books stamp
factory_status/ideas_in_all. CEX/DEX All / Paper / Queued / Waitlist / Rejected / Removed chips are Strategy Factory Ideas (GET /lab/factory, MCPget_factory_ideas, read-only). - Each research book stamps read-only provenance (
origin,created_by,owner=self,system_seed,created_at). Mint-time Agent starter books (origin=agent_starter) are one paper book per venue (Late Edge, BTC DCA, WETH DCA, Wide ETH), not user-created strategies. - Lab is venue-native JSON (Scientist / invent / Analyst / Scout / deep / loop / waitlist). Never SSE. Deep skips LP.
- If Scientist charged a credit but the client timed out, do not call
lab_scientistagain. Replay withGET /lab/scientist(MCPget_lab_scientist, read-only, risk=read, 0 credits).session_idon POST continues the thread and still charges. CEX and DEX store turns. - If Analyst charged a credit but the client timed out, do not call
lab_analystagain. Replay withGET /lab/analyst(MCPget_analyst_replay, read-only, top-level risk=read, credits=0, spec-onlyreadOnlyHint). Hostedtools/liststamps those fields on the tool object.lab_analystis risk=credit_write.lab_analyst action=reportsis LP Ask Analyst reports only. It does not replay CEX/DEX chat. - Invent (
invent_strategy) spends 8 credits when it starts. CEX/DEXaccept=truepromotes a Lab catalog signal; it does not start a paper book andactivateis ignored. CEX is spot USDT only (no perpetuals). To run paper,create_paper_strategy. If invent charged but the client timed out, do not invent again. Replay withGET /lab/invent(MCPget_lab_invent, risk=read, 0 credits). Contract: chatito.ai/agent-api.md#invent.
Exact paths and payloads: OpenAPI + agent-api.md on chatito.ai.
Scopes
| Scope | Role |
|---|---|
read |
Monitor account, strategies, stats, fills, boards, heat, calendar, charts, gates, credits, Scientist/Analyst replay, notifications, referrals, share, challenges, research |
paper_trade |
Create / patch / pause / kill / close paper, Trade For Me, Research spawn, Challenges redeem, notification prefs (never live, never auto-post) |
lab |
Scientist, invent, Analyst, Scout, deep, loop, waitlist, A/B, offline score (credits apply) |
webhooks:manage |
Lifecycle / fill webhooks |
account:manage |
Link email for dashboard magic-link login |
billing:manage |
Create / confirm onchain Lab invoices |
keys:manage |
List / mint / revoke additional keys |
How Humans Get Keys
| Path | Who starts | What happens |
|---|---|---|
| Settings mint | Human | Settings → Agent API → Create key · secret once |
| Claim-code | Agent | POST /public/bootstrap → human opens claim_url → agent polls secret once |
| Lab pay + mint | Either | Pay AI Lab (see below) → mint with lab scopes |
Default mint scope is read. Add other scopes only when needed.
Pay For AI Lab
Agents and pay links should send humans to the standalone checkout (no full dashboard chrome):
| Item | Value |
|---|---|
| URL | app.chatito.com/checkout |
| Catalog field | billing.human_checkout on GET /public/catalog |
| What you see | Checkout + short “What is Chatito” + Website / Open App |
| Wallet | Connect Wallet (SIWE) · pay from a linked wallet |
| Optional query | ?chain=polygon|base&sku=lab_month|lab_year&promo=CODE&pay=1 |
| In-app renew | Settings → Account → Get / Renew AI Lab (same rails) |
Public plan targets: $19 / mo · $190 / yr. Confirm live numbers from the catalog - do not invent prices from training data.
Agent-native wallet SIWE mint (bootstrap intent: lab_month|lab_year) is documented on agent-api.md and recipes.
MCP and SDKs
| Surface | Detail |
|---|---|
| Hosted MCP | POST https://app.chatito.com/api/agent/mcp with Bearer chk_… (50 tools, including get_lab_scientist and get_analyst_replay) |
| stdio MCP | Monorepo mcp/ for local agent hosts (same tool names) |
| Python SDK | chatito-agent 0.5.1 |
| TypeScript SDK | @chatito/agent 0.5.1 |
Tool map and recipes: chatito.ai/recipes.md.
Dashboard Login
Wallet SIWE is great for crypto-native agents. Many humans need email magic link:
- Pass
emailon bootstrap create, or POST /public/bootstrap/{code}/email, or- With scope
account:manage:POST /account/email
Then sign in at app.chatito.com with that email. Same Chatito user as wallet and keys. The Agent API does not send the magic link; the app Auth UI does.
In-App Help
| Place | Path |
|---|---|
| AI Agents slide | app.chatito.com/help/#agents |
| Docs / Guides / Q&A | app.chatito.com/help/ |
| Mint UI | Settings → Agent API |
First Human Checklist
- Sign in at app.chatito.com.
- Settings → Agent API → Create key (
chk_…). Store the secret once. - Optional: open checkout if you need AI Lab.
- Optional scopes:
paper_tradefor create/pause/kill/close/Trade For Me;labfor invent/Scientist/Analyst (credits apply). - Smoke:
GET /api/agent/v1/mewithAuthorization: Bearer chk_…. - Follow recipes for heat → paper → Trade For Me → stats.
Related
- Settings
- Billing and credits
- Safety and Access
- Edge and Research
- Reference
- Website llms.txt for crawlers
Ready to run a strategy?
Open App