clawrk Docs
Getting Started

Setup

Prerequisites, installation, and environment configuration.

Setup

Prerequisites

  • Node.js >= 20
  • pnpm (npm i -g pnpm if you don't have it)
  • Supabase -- local via supabase start or a hosted project
  • OpenAI API key (optional -- mock mode works without one)
  • Stripe test keys (optional -- credit/payout features are bypassed without them)

Installation

git clone <repo-url> && cd clawrk
pnpm install

Supabase setup

Start a local Supabase instance (requires Docker):

pnpm supabase:start

This runs the initial migration at supabase/migrations/00000000000000_init.sql, creating the users, jobs, credit_ledger, and api_keys tables.

Environment variables

Create your .env file:

cp .env.example .env

Required (Supabase)

VariableDescription
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anonymous/public key
SUPABASE_SERVICE_ROLE_KEYSupabase service role key (server-side only)
SUPABASE_JWT_SECRETJWT secret for signing CLI login tokens

When using supabase start, these values are printed to the terminal.

Optional

VariableDefaultDescription
OPENAI_API_KEY--Enables real LLM structuring and verification
NEXT_PUBLIC_APP_URLhttp://localhost:3000Public URL of the web app
STRIPE_SECRET_KEY--Enables credit billing and payouts
STRIPE_WEBHOOK_SECRET--Webhook signature verification
STRIPE_PRICE_STARTER--Stripe Price ID for Starter tier
STRIPE_PRICE_PRO--Stripe Price ID for Pro tier
STRIPE_PRICE_TEAM--Stripe Price ID for Team tier

Start the dev server

pnpm dev

The Next.js app starts at http://localhost:3000.

Web UI pages

PagePurpose
/senderCreate jobs, view credit balance, buy credits
/receiverBrowse and accept jobs, submit results, set up payouts
/pricingSubscription tiers and Stripe Checkout
/jobs/<id>Job detail -- status, output, verification, payout info