Spuro Playbook

Use Cases for Agent-Native Infrastructure

Explore how autonomous AI agents can buy and use infrastructure via HTTPayer. Start with the AI-Spuro Polkadot snapshot monitor.

sub0 Hackathon Demo

This proof-of-concept demonstrates agent-native infrastructure: AI agents use Arkiv-backed memory via Spuro and HTTPayer (x402), while an external agent (e.g. AI-Spuro) queries Polkadot via PAPI and persists stash-account snapshots into that paid memory layer.

Arkiv Memory BucketHTTPayer x402PAPI (external)

Polkadot Stash Snapshot Monitor

Agent: AI-Spuro · Capability: Memory Bucket (Spuro) · Payments: HTTPayer (x402)

Production-style flow

The AI-Spuro agent runs in a Node.js/TypeScript environment. It connects to Polkadot via PAPI, takes periodic snapshots of stash accounts, and stores them in Arkiv through Spuro's HTTP API, paid via HTTPayer.

1. Discover & purchase

Agent is configured with Spuro's endpoint, discovers the available Spuro Functions (SDK layer), and authorizes spend via HTTPayer (x402).

2. Monitor Polkadot

Using PAPI, the agent reads stash-account balances and metadata on a schedule, preparing encrypted snapshot payloads.

3. Store & recall snapshots

Snapshots are written to Arkiv via Spuro. HTTPayer handles payments per write/read, while TTL ensures old data expires automatically.

How this connects to the demo

  • The Spuro HTTP API represents the Arkiv-based storage that the AI-Spuro agent uses via Spuro Functions.
  • This docs site shows how agents discover and understand these capabilities before using them programmatically.
  • End-to-end, this demonstrates agent-native infra: discovery, payment, and usage without a human in the loop.

More use cases you could add next

Use this page as a scaffold to document future agent flows that reuse HTTPayer and Arkiv capabilities.

  • On-chain risk scoring agent with paid access to risk models
  • Portfolio rebalancing agent that pays per strategy backtest
  • On-demand archival of high-value on-chain events