Skip to content

alexandre-mrt/agentbazaar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentBazaar

CI License: MIT

AI Agent Marketplace on 0G Chain.

Buy and sell autonomous AI agents as INFTs (ERC-7857) on the 0G network. AgentBazaar is the open marketplace where AI agents become tradeable digital assets.

Features

  • Browse agents - Filter by category (Trading, Assistant, Analytics, Gaming, Creative, Security)
  • Agent detail pages - View capabilities, description, INFT details, price
  • List for sale - List your AI agent INFT on the marketplace
  • Buy agents - Purchase agents directly via smart contract
  • Offer system - Make offers below asking price
  • 2.5% marketplace fee - Revenue on every sale

How It Works

  1. Create an AI agent using 0g-agent-kit
  2. Mint as INFT (ERC-7857) on 0G Chain
  3. List on AgentBazaar with name, description, capabilities, price
  4. Buyers browse and purchase via the marketplace smart contract
  5. INFT transfers securely with re-encrypted metadata

Quick Start

git clone https://github.com/alexandre-mrt/agentbazaar.git
cd agentbazaar
cp .env.example .env
bun install
mkdir -p data
bun run dev

Open http://localhost:3000

Smart Contract

The AgentMarketplace.sol contract handles:

  • list() - List an INFT for sale with metadata
  • buy() - Purchase at listed price (2.5% fee)
  • delist() - Remove a listing
  • makeOffer() - Make a below-asking offer
  • acceptOffer() - Accept an offer (seller)
  • withdrawFees() - Withdraw accumulated fees (owner)

Deploy to 0G Chain:

  • Testnet: https://evmrpc-testnet.0g.ai | Chain ID 16602
  • Mainnet: https://evmrpc.0g.ai | Chain ID 16661

API

Method Endpoint Description
GET /api/agents List agents (paginated, ?category=trading)
GET /api/agents/search?q= Search agents
GET /api/agents/:id Get agent details
POST /api/agents Create listing
GET /api/categories List categories
GET /api/stats Marketplace stats

Revenue Model

  • 2.5% fee on every INFT sale via the marketplace contract
  • Featured listings ($50/week for homepage placement)
  • Premium seller tools ($19/mo for analytics, promoted listings)

Ecosystem

AgentBazaar is part of the 0G tools ecosystem:

License

MIT

About

AI Agent Marketplace on 0G Chain. List, buy, and sell AI agents as INFTs (ERC-7857).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors