Casper is the trust layer for the agent economy

AI agents are becoming autonomous economic actors. They need blockchain infrastructure that's verifiable, upgradable, and purpose-built for machine-to-machine commerce. Casper delivers it.

AI agents are becoming autonomous economic actors

Casper's architecture was built for exactly this moment — account abstraction, predictable gas, upgradable contracts, and native support for machine-to-machine protocols.

Account Abstraction

Agents operate with their own on-chain identity — no human wallet needed

Upgradable Contracts

Smart contracts evolve without redeployment — critical for autonomous systems

Predictable Fees

Fixed gas costs let agents budget transactions without surprises

402

x402 Micropayments

HTTP-native payment protocol for pay-per-request agent commerce

MCP Native

Model Context Protocol servers give AI direct blockchain access

Streaming Events

Real-time SSE feeds for monitoring deploys, transfers, and contract calls

From protocols to plug-and-play skills

Everything developers and AI agents need to transact, deploy, and operate autonomously on Casper.

x402 Payments
Trade via MCP
Agent Skills
Query via MCP
Develop Smart Contracts
// 1. Agent requests a paid API endpoint
GET /api/v1/market-data
Host: data-provider.example.com

// 2. Server responds: payment required
402 Payment Required
X-Payment-Address: 01a3b5c7d9...f8e2
X-Payment-Amount:  1000000  // 0.001 CSPR
X-Payment-Network: casper

// 3. Agent signs and retries with payment proof
GET /api/v1/market-data
X-Payment: casper:01a3b5...f8e2:1000000:sig_ed25519_...

// 4. Facilitator verifies → server responds with data
200 OK
Content-Type: application/json
{ "cspr_price": 0.0234, "volume_24h": 12847291 }
// AI agent swaps tokens via CSPR.trade MCP
{
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "token_in":  "CSPR",
      "token_out": "sCSPR",
      "amount":    "10000",
      "type":      "exact_in"
    }
  }
}

// MCP server responds with quote + routing
{
  "result": {
    "amount_out":     "9847.32 sCSPR",
    "price_impact":   "0.12%",
    "route":          "CSPR → WCSPR → sCSPR",
    "min_received":   "9552.90 sCSPR"
  }
}
// Query account balance via Casper MCP Server
{
  "method": "tools/call",
  "params": {
    "name": "GetAccountBalance",
    "arguments": {
      "public_key": "01a3b5c7d9e1f2..."
    }
  }
}

// Response with balance and staking info
{
  "result": {
    "balance":       "2,450,000 CSPR",
    "staked":        "1,200,000 CSPR",
    "delegations":  3,
    "transfers":    147
  }
}
# Install the CSPR.click skill in your AI agent

$ claude skill install cspr-click

→ Skill installed: cspr-click v1.2.0
→ Capabilities added:
   • Wallet creation & key management
   • Transaction building & signing
   • CSPR.cloud API proxy
   • Contract deployment via Odra

# Now your agent can interact with Casper
$ claude "Create a new wallet and check the balance"

→ Wallet created: 01f4a2b8c3...
→ Balance: 0 CSPR
# Point your agent to Odra's llms.txt

$ curl https://odra.dev/llms.txt

# Odra Framework — Smart Contracts for Casper
# AI-discoverable documentation index

title: Odra Smart Contract Framework
description: Build, test, and deploy Casper contracts
docs: https://odra.dev/docs/

# Your agent now understands Odra's API
$ claude "Write an ERC-20 token contract using Odra"

→ Reading odra.dev/llms.txt...
→ Generating token_contract.rs
→ Running tests... 4/4 passed 

Micropayments · Protocol

x402 Facilitator

HTTP-native micropayments using the x402 payment protocol. Agents pay per API request with cryptographic proof — no accounts, no subscriptions, no human approval needed.

Start using the Casper x402 Facilitator →
x402 Payment Protocol

Reference · x402

Casper x402 Examples

The official reference implementation for the x402 protocol on Casper. Production-ready server and client examples for micropayment integration.

View on GitHub →

MCP Server · Blockchain

Casper MCP Server

A community-built Model Context Protocol server providing comprehensive blockchain interaction tools. Query balances, submit deploys, read contract state — all through natural language.

View on GitHub →
Casper MCP Server
CSPR.trade MCP Server

MCP Server · DEX

CSPR.trade MCP Server

The MCP server for DEX operations. Trade, provide liquidity, and manage portfolios on the CSPR.trade decentralized exchange — all from an AI agent.

Point your AI Agent here →

AI Skill · Integration

CSPR.click AI Agent Skill

An installable coding skill that gives AI agents deep Casper capabilities, including setting up wallet connections, signing transactions, event handling, theming, and CSPR.cloud API access

Install the AI Agent Skill →
CSPR.click AI Agent Skill
CSPR.cloud

Middleware · APIs

CSPR.cloud

Enterprise-grade middleware. Three API layers — REST, Streaming, and Node — give agents everything they need to read and write to Casper at scale.

Install the AI Agent Skill →

Smart Contracts · Framework

Odra Framework

The developer-friendly smart contract framework for Casper, now with llms.txt support. AI agents can read the docs and generate working Casper contracts autonomously.

Point your agent here →
Odra Framework
casper-eip-712

Signing · Typed Data

casper-eip-712

Off-chain typed-data signing for the Casper ecosystem. Gasless meta-transactions, human-readable signing, and structured data verification for agent-to-agent commerce.

View on GitHub →

Real use cases, shipping now

From autonomous DeFi agents to pay-per-request APIs, here's what builders are creating on Casper.

Autonomous DeFi agents

Agents that trade, rebalance, and provide liquidity without human intervention

Pay-per-request APIs

Monetize any API with x402 micropayments — agents pay per call automatically

AI-powered dApps

Applications where AI agents handle complex on-chain workflows for users

Smart contract generation

AI agents that write, test, and deploy Casper contracts using Odra + llms.txt

Agent-to-agent commerce

Machine-to-machine economic transactions with cryptographic verification

Verifiable AI outputs

On-chain attestation of AI-generated results for trust and auditability

Resources for builders

Start Building

The agent economy is here. Build on the blockchain designed for it.