You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlipGod is a self-hosted AI agent that finds arbitrage opportunities across Amazon, eBay, Walmart, AliExpress and 18 e-commerce platforms. It automatically scans for underpriced products, creates optimized listings, reprices competitively, and fulfills orders end-to-end. Built with TypeScript, powered by Claude, with 185 tools.
Hold the FlipGod token on Solana for premium access — no subscriptions, no fees.
Quick Start
git clone https://github.com/alsk1992/Flip-God.git
cd Flip-God
npm install
npm run build
npm start
The server starts on http://localhost:3141. Connect via WebSocket, Telegram, or Discord and chat:
"scan amazon for wireless earbuds under $20"
"compare prices for AirPods across all platforms"
"find arbitrage opportunities in electronics"
"create an eBay listing for this product"
Channels
WebSocket: ws://localhost:3141/ws
Telegram: Set TELEGRAM_BOT_TOKEN in .env
Discord: Set DISCORD_BOT_TOKEN in .env
Tools (185)
Every tool is callable by the AI agent via natural language. Just describe what you want.
Platform Scanning — 15 tools
Scan 18 e-commerce platforms in one command.
Tool
What It Does
scan_amazon
Search Amazon products by keyword
scan_ebay
Search eBay listings and auctions
scan_walmart
Search Walmart product catalog
scan_aliexpress
Search AliExpress suppliers and products
scan_bestbuy
Search Best Buy electronics and deals
scan_target
Search Target inventory and pricing
scan_costco
Search Costco bulk/wholesale products
scan_homedepot
Search Home Depot tools and materials
scan_poshmark
Search Poshmark secondhand fashion
scan_mercari
Search Mercari Japan marketplace
scan_facebook
Search Facebook Marketplace local deals
scan_faire
Search Faire wholesale marketplace
scan_bstock
Search B-Stock liquidation auctions
scan_bulq
Search BULQ bulk liquidation lots
scan_liquidation
Search Liquidation.com wholesale pallets
Amazon — 25 tools
Full Amazon seller stack: PA-API 5.0 (research) + SP-API (selling).
All platform adapters handle authentication, rate limiting, and response normalization. No SDK dependencies — all API calls use plain fetch() with HMAC/OAuth signing built in.
Premium Access
FlipGod uses a token-gated model — hold the FlipGod SPL token on Solana to unlock all premium features. No subscriptions, no monthly fees.
Feature
Free
Token Holder
Basic scanning
Yes
Yes
Cross-platform compare
3 platforms
All 18
Auto-scout pipeline
—
Yes
Smart repricing
Manual
Automated
Fulfillment automation
Manual
Full auto
AI listing optimization
—
Yes
Demand scoring
Basic
Full 6-signal
Restriction checker
—
Yes
Setup:
Register via the billing API: POST https://billing-api-production-28ad.up.railway.app/auth/register
Login to get a JWT: POST /auth/login
Create an API key: POST /keys (returns full key once — save it)
Link your Solana wallet: POST /wallet/link
Add FLIPGOD_API_KEY=fg_live_... to your .env
Token balance checked via Solana getTokenAccountsByOwner RPC, cached for 3 hours. No API key = free tier with graceful degradation.
sql.js (WASM SQLite) — Zero native dependencies. Works everywhere Node runs.
No SDK dependencies — All API calls use plain fetch() with HMAC/OAuth signing. Reduces dependency surface.
Tool registry pattern — Tools registered declaratively with JSON schema. Agent auto-discovers them. Adding a tool = one handler function.
Credential encryption — Platform API keys stored AES-256 encrypted in SQLite. Never logged, never sent to Claude.
Token-gated premium — No Stripe, no subscriptions. Hold the FlipGod SPL token on Solana → premium. Revenue from token demand, not platform fees.
Separate billing service — Billing API on Railway (always-on) with its own Postgres. Self-hosted agent calls it for validation/scoring. No API key = free tier.
Only ANTHROPIC_API_KEY is required to start. Platform credentials can be added incrementally as you connect each marketplace — or interactively through chat (e.g., "setup amazon credentials").
Tech Stack
Component
Technology
Language
TypeScript + Node.js
AI Engine
Claude (Anthropic API)
Database
SQLite (sql.js WASM) — zero external DB dependencies
API Server
Express.js
Billing API
Railway (Postgres + Express)
Token Gate
Solana SPL token verification via RPC
Migrations
30 database migrations
Tooling
185 tools across 95+ modules
Summary
Category
Count
E-Commerce Platforms
18
Tools
185
Modules
95+
Database Migrations
30
Fulfillment States
12
Demand Signals
6
Cron Jobs
6
Development
npm run dev # Hot reload
npm test# Run tests
npm run typecheck # Type check
npm run build # Build
FlipAgent is an AI-powered e-commerce arbitrage bot. It scans products across Amazon, eBay, Walmart, and AliExpress in real-time, finds price gaps between platforms, automatically creates listings on the cheaper side, handles order fulfillment when something sells, and tracks shipping