AI Agents
Agent-first, fetchable reference for discovering Stakao, paying for informational allocation analysis, using OAuth account reads, and keeping staking execution outside the public Agent API.
Updated 2026-07-22
Discovery surface
Agents should start from public, stable documents before attempting paid allocation calls.
The human site owns durable context: /docs, the Markdown version of every docs page, /llms.txt, /llms-full.txt, /strategies.md, /openapi.json, product metadata, and blog explainers. The API subdomain owns the narrow agent runtime surface at https://api.stakao.com/agent.
The split is intentional. Blog pages remain editorial SEO content, while docs pages become canonical reference input that agents can copy, fetch, cite, and convert into tool calls.
- Use /docs/ai-agents as the canonical human and crawler reference.
- Use /docs/ai-agents.md when an agent wants raw Markdown without layout.
- Use /llms.txt for site-wide context, priorities, safety boundaries, and links.
- Use /llms-full.txt when the full canonical corpus is needed in one context window.
- Use https://api.stakao.com/agent for live API discovery, OpenAPI, MCP, price metadata, and x402 instructions.
Fetch the public AI surfaces
bash
curl -sS https://stakao.com/llms.txt
curl -sS https://stakao.com/docs/ai-agents.md
curl -sS https://api.stakao.com/agent \
-H 'Accept: application/json'
curl -sS https://api.stakao.com/agent/openapi.json \
-H 'Accept: application/openapi+json'Start here
The complete agent flow is discover → catalog → reference status → preflight → HTTP 402 → payment → retry → structured result.
Discovery and catalog calls are free. Reference status determines whether a four-hour analysis is available. Preflight validates wallet-specific requests before payment. A fresh payable request returns HTTP 402; the agent reads the x402 headers, pays in USDC on Base, retries the exact request, and receives a structured informational result.
Fetch the full machine-readable entrypoints
bash
curl -sS https://api.stakao.com/agent/llms.txt
curl -sS https://stakao.com/llms-full.txt
curl -sS https://api.stakao.com/agent/errors.jsonAgent API and x402 payments
The public API is intentionally small: it sells informational allocation analysis, not account access or staking execution.
Agents can request a direct model portfolio snapshot or a wallet-specific allocation analysis. The current public agent price is 3 USDC through x402 on Base.
For wallet-specific analysis, call free preflight first. The preflight response returns the Stakao-generated client_request_id that must be reused in the paid request body. Reusing that id with a different body returns a conflict instead of creating a second paid action.
- Direct model portfolio: GET /agent/allocation-analysis/model-portfolio.
- Wallet-specific flow: POST /agent/allocation-analysis/allocation/preflight, then POST /agent/allocation-analysis/allocation.
- Payment protocol: x402 v2.
- Payment rail: USDC on Base.
- Result: compact JSON with decision, product, and payment fields.
Probe the direct paid model portfolio endpoint
bash
curl -i 'https://api.stakao.com/agent/allocation-analysis/model-portfolio?catalog_item_id=quant_strat' \
-H 'Accept: application/json'Start the wallet-specific preflight
bash
curl -sS -X POST 'https://api.stakao.com/agent/allocation-analysis/allocation/preflight' \
-H 'Content-Type: application/json' \
-d '{
"wallet_address": "5YourBittensorWalletAddress",
"catalog_item_id": "ai_agent",
"config": {}
}'Safety, OAuth, and crawl boundaries
Stakao keeps public agent commerce separate from private account operations and on-chain staking execution.
The Agent API is informational only. A paid result can include the status ANALYZED, which means an analysis was stored. It does not mean that Stakao executed staking, created a delegate transaction, opened an account session, or gave investment advice.
The Agent Premium product is different: a human activates it, it uses a limited staking-only proxy and periodic checks, and it may execute the human-authorized staking workflow. Agent API OAuth/account access remains data-scoped and human-gated; it cannot execute on-chain operations.
On api.stakao.com, keep the Worker route surface exact: expose the root redirect, /agent, and /agent/*. Do not add a wildcard that exposes the full backend. The only WAF exception needed for the root probe is the exact root path.
- Public agent routes: https://api.stakao.com/agent and https://api.stakao.com/agent/*.
- Root probe: https://api.stakao.com/ redirects with 308 to /agent.
- Backend protection stays in place outside the Worker-owned agent surface.
- Dynamic OAuth Apps are disabled until account-bound monitoring, revocation, and cleanup are live.
- Pages that are empty, private, JSON-only, or backend-admin oriented should stay out of AI Search crawl targets.
Exact Cloudflare WAF exception for root probe
txt
http.host eq "api.stakao.com" and http.request.uri.path eq "/"Agent entrypoints
Human docs page
Canonical HTML reference for humans, search engines, and agent browsers.
Raw Markdown
Same reference content without layout, served as text/markdown.
llms.txt
Site-wide machine-readable Stakao context and crawl priorities.
Agent manifest
Public api.stakao.com agent root for discovery and safety metadata.
Agent OpenAPI
REST contract for agent allocation analysis endpoints.
Agent errors
Machine-readable error codes and remediation hints.
Full Markdown corpus
Complete canonical documentation corpus.
OAuth account profile
OAuth-protected account endpoint; openid scope.
Product MCP
Read-only MCP endpoint for catalog, pricing, manifest, and safety tools.
Public content search MCP
Cloudflare AI Search MCP over public Stakao content only.
Product catalog
Discoverable product metadata for assistants and crawlers.
Related Stakao references
Agent allocation manifest
Machine-readable entrypoint for allocation analysis endpoints.
Direct model portfolio endpoint
x402-paid model portfolio analysis without wallet preflight.
OAuth account MCP
Account-bound MCP endpoint requiring OAuth consent.
Strategies
Human-facing Stakao strategy catalog.
Pricing
Human plans, one-shot reports, add-ons, and agent API pricing context.
Allocation analysis
Human EUR one-shot wallet allocation report.
Related blog articles
Agent-native staking API
Editorial guide to the API surface and paid allocation flow.
x402 payments for AI agents
HTTP 402 payment flow, USDC on Base, and retries.
MCP server for crypto staking agents
Read-only tools for autonomous agents.
Agent-ready crypto staking platform
Discovery, schema, AI Search, OpenAPI, MCP, and safety checklist.
Wallet allocation analysis
Human and agent allocation products using the same analysis engine.