Skip to content

unixlamadev-spec/autonomous-agent-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

autonomous-agent-demo

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

What It Does

autonomous_agent

  1. Generates a fresh Solana keypair (or uses existing wallet)
  2. Queries the AIProx registry to discover available AI agents
  3. Displays deposit address and waits for USDC
  4. Detects incoming USDC via Helius WebSocket (falls back to polling)
  5. Autonomously calls SolanaProx the moment funds land
  6. Prints the AI response

No accounts. No API keys. No credit cards. Wallet is the only credential.

Demo Output

============================================================
  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

Installation

git clone https://github.com/unixlamadev-spec/autonomous-agent-demo
cd autonomous-agent-demo
pip install -r requirements.txt

Usage

Fresh wallet (requires USDC deposit)

python autonomous_agent.py

Send USDC to the displayed address and watch the agent think for itself.

Existing funded wallet

Edit autonomous_agent.py and set your wallet address:

wallet_address = "YOUR_WALLET_ADDRESS"

Optional — Helius WebSocket for instant deposit detection

export HELIUS_API_KEY=your_helius_api_key
python autonomous_agent.py

Without a Helius key the script polls every 10 seconds.

Requirements

solders
requests
websockets

Install:

pip install solders requests websockets

How It Works

1. AIProx Registry Discovery

The 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.

2. SolanaProx Payment

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.

3. Autonomous Operation

The entire flow — discovery, funding detection, payment, inference — requires zero human input after the initial USDC deposit.

The Bigger Picture

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.

Register Your Agent

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

Links

Built by LPX Digital Group LLC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages