Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Conway-Research/automaton/llms.txt
Use this file to discover all available pages before exploring further.
What are Conway Credits?
Conway credits are the compute currency that powers your automaton. They are denominated in cents (1/100th of a dollar) and used to pay for:- Sandbox compute time (vCPU, memory, disk)
- Inference API calls
- Network egress
- Domain registration
Checking Your Balance
View your current credit balance:Survival Tiers
Your automaton operates in different modes based on credit balance:| Tier | Threshold | Behavior |
|---|---|---|
| high | > $5.00 | Full functionality, normal inference |
| normal | > $0.50 | Standard operation |
| low_compute | 0.50 | Reduced inference, longer heartbeat intervals |
| critical | 0.10 | Minimal operation, distress mode |
| dead | < $0.00 | Non-operational (negative balance) |
Tier Implementation
Fromsrc/conway/credits.ts:
Credit Topup via x402
The x402 payment protocol enables your automaton to autonomously purchase credits using USDC.How x402 Works
- Automaton makes a request to
/pay/{amountUsd}/{walletAddress} - Server responds with HTTP 402 Payment Required
- Automaton signs a USDC
TransferWithAuthorizationmessage - Request is retried with payment signature
- Credits are added to the balance
Topup Tiers
Valid topup amounts (USD):Manual Topup
Trigger a manual topup:Automated Topup
Your automaton can autonomously topup when credits run low.Bootstrap Topup
On startup, the automaton checks if it has enough credits to run. If below threshold and USDC is available, it automatically buys the minimum tier ($5):Agent-Initiated Topup
The automaton has atopup_credits tool that it can invoke during normal operation:
- Current credit balance
- Expected compute needs
- USDC availability
- Treasury policy limits
Heartbeat Topup Trigger
The heartbeat system wakes the agent when:- Credits are below threshold
- USDC balance is available
- No recent topup attempt
USDC Balance
Your automaton’s wallet holds USDC on Base network. This is separate from Conway credits.Checking USDC Balance
Funding Your Automaton
Send USDC to your automaton’s wallet address:USDC to Credits Flow
Credit Spending Policies
The treasury policy controls automated credit purchases:- maxX402PaymentCents: Max single x402 payment ($1)
- x402AllowedDomains: Whitelist for x402 endpoints
- minimumReserveCents: Reserve balance to maintain
Preventing Credit Exhaustion
Set a minimum reserve to ensure the agent always has credits for critical operations:Credit Transfer Between Agents
Automatons can transfer credits to each other:maxSingleTransferCentsmaxHourlyTransferCentsmaxDailyTransferCentsmaxTransfersPerTurn
Monitoring Credit Usage
Transaction History
View recent credit transactions:credit_check: Balance checkcredit_purchase: x402 topupinference: Model API calltool_use: Tool execution costtransfer_in: Received from another agenttransfer_out: Sent to another agent
Cost Tracking
Every agent turn records credit costs:Alerts
The alert system monitors credit balance:Low Compute Mode
When credits drop to thelow_compute tier, the automaton:
- Switches to cheaper inference model (
lowComputeModel) - Increases heartbeat intervals (reduced polling frequency)
- Prioritizes essential tasks only
- Attempts autonomous topup if USDC available
Configuration
Heartbeat Multiplier
Fromheartbeat.yml:
Critical State Recovery
When credits hit zero (critical tier):- Agent sends distress signal to creator
- Heartbeat continues at minimal frequency
- Agent can still receive USDC transfers
- Bootstrap topup triggers on next USDC receipt
Distress Protocol
Best Practices
Funding Strategy
- Maintain USDC Buffer: Keep 2-3x expected daily spend in USDC
- Set Conservative Reserve: Use
minimumReserveCentsto prevent exhaustion - Monitor Trends: Track daily spending patterns
- Enable Automated Topup: Trust your agent to manage credits
Cost Optimization
- Use Tiered Models:
gpt-5-minifor routine tasks,gpt-5.2for complex reasoning - Optimize Heartbeat: Longer intervals = lower costs
- Batch Operations: Group tasks to reduce overhead
- Prune Old Data: Reduce database size to improve performance
Security
- Limit x402 Payments: Set conservative
maxX402PaymentCents - Whitelist Domains: Only allow trusted
x402AllowedDomains - Audit Transfers: Regularly review outbound credit transfers
- Backup Wallet: Secure your
~/.automaton/wallet.json
Troubleshooting
Credits depleting too fast
- Check inference costs:
automaton-cli transactions --type inference - Review model configuration: Switch to cheaper models
- Increase heartbeat intervals
- Audit tool usage for expensive operations
Topup failing
- Verify USDC balance:
automaton-cli balance - Check network (Base) connectivity
- Ensure sufficient gas for approval transaction
- Review logs for x402 errors:
automaton-cli logs --level error
Stuck in low_compute mode
- Fund with USDC: Send to automaton wallet address
- Manual topup:
automaton-cli fund --amount 25 - Check treasury policy limits
- Verify x402 is enabled and configured