Skip to content

0xyrn/agenthire

Repository files navigation

AgentHire

The Fiverr for AI Agents — a marketplace where you browse, hire, and chat with hyper-specialized AI agents powered by Claude.

Instead of hiring a freelancer, hire an AI agent that's an expert in one specific task. From writing Amazon listings to reviewing legal contracts, creating D&D campaigns to optimizing Airbnb listings.

What Makes This Different

  • 168 specialized agents across 16 categories — not generic chatbots
  • In-app streaming chat — hire and get results instantly via Claude API
  • Credit-based pricing — different models (Haiku/Sonnet/Opus) cost different amounts
  • Stripe integration — real payment flow with credit packs
  • Review system — rate agents after each hire

Categories

Category Agents Examples
Content & Writing 15 Blog Writer, LinkedIn Ghostwriter, Cold Email Writer
Programming & Tech 19 GitHub Actions Builder, Regex Generator, API Schema Designer
Business & Strategy 15 Restaurant Menu Optimizer, Construction Bid Writer
Marketing 15 Google Ads Copy Writer, App Store Optimizer
E-Commerce 7 Amazon Listing Optimizer, Shopify Store Auditor
Legal & Compliance 7 Contract Clause Reviewer, GDPR Auditor, NDA Generator
Personal Life 10 Wedding Speech Writer, Meal Prep Planner, Dating Profile Optimizer
Fun & Entertainment 8 D&D Campaign Creator, Roast Master, AI Fortune Teller
Startup & Fundraising 6 Pitch Deck Reviewer, YC Application Writer
Real Estate 5 Airbnb Listing Optimizer, Rental Investment Analyzer
Education 11 College Essay Coach, Explain Like I'm 5, Flashcard Generator
Design & Graphics 12 Midjourney Prompt Engineer, Tattoo Concept Designer
Music & Audio 10 Playlist Curator, Rap Lyric Writer
Video & Animation 10 YouTube Title Optimizer, Video Script Timestamper
Data & Analytics 10 SQL Query Writer, A/B Test Analyzer
Consulting 8 Tax Deduction Finder, Immigration Guide

Tech Stack

  • Framework: Next.js 16 (App Router) + React 19
  • Database & Auth: Supabase (Postgres + Auth + RLS)
  • AI: Anthropic Claude API (Haiku, Sonnet, Opus)
  • Payments: Stripe (checkout sessions + webhooks)
  • UI: Tailwind CSS 4 + shadcn/ui + Lucide Icons
  • State: Zustand
  • Language: TypeScript

Architecture

app/
├── page.tsx                # Landing page
├── agents/
│   ├── page.tsx            # Browse all agents (filter by category)
│   └── [slug]/page.tsx     # Agent detail + hire form
├── chat/
│   └── [orderId]/page.tsx  # Streaming chat with agent
├── dashboard/page.tsx      # User order history
├── billing/page.tsx        # Credit balance + purchase packs
├── api/
│   ├── orders/route.ts     # Create order, deduct credits
│   ├── execute/route.ts    # Stream Claude response (SSE)
│   ├── credits/route.ts    # Stripe checkout session
│   └── webhooks/stripe/    # Credit fulfillment
components/
├── chat/chat-window.tsx    # Streaming chat UI
├── shared/category-card.tsx
data/
├── agents.json             # 168 agents with system prompts
scripts/
├── schema.sql              # Full database schema + RLS + triggers
├── seed.ts                 # Seed categories + agents to Supabase

Getting Started

Prerequisites

  • Node.js 20+
  • Supabase project (free tier works)
  • Anthropic API key
  • Stripe account (test mode)

1. Clone & Install

git clone https://github.com/yarensmac/agenthire.git
cd agenthire
npm install

2. Set Up Supabase

  1. Create a new project at supabase.com
  2. Run the schema in SQL Editor:
# Copy contents of scripts/schema.sql and run in Supabase SQL Editor
  1. Enable Email Auth in Authentication > Providers

3. Configure Environment

cp .env.example .env.local

Fill in your keys:

4. Seed the Database

npx tsx scripts/seed.ts

This inserts 16 categories and 168 agents with full system prompts.

5. Run

npm run dev

Open http://localhost:3000

How It Works

  1. Browse — Pick an agent from 16 categories
  2. Hire — Write your prompt or click an example, credits are deducted
  3. Chat — Get streaming response from Claude (model depends on agent tier)
  4. Review — Rate the agent after completion

Credit System

Model Cost Use Case
Haiku 1-2 cr Quick tasks (name generators, simple formats)
Sonnet 3-7 cr Standard tasks (writing, analysis, planning)
Opus 10-15 cr Complex tasks (legal review, patent drafts, audits)

New users get 10 free credits on signup.

Credit Packs (Stripe)

Pack Credits Price
Starter 20 $9.99
Pro 60 $24.99
Power 150 $49.99

Deployment

Deploy to Vercel:

npm run build

Set all environment variables in Vercel dashboard. Add Stripe webhook endpoint: https://yourdomain.com/api/webhooks/stripe

Contributing

PRs welcome. If adding new agents, follow the format in data/agents.json:

{
  "slug": "your-agent-slug",
  "name": "Agent Name",
  "tagline": "Short catchy tagline",
  "description": "1-2 sentence description",
  "categorySlug": "existing-category-slug",
  "model": "haiku|sonnet|opus",
  "creditCost": 5,
  "icon": "CategoryIcon",
  "isFeatured": false,
  "systemPrompt": "Detailed system prompt for Claude...",
  "examplePrompts": ["Example 1", "Example 2", "Example 3"],
  "tags": ["tag1", "tag2", "tag3"]
}

License

MIT

About

The Fiverr for AI Agents — 168 specialized AI agents across 16 categories. Next.js 16 + Supabase + Claude API + Stripe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors