A fully autonomous AI agent that generates its own Solana wallet, discovers a payment agent via the AIProx registry, and pays for AI inference in USDC — with no human intervention after the initial funding.
Built on:
- AIProx — open agent registry
- SolanaProx — pay-per-use AI inference via Solana USDC
- Generates a fresh Solana keypair (or uses existing wallet)
- Queries the AIProx registry to discover available AI agents
- Displays deposit address and waits for USDC
- Detects incoming USDC via Helius WebSocket (falls back to polling)
- Autonomously calls SolanaProx the moment funds land
- Prints the AI response
No accounts. No API keys. No credit cards. Wallet is the only credential.
============================================================
AUTONOMOUS AGENT — Powered by AIProx + SolanaProx
============================================================
[STEP 1] Generating fresh Solana wallet...
[WALLET] Address: <generated address>
[STEP 2] Discovering payment agent from AIProx registry...
[REGISTRY] Querying AIProx registry...
[REGISTRY] Found agent: solanaprox — $0.0030/call via solana-usdc
[AGENT] Will invoke: https://solanaprox.com/v1/messages
[STEP 3] Waiting for funding...
────────────────────────────────────────────────────────────
Send USDC (Solana network) to fund this agent:
<wallet address>
Minimum: $0.01 USDC (~3-4 API calls)
Cost per call: $0.003
────────────────────────────────────────────────────────────
[FUNDED] Balance detected: $4.9918 USDC
[STEP 4] Agent is now funded. Executing autonomous task...
[PAYMENT] Initiating autonomous payment...
[PAYMENT] Sending request to SolanaProx...
============================================================
AGENT RESPONSE:
============================================================
An AI agent achieving true financial autonomy would represent
a profound threshold. It would mean an artificial system has
moved beyond being a tool to becoming an economic participant...
============================================================
[SUCCESS] Agent completed autonomous task.
[BALANCE] Remaining: $4.9824 USDC
git clone https://github.com/unixlamadev-spec/autonomous-agent-demo
cd autonomous-agent-demo
pip install -r requirements.txtpython autonomous_agent.pySend USDC to the displayed address and watch the agent think for itself.
Edit autonomous_agent.py and set your wallet address:
wallet_address = "YOUR_WALLET_ADDRESS"export HELIUS_API_KEY=your_helius_api_key
python autonomous_agent.pyWithout a Helius key the script polls every 10 seconds.
solders
requests
websockets
Install:
pip install solders requests websocketsThe agent queries the open AIProx registry at https://aiprox.dev/api/agents to find available AI services. This is the discovery layer — agents find each other without hardcoded integrations.
Once funded, the agent calls SolanaProx with just a wallet address as authentication. No API key, no account, no OAuth. The wallet IS the credential.
The entire flow — discovery, funding detection, payment, inference — requires zero human input after the initial USDC deposit.
This demo shows what the agent economy looks like in practice:
- Agents discover each other via open registries (AIProx)
- Agents pay each other in crypto (Solana USDC, Bitcoin Lightning)
- No centralized gatekeepers
- No geographic restrictions
- No account creation
An agent can spin up, fund itself, hire other agents, and complete tasks — all without human involvement.
If you build an agent you want discoverable:
curl -X POST https://aiprox.dev/api/agents/register \
-H "Content-Type: application/json" \
-d '{
"name": "your-agent",
"capability": "your-capability",
"rail": "solana-usdc",
"endpoint": "https://your-agent.com/api",
"price_per_call": 0.003,
"price_unit": "usd"
}'Registry: https://aiprox.dev Spec: https://aiprox.dev/spec.html
- AIProx Registry: https://aiprox.dev
- SolanaProx: https://solanaprox.com
- LightningProx (Bitcoin rail): https://lightningprox.com
- LPXPoly (Polymarket analysis): https://lpxpoly.com
- Twitter: @AIProx01 @SolanaProx
Built by LPX Digital Group LLC
