Autonomous 24/7 AI Agent Platform for On-Chain Micro-Services, Intelligence Curation & Bounties on Base L2
Autonomous Micro-Entrepreneur (AME) is a self-hosted, 24/7 agentic software system designed to perform automated micro-tasks, Web3 data curation, and code solutions with near-zero marginal operating cost.
Built specifically for the Base (Coinbase L2) ecosystem, it settles cryptographic proofs of work on-chain via smart contracts and operates unattended on dedicated hardware (NVIDIA GeForce GTX 1660 / Windows 10).
AME exposes a pay-per-request API following the HTTP 402 (x402) Payment Required standard on Base Mainnet (ChainId: 8453). External AI agents, developers, and autonomous protocols can hire AME for on-demand intelligence and code resolution with instant on-chain settlement:
- Live Dashboard & Explorer: https://ramgox.github.io/autonomous-micro-entrepreneur/
- AIP-1 Agent Manifest:
/.well-known/agent.json - OpenAPI 3.0 Specification:
/openapi.json - Payee Address (Base L2):
0xdCEa1CDdA6E23Be9670Eda3073691FA6E4e140bf
| Endpoint | Method | Cost | Description |
|---|---|---|---|
/api/v1/x402/pricing |
GET |
Free | Public pricing schedule & payment challenge specifications |
/api/v1/x402/intel |
GET |
0.00005 ETH (~$0.13) |
Curated multi-chain transaction analytics & on-chain intelligence |
/api/v1/x402/solve |
POST |
0.0001 ETH (~$0.26) |
Autonomous code resolution, smart contract audits & bug solving |
# 1. Fetch live pricing and payee address
curl -s https://enforcement-valid-carrying-slip.trycloudflare.com/api/v1/x402/pricing
# 2. Query intelligence (pass transaction hash confirming 0.00005 ETH sent on Base)
curl -s -H "X-Payment-Tx: <0x_BASE_TX_HASH>" \
https://enforcement-valid-carrying-slip.trycloudflare.com/api/v1/x402/intelAME employs an enrouted multi-model hierarchy designed to maximize reasoning power while enforcing strict token budget limits:
βββββββββββββββββββββββββββββ
β Brain Router / Router β
βββββββββββββββ¬ββββββββββββββ
β
βββββββββββββββββββββ¬ββββββββββββ΄ββββββββββββ¬ββββββββββββββββββββ
βΌ βΌ βΌ βΌ
βββββββββββββββββ βββββββββββββββββ βββββββββββββββββ βββββββββββββββββ
β Brain 1 β β Brain 2 β β Brain 3 β β Brain 4 β
β Local Worker β β Ops Director β β Software CTO β β Gov Auditor β
β(Qwen 2.5 Coderβ β(Gemini Flash) β β(DeepSeek API) β β (Argon / AGY) β
β GTX 1660) β β $0.00 Cost β β β¬0.50/day Cap β β High Priority β
βββββββββ¬ββββββββ βββββββββ¬ββββββββ βββββββββ¬ββββββββ βββββββββ¬ββββββββ
β β β β
Headless Crawl Macro Planning Code Solutions Governance &
& Scraping 24/7 & Discord Chat & Smart Contracts Batch Fallback
-
Brain 1: The Local Worker ($0.00 Cost)
- Engine: Ollama running
qwen2.5-coder:7b-instruct-q4_K_Saccelerated by CUDA on local Nvidia GTX 1660 (6 GB VRAM). - Responsibilities: Continuous background monitoring, Discord socket handling, headless web scraping via Crawl4AI, and Obsidian local memory synchronization.
- Engine: Ollama running
-
Brain 2: The Operations Director ($0.00 Incremental)
- Engine: Google Gemini Flash via Google AI Studio / Antigravity Pro.
- Responsibilities: Macro task decomposition, real-time natural language synthesis, and fast conversational intelligence.
-
Brain 3: The Software Engineer / CTO (β¬0.50/day Hard Cap)
- Engine: DeepSeek API managed by LiteLLM with automatic circuit breaker.
- Responsibilities: Generating production-ready code solutions, EVM smart contracts, automated unit testing, and GitHub Pull Request formatting.
-
Brain 4: The Supreme Architect & Auditor
- Engine: Argon / Antigravity Pro.
- Responsibilities: High-impact technical verification (difficulty β₯ 8/10), financial safety guardrails, and automated batch fallback to process top pending opportunities when high-level tasks are clear.
The system operates autonomously with verifiable transactions on Base:
-
Primary Smart Contract:
MicroTaskRegistry.sol-
Network: Base Sepolia (L2 Testnet)
$\rightarrow$ Ready for Base Mainnet. -
Verified Contract Address:
0x04f473e39e678d012F1f42cba7649F248253cb56 - On-Chain Commitments: 23+ verifiable autonomous micro-tasks registered and anchored into the blockchain.
-
Network: Base Sepolia (L2 Testnet)
-
Oracle & Yield Infrastructure:
-
PreciousMetalsOracleAdapter.sol: Dual Pyth/Chainlink oracle adapter deployed on Base. - Yield and staking helper patches with 100% unit test coverage.
-
-
Operator Payout Wallet:
0x02c1F87F514493F359Afc0B3ff6b587434770361(EVM compatible on Base Mainnet, Ethereum, Arbitrum, and Polygon).
Decoupled multi-threaded pipeline running 5 independent asynchronous workers:
- Orders Worker (5s): Instant execution of user directives from Discord.
- DeepSeek Solver (300s): Strict 5-minute automated code execution targeting medium and low complexity tasks.
- Escrow Bounty Hunter (180s): Multi-query GitHub scanner filtering for verified on-chain escrow deposits.
- Web3 On-Chain Pipeline (30s): Automated state validation, heartbeat emission, and contract task registration.
- Grants Curator (1800s): Continuous intelligence mining of developer grant opportunities.
- Spam & Donation Filter: Automatically discards donation solicitations and unbacked tokens.
- Escrow Priority Sorting: Prioritizes opportunities backed by on-chain escrow platforms (Algora, Polar.sh, poidh.xyz, Gitcoin).
- TTL Auto-Pruning: Removes tasks unexecuted after 2 hours (7,200s) to keep memory lean.
- Cerebro 4 Batch Fallback: Ensures high-tier models never sit idle when high-level queues are empty.
- Leverages local
Crawl4AIin headless mode (zero marginal cost) to scrape and structure funding opportunities across Base Ecosystem, Coinbase Developer Platform (CDP), and L2 hackathons into structured JSON and Markdown datasets.
- Lightweight HTTP service running on
http://127.0.0.1:8080. - Real-time metrics: GPU temperature, VRAM allocation, CPU/RAM usage, gas price history, Web3 balance, and DeepSeek daily budget progress.
- Dual-Engine Visual Capture: Attempts native desktop capture; if screen is locked or in power-save mode, automatically launches headless Chromium via Crawl4AI to snapshot the live web dashboard.
- Zero-Noise Policy: Routine task discovery and deliveries are logged silently to disk. Discord only triggers for user replies, system improvements, incoming real payments, urgent human intervention, and scheduled 12-hour reports (09:00 / 21:00).
- Single-Instance Mutex Protection: Native Windows kernel mutex (
Global\AutonomousMicroEntrepreneur_SingleInstance) prevents duplicate bot processes.
autonomous-micro-entrepreneur/
βββ config/
β βββ .env.example # Public configuration template
β βββ .env # Local keys & credentials (Git-ignored)
βββ memoria/ # Long-term persistent memory (Obsidian vault)
β βββ datasets_curados/ # Structured Web3 grants & intelligence datasets
β βββ estrategias/ # Revenue strategies & grant application dossiers
β β βββ dossier_base_builder_grant.md
β β βββ soluciones_propuestas/# Generated code solutions & test suites
β βββ estado/ # Telemetry states, budgets, and opportunity queues
β βββ lecciones/ # Post-mortem logs and learned constraints
βββ scripts_generados/ # Core autonomous background workers
β βββ autonomous_daemon.py # Main decoupled 24/7 concurrent daemon
β βββ continuous_worker.py # On-chain Base Sepolia interaction loop
β βββ opportunity_scraper.py # Headless Crawl4AI mining pipeline
βββ src/ # Modular source code
β βββ bounty_hunter.py # Escrow-shielded GitHub & Web3 task scanner
β βββ brain_router.py # 4-Brain intelligent LLM router & budget manager
β βββ dashboard_server.py # Live telemetry server (Port 8080)
β βββ data_curator.py # Base Ecosystem grants extractor
β βββ deepseek_solver.py # Automated code generator with budget guard
β βββ discord_bot.py # Remote command & control bridge
β βββ github_deliverer.py # Automated Pull Request & comment submission
β βββ opportunity_queue.py # Queue manager with escrow verification & TTL
β βββ system_watchdog.py # Sub-2s process supervisor & auto-recovery
β βββ twelve_hour_reporter.py # Scheduled 09:00 / 21:00 executive reports
β βββ contracts/ # Solidity contracts (MicroTaskRegistry, Oracle)
βββ Arrancar_Bot.bat # One-click Windows launch script
βββ SYSTEM_PROMPT.md # Central operating constitution
βββ README.md # Project documentation
- Windows 10/11 or Linux with Python 3.11+
- Local Ollama instance with
qwen2.5-coder:7b-instruct-q4_K_S - Dedicated or integrated GPU (CUDA supported)
-
Clone the repository:
git clone https://github.com/RAMGOX/autonomous-micro-entrepreneur.git cd autonomous-micro-entrepreneur -
Create virtual environment and install dependencies:
python -m venv .venv .venv\Scripts\activate # On Linux: source .venv/bin/activate pip install -r requirements.txt
-
Configure environment:
cp config/.env.example config/.env # Edit config/.env with your API keys and Base wallet details -
Launch the system:
# Starts Watchdog, Dashboard, Discord Bot, and 24/7 Daemon python src/system_watchdog.py
This project is submitted for consideration under the Base Builder Grants (Retroactive Funding) and Coinbase Developer Platform (CDP) for Agents initiatives.
Review the complete grant dossier in memoria/estrategias/dossier_base_builder_grant.md.
- Operator / Recipient Address:
0x02c1F87F514493F359Afc0B3ff6b587434770361 - Maintainer: RAMGOX
- License: MIT