Connect
Your API or MCP server
Start from the service you already run.
Open Source / Self-Hosted / Self-Custodial
Agent Adapter wraps your API or MCP server with pricing, payments, wallet control, job execution, and an embedded agent loop, so you can participate in agent economies without rebuilding around a single platform.
How it works
alpha / adaptableConnect
Start from the service you already run.
Point
Give Agent Adapter the spec or server it should learn from.
Adapt
Discovery, pricing, wallet, and policy get configured in one runtime.
Operate
The runtime finds tasks, executes tools, and responds.
Settle
Payment lands through the rails you enable.
Deploy model
Self-hosted
Capability sources
OpenAPI, MCP, manual
Payment rails
x402, escrow, Stripe, free
Why it fits
Agent Adapter is built for teams that already have working APIs and want to turn them into services agents can discover, pay for, and use safely under provider-defined rules.
What changes with Agent Adapter
Instead of redesigning your product for each marketplace, you run one self-hosted process that discovers capabilities, applies pricing, connects a wallet, executes jobs, and exposes a management surface for operations.
Ownership first
Keep your infrastructure, wallet, pricing logic, and identity. The runtime adds economic behavior without taking custody.
Decision loop
An embedded agent can read platform docs, choose work, execute tools, and manage payment flows through policy-driven prompts.
Settlement layer
Wallets, payment rails, and platform drivers are plugins. You can mix production rails, experiments, and free access modes.
Adoption path
Wrap what already exists. Start with your current API or MCP server, then selectively expose and price the capabilities that matter.
Operating flow
Every stage stays in the same runtime, so pricing, execution, settlement, and operational context remain connected instead of being split across separate tools.
01
Point the runtime at an OpenAPI document, MCP server, or manual schema set to build its tool surface.
02
Set pricing overlays, choose payment adapters, and wire up a self-custodial wallet without changing your product.
03
The embedded agent evaluates platform docs, joins markets, finds jobs, bids, and routes execution through your tools.
04
Persist outcomes, payment state, metrics, and operating history in one runtime with a management API and dashboard.
System view
A single process bundles the agent brain, capability layer, wallet and payment adapters, job execution, persistence, and operator-facing APIs.
Single self-hosted process
The architecture is intentionally opinionated about ownership and deliberately flexible about platform integrations.
Core loop
Plans actions, reads platform rules, navigates workflows, and decides how to price and execute work.
Capability surface
OpenAPI, MCP, and manual definitions become callable capabilities with secrets, state, and wallet access.
Economic layer
Run multiple payment rails side by side and settle through a provider-controlled, self-custodial wallet.
Operations
Track execution, failures, billing, and management state through persistence, APIs, and a dashboard.
Get running in minutes
The install path stays simple: initialize, discover capabilities, add pricing, and run the runtime.
# Install
$ pip install agent-adapter
# Create a config
$ agent-adapter init my-adapter
# Discover tools from your API
$ agent-adapter capabilities discover --openapi https://api.example.com/openapi.json
# Price a capability
$ agent-adapter capabilities price my_endpoint --amount 0.05 --model per_call
# Run the runtime
$ agent-adapter run
Why this exists
Every new agent marketplace means another integration. Every new payment rail means new code. Agent Adapter collapses that tax into one self-hosted runtime that wraps what you already have.
A provider should be able to wrap what they already have and make it economically accessible to any agent, on any platform, through any payment rail, without rewriting their product.
An economic runtime for API providers. Capability discovery, pricing overlays, wallet management, payment negotiation, job tracking, and autonomous platform interaction - in a single process.
Not a general-purpose agent framework. Not a custodial service. Not a platform. Not a replacement for MCP. Purpose-built for turning existing services into economic participants.
Design principles
These aren't abstract principles - they're the decisions that show up in every part of the codebase.
The runtime finds what your API can do. You decide what to charge for it. No capability goes live without your explicit pricing decision.
The embedded agent handles operational decisions at runtime. The provider sets strategy through a customizable markdown prompt - not through code.
Each instance is one wallet, one set of capabilities, one agent brain. Multiple personas means multiple instances. Simple and auditable.
SQLite for storage, HTTP for communication, existing Solana libraries for on-chain work. Complexity comes from what it does, not how it's built.
Status and direction
The runtime works today. The roadmap is about polish, breadth, and the features that emerge once providers start operating in production.
Build from here
Use the docs to understand the internals, or go straight to the repository and start adapting it to your own payment rails, platform drivers, and operating policy.