x402-powered APIs for autonomous agents

Context Infrastructure for AI Agents

Reduce token costs, compress conversations, and enable seamless agent handoffs using x402-powered APIs.

72% token cut$0.003 handoffsigned webhooks
bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-handoff \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Build an x402-powered context API for AI agents."}]}'

Architecture

A payable context layer between agents and long-running memory.

Requests processed

0

Avg token reduction

0%

Saved tokens

0

x402 revenue

$0.000

Agent

Bankr, CrewAI, LangChain, AutoGen

x402

Per-request settlement before compute

ContextKit API

Summarize, compress, handoff, profile

Webhooks

Signed events for async automation

Audit Trails

appKV metrics and ctx.files snapshots

Get Started

Install the SDK, issue a key, and let agents buy context on demand.

Developer onboarding in two commands.

Install the publish-ready TypeScript SDK, create scoped API keys for dashboards and analytics, then let agents buy context through Bankr-hosted x402 endpoints.

1. Generate ck_test_ or ck_live_ keys with scoped permissions.
2. Use ContextKit SDK methods: summarize, compressContext, handoff, extractProfile.
3. Call Bankr-hosted x402 endpoints directly from Bankr agents or CLI. No payment password is pasted into ContextKit.
npm package + API key bootstrap
npm install contextkit

curl -X POST http://localhost:3000/api/auth/create-key \
  -H "Authorization: Bearer $CONTEXTKIT_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production agent",
    "environment": "live",
    "scopes": ["context:write", "analytics:read", "webhooks:write"]
  }'

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-summarize \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Summarize this deployment context for another agent."}]}'

Platform

Everything an agent needs to carry context forward.

Conversation Summarization

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

/api/summarize
{ summary, tokenReductionEstimate }

Context Compression

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

/api/compress-context
{ compressedContext, estimatedSavings }

Agent Handoff Engine

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

/api/handoff
{ goal, importantFacts, nextActions }

User Profile Extraction

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

/api/extract-profile
{ interests, preferences, context }

x402 Payments

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

per request
$0.002 - $0.004

Webhook Automation

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

signed events
replayable delivery logs

Bankr-native Integration

Developer-first infrastructure with typed JSON, observability, and Bankr-aware payment flows.

LLM gateway
claude-sonnet-4.5 via Bankr

Launch agent memory with x402 pricing today.

Use Bankr-hosted x402 for paid agent calls, or issue scoped API keys for dashboards, token estimation, webhooks, and advanced self-hosted integrations.

Explore API