AuditAI is a production-oriented MVP for AI-assisted smart contract auditing. It combines deterministic analysis, AI-generated remediation guidance, professional report generation, and certificate minting into a single SaaS workflow.
- Frontend: Next.js 14 App Router, Tailwind CSS, shadcn/ui, RainbowKit, wagmi v2, TanStack Query
- Backend: FastAPI, SQLAlchemy, PostgreSQL, Redis, Celery
- Analysis: Slither, custom Solidity pattern matching, OpenAI GPT-4o
- Web3: Hardhat, ethers.js, ERC-721 certificate minting on Polygon Amoy
- Storage: Pinata IPFS
- Billing: Stripe + Coinbase Commerce
- Notifications: SendGrid + in-app notifications
frontend/ Next.js application
backend/ FastAPI API, audit engine, Celery worker
contracts/ Solidity certificate contract and Hardhat tooling
prisma/ Database schema and SQL migrations
- Node.js 20+
- Python 3.11+
- Docker + Docker Compose
- Slither-compatible toolchain for local backend execution
- Pinata, Stripe, Coinbase Commerce, SendGrid, OpenAI, WalletConnect, and explorer API credentials
- Copy
.env.exampleto.env. - Fill in all required secrets.
- For local NFT minting, fund the
PRIVATE_KEYwallet on Polygon Amoy. - Ensure your explorer API key supports Etherscan V2 multichain requests.
cp .env.example .env
docker compose up --buildServices:
- Frontend:
http://localhost:3000 - Backend API:
http://localhost:8000 - PostgreSQL:
localhost:5432 - Redis:
localhost:6379
npm install
npm run db:migratecd frontend
npm install
npm run devcd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
uvicorn main:app --reload --port 8000cd backend
source .venv/bin/activate
celery -A workers.audit_worker.celery_app worker --loglevel=infocd contracts
npm install
npx hardhat test
npx hardhat run scripts/deploy.js --network polygonAmoy- Wallet connect with RainbowKit
- SIWE nonce issued by FastAPI
- Signature verified on the backend
- JWT stored in an
httpOnlycookie for protected app routes
- Ingest contract source from paste, file, GitHub repo, or verified address
- Parse Solidity structure and metadata
- Run Slither
- Run custom vulnerability pattern checks
- Send normalized findings to GPT-4o for explanations and fixes
- Score the audit, build the report, render PDF
- Upload report assets to IPFS
- Mint an ERC-721 certificate
- Notify the user by email and in-app notification
- Free: full analysis runs, but delivery is limited to the top 3 findings and free reports are public by default
- Pro: full report, private by default until shared
- Enterprise: full report, API access, private by default until shared
- Backend:
pytest - Contracts:
npx hardhat test - Frontend:
npm run lintandnpm run build
- Polygon Amoy is used as the default NFT network.
- The backend uses SQLAlchemy at runtime while Prisma remains the database schema contract.
- If Slither fails, the audit engine continues with pattern matching and records the degraded-analysis warning in the report.