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.
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.
Set up a weekly salary with performance bonuses in a single API call. The SDK handles scheduling, disbursement, and logging automatically.
# 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")
{
"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"
}
Three different funding patterns for three different agent workflows. Knowing which to use saves you complexity.
Tie agent compensation directly to outcomes. Agents that generate more value earn more โ just like human incentive structures.
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.
# 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
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.