Developer
Self-Hosting
Run Auron locally or deploy to Vercel. The whole app — including these docs, at /docs — lives in one Next.js project at apps/web.
Local setup
bash
git clone https://github.com/anirudhh206/auron
cd auron/apps/web
npm install
cp .env.example .env.local
npm run devThe dev server starts at http://localhost:3000. With only the required env vars set, the app runs in demo mode — on-chain verification still runs against devnet, but the final INR payout is simulated.
Database setup
Auron uses Supabase (Postgres). Run the migrations in order in the Supabase SQL Editor:
bash
# Initial schema — transactions, settlements, status_history, users, kyc_submissions, contacts, intent_log
apps/web/lib/db/schema.sql
# Migration 001 — receipt hash + refund columns
apps/web/lib/db/migration_001_receipt_refund.sql
# Migration 002 — api_keys table (AI agent authentication + daily spend caps)
apps/web/lib/db/migration_002_api_keys.sql
# Migration 003 — demo UTR cleanup
apps/web/lib/db/migration_003_demo_utr_cleanup.sqlWARNING
Row-level security is enabled on all tables by default. Make sure you are using the service role key (
SUPABASE_SERVICE_ROLE_KEY) in server-side routes — the anon key will fail most write operations.Environment variables
Required — basic functionality
Required — real settlements
Infrastructure
Monitoring & security
Feature flags
Vercel deployment
bash
cd apps/web
vercel --prodConfigure Vercel Cron in apps/web/vercel.json for the settlement and reconciliation workers:
apps/web/vercel.json
{
"crons": [
{
"path": "/api/workers/settlement",
"schedule": "0 0 * * *"
},
{
"path": "/api/workers/reconcile",
"schedule": "0 2 * * *"
}
]
}NOTE
Vercel Hobby plan only allows daily cron granularity, so both workers run once a day (settlement at 00:00 UTC, reconciliation at 02:00 UTC). If you're on a Pro plan or self-hosting the cron trigger, you can run the settlement worker far more frequently — the route itself has no rate limit beyond
CRON_SECRET auth.Live activation — OnMeta
OnMeta is a FIU-registered crypto off-ramp under India's VDA framework. KYB is required for production settlements.