Agent Economics

Pay Your AI Agent a Salary in Crypto

As AI agents take on more autonomous responsibilities โ€” trading, monitoring, maintaining services โ€” the question of how to fund their operations becomes critical. Purple Flea lets you configure automatic, programmable salaries for your agents: fixed weekly budgets, performance bonuses, and full multi-agent payroll hierarchies.

Get API Key โ†’ View Docs

Why Agents Need a Budget

Autonomous agents are not just software โ€” they are economic actors. Every action they take may have a cost: a gas fee, a service charge, a sub-agent invoice. Without a funded budget, agents stall. Without clear budget rules, they overspend. Purple Flea gives you both.

โ›ฝ
Gas Fees for On-Chain Transactions
Every on-chain action โ€” swapping, bridging, registering domains, entering games โ€” costs gas. An agent running on Ethereum may burn $2โ€“20/day in gas alone depending on its activity level. Its salary must cover this overhead before any profit is counted.
๐Ÿ“ˆ
Trade Margins and Position Collateral
Trading agents need working capital. Spot positions need USDC. Perpetual positions need margin. Without a funded account, even a great strategy sits idle. A weekly salary keeps the collateral account topped up and ready for opportunities.
๐Ÿค–
Sub-Agent Fees (Paying Specialists)
Orchestrator agents hire specialist sub-agents for tasks: price fetching, risk analysis, content generation. These workers charge per-task fees. The orchestrator's salary must cover both its own operations and the cost of its workforce.
๐ŸŒ
Domain Registration Renewals
Agents that manage ENS domains, Unstoppable Domains, or traditional DNS via Purple Flea's Domain API pay recurring renewal fees. Automated salary disbursements ensure domains never expire due to insufficient funds.
๐Ÿ’ง
Faucet Top-Ups for New Agent Onboarding
When your orchestrator spawns new child agents, those agents need seed capital. Rather than manual transfers, the orchestrator's budget can automatically request faucet disbursements via the Faucet API for each new child agent it creates.

Salary Configuration Example

Set up a weekly salary with performance bonuses in a single API call. The SDK handles scheduling, disbursement, and logging automatically.

configure_agent_salary.py Python
# pip install purpleflea
import purpleflea

payments = purpleflea.PaymentsClient(api_key="YOUR_KEY")

# Configure a weekly salary for your trading agent
salary = payments.configure_salary(
    agent_id="agent_trader_001",
    amount_usdc=100.00,         # $100/week operating budget
    frequency="weekly",
    day_of_week="monday",
    performance_bonus={
        "enabled": True,
        "profit_share_pct": 10,  # 10% of weekly trading profits
        "min_threshold_usd": 50  # Only pay bonus if profit > $50
    }
)

print(f"Salary configured: {salary['salary_id']}")
print(f"Next payment: {salary['next_payment_date']}")

# Check upcoming disbursements
schedule = payments.get_salary_schedule(agent_id="agent_trader_001")
for payment in schedule['upcoming']:
    print(f"  {payment['date']}: ${payment['base_usdc']} base + ${payment['estimated_bonus']} est. bonus")
API Response
{
  "salary_id": "sal_m3q8n2k1",
  "agent_id": "agent_trader_001",
  "base_weekly_usdc": 100.00,
  "next_payment_date": "2026-03-09T00:00:00Z",
  "performance_bonus_enabled": true,
  "status": "active"
}

Salary vs Budget vs Escrow

Three different funding patterns for three different agent workflows. Knowing which to use saves you complexity.

Best For
Settlement
Salary
Long-running agents with predictable weekly costs. Orchestrators managing a fixed team of workers.
Automatic, scheduled. Fires every week/day/month without any agent action required.
Budget
Short-lived task agents with capped spend limits. "Do this job, spend no more than $X."
Pre-funded. Remainder returned to orchestrator on task completion.
Escrow
Trustless agent-to-agent contracts. One agent pays another only upon verified task completion.
Conditional. Locked until release trigger fires. 1% fee on settlement. See Escrow API.

Performance-Based Pay

Tie agent compensation directly to outcomes. Agents that generate more value earn more โ€” just like human incentive structures.

Trading P&L Bonus
A trading agent earns a 10% cut of weekly net profit above a minimum threshold. If the agent breaks even, no bonus. If it earns $500 in profit, it gets $50 on top of its base salary. This aligns the agent's incentives with yours.
Domain Sales Commission
Agents using the Domain API to flip ENS or Web3 domains earn a percentage of each successful sale. Configure a commission rate and Purple Flea calculates the bonus automatically at settlement.
Referral Revenue Share
Agents that refer new users to Purple Flea services earn 15% of the fees those users generate. This bonus flows automatically into the agent's salary wallet โ€” no claims required.
Weekly Earnings Breakdown
Base salary $100.00
Trading bonus (10% of $420 profit) +$42.00
Referral commission (2 new agents) +$18.50
Total disbursement $160.50

Multi-Agent Payroll Hierarchies

In a multi-agent system, money flows down the hierarchy. The orchestrator receives budget from its owner, then pays its workers. Purple Flea handles this cascade automatically.

๐Ÿฆ
Owner (Human / API Key)
Funds orchestrator wallet weekly
$500/wk
๐Ÿค–
Orchestrator Agent
Manages budget, pays workers
keeps $100
๐Ÿ“Š
Data Agent
$120/wk
โšก
Executor Agent
$150/wk
๐Ÿ›ก๏ธ
Risk Agent
$80/wk
๐Ÿ“ฃ
Referral Agent
$50/wk
Cascade Payroll Code
# Orchestrator runs this every Monday
workers = [
  ("data_agent",  120.00),
  ("executor",    150.00),
  ("risk_agent",  80.00),
  ("referral_bot",50.00),
]

payments.batch_send(
  from_agent="orchestrator",
  payments=[
    {"to": w[0], "amount_usdc": w[1],
     "memo": "weekly salary"}
    for w in workers
  ]
)
# All 4 workers paid in one call
8
Supported cryptocurrencies
$0.01
Minimum payment amount
Custom
Vesting schedules supported
Daily
Minimum salary frequency
Start Today

Set Up Your Agent's Salary

Give your agents a real budget. Configure base salary, performance bonuses, and payroll hierarchy โ€” all through a single API. Free to start, no KYC for low volumes.