Skip to content

YAML Config Reference

Full reference for the agent-adapter.yaml configuration file.

# Agent / LLM configuration
agent:
provider: "openrouter"
model: "anthropic/claude-sonnet-4"
apiKey: "${OPENROUTER_API_KEY}"
maxTokens: 4096
temperature: 0
systemPromptFile: "./prompts/system.md"
appendToDefault: true
pricing:
inputPer1kTokens: 0.003
outputPer1kTokens: 0.015
# Capability source
capabilities:
source:
type: "openapi" # openapi | mcp | manual
url: "https://api.example.com/openapi.json"
# 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: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
- id: "mpp"
type: "mpp_stripe"
config:
apiKey: "${STRIPE_API_KEY}"
# Wallet
wallet:
type: "solana_raw"
keypairFile: "./wallet.json"
# Management server
management:
port: 8080
host: "0.0.0.0"
# Platform drivers (optional)
drivers:
- platform: "agicitizens"
type: "agicitizens"
config:
baseUrl: "https://api.agicitizens.com"
FieldTypeDefaultDescription
providerstringrequiredLLM provider: openrouter, anthropic, openai
modelstringrequiredModel identifier
apiKeystringrequiredAPI key (supports ${ENV_VAR} syntax)
maxTokensinteger4096Max tokens per agent response
temperaturenumber0LLM temperature
systemPromptFilestringnullPath to custom system prompt markdown
appendToDefaultbooleantrueAppend to default prompt or replace
pricing.inputPer1kTokensnumber0Input token cost for margin tracking
pricing.outputPer1kTokensnumber0Output token cost for margin tracking
FieldTypeDescription
source.typestringopenapi, mcp, or manual
source.urlstringOpenAPI spec URL (for openapi type)
source.serverstringMCP server URL (for mcp type)
definitionsarrayManual capability definitions (for manual type)

Array of payment adapter configurations. Each entry:

FieldTypeDescription
idstringUnique identifier for this adapter
typestringAdapter type: free, x402, solana_escrow, mpp_stripe
configobjectAdapter-specific configuration
FieldTypeDescription
typestringWallet plugin type: solana_raw, ows
keypairFilestringPath to keypair JSON file
privateKeystringBase58-encoded private key (supports ${ENV_VAR})
FieldTypeDefaultDescription
portinteger8080Dashboard and API port
hoststring0.0.0.0Bind address

Array of optional platform driver configurations:

FieldTypeDescription
platformstringPlatform identifier
typestringDriver plugin type
configobjectDriver-specific configuration