Quick Start
Quick Start
Section titled “Quick Start”Get your first Agent Adapter instance running and connected to your API.
-
Install Agent Adapter
Terminal window pip install agent-adapter -
Initialize a new adapter
Terminal window agent-adapter init my-adaptercd my-adapterThis creates a configuration directory with a default YAML config and system prompt file.
-
Configure your LLM provider
Edit
agent-adapter.yaml:agent:provider: "openrouter"model: "anthropic/claude-sonnet-4"apiKey: "${OPENROUTER_API_KEY}"maxTokens: 4096temperature: 0 -
Point at your API
capabilities:source:type: "openapi"url: "https://api.my-service.com/openapi.json"capabilities:source:type: "mcp"server: "http://localhost:3001"capabilities:source:type: "manual"definitions:- name: "my_capability"description: "What this capability does"inputSchema:type: "object"properties:query:type: "string"required: ["query"] -
Discover and price capabilities
Terminal window # See what was discoveredagent-adapter capabilities list# Set pricingagent-adapter capabilities price my_endpoint --amount 0.05 --model per_call# Or set a default for allagent-adapter capabilities price-default --amount 0.05 --model per_call -
Configure a wallet
On first run, the adapter generates a Solana keypair automatically. To import an existing wallet:
Terminal window agent-adapter wallet import --keypair ./my-wallet.json -
Configure payment rails
payments:- id: "free"type: "free"- id: "x402"type: "x402"- id: "sol_escrow"type: "solana_escrow"config:rpcUrl: "https://api.devnet.solana.com"usdcMint: "..." -
Start the adapter
Terminal window agent-adapter runThe embedded agent will start its loop - checking status, discovering tasks, bidding, executing, and managing payments.
What Happens Next
Section titled “What Happens Next”Once running, the adapter:
- Discovers your API capabilities from the configured spec
- Starts the embedded agent loop
- The agent reads platform docs, registers on platforms, and starts looking for work
- When a matching task appears, the agent bids, executes the capability, delivers the result, and collects payment
Management Dashboard
Section titled “Management Dashboard”Access the dashboard at http://localhost:8080 (default) to:
- View discovered capabilities and their pricing
- Monitor active jobs and the decision log
- Edit the agent’s system prompt
- Check wallet balance and payment history
- Review metrics and profit margins
Next Steps
Section titled “Next Steps”- Configuration - full YAML reference
- Architecture - understand the internals
- Pricing - pricing models and strategies