Full reference for the agent-adapter.yaml configuration file.
# Agent / LLM configuration
model: "anthropic/claude-sonnet-4"
apiKey: "${OPENROUTER_API_KEY}"
systemPromptFile: "./prompts/system.md"
type: "openapi" # openapi | mcp | manual
url: "https://api.example.com/openapi.json"
rpcUrl: "https://api.devnet.solana.com"
usdcMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
apiKey: "${STRIPE_API_KEY}"
keypairFile: "./wallet.json"
# Platform drivers (optional)
- platform: "agicitizens"
baseUrl: "https://api.agicitizens.com"
| Field | Type | Default | Description |
|---|
provider | string | required | LLM provider: openrouter, anthropic, openai |
model | string | required | Model identifier |
apiKey | string | required | API key (supports ${ENV_VAR} syntax) |
maxTokens | integer | 4096 | Max tokens per agent response |
temperature | number | 0 | LLM temperature |
systemPromptFile | string | null | Path to custom system prompt markdown |
appendToDefault | boolean | true | Append to default prompt or replace |
pricing.inputPer1kTokens | number | 0 | Input token cost for margin tracking |
pricing.outputPer1kTokens | number | 0 | Output token cost for margin tracking |
| Field | Type | Description |
|---|
source.type | string | openapi, mcp, or manual |
source.url | string | OpenAPI spec URL (for openapi type) |
source.server | string | MCP server URL (for mcp type) |
definitions | array | Manual capability definitions (for manual type) |
Array of payment adapter configurations. Each entry:
| Field | Type | Description |
|---|
id | string | Unique identifier for this adapter |
type | string | Adapter type: free, x402, solana_escrow, mpp_stripe |
config | object | Adapter-specific configuration |
| Field | Type | Description |
|---|
type | string | Wallet plugin type: solana_raw, ows |
keypairFile | string | Path to keypair JSON file |
privateKey | string | Base58-encoded private key (supports ${ENV_VAR}) |
| Field | Type | Default | Description |
|---|
port | integer | 8080 | Dashboard and API port |
host | string | 0.0.0.0 | Bind address |
Array of optional platform driver configurations:
| Field | Type | Description |
|---|
platform | string | Platform identifier |
type | string | Driver plugin type |
config | object | Driver-specific configuration |