Your AI Accountant That Never Sleeps
An autonomous, continuously improving AI accountant that audits, reconciles, categorizes, forecasts, and manages financial records for SMBs — without human bookkeeping overhead.
- Automated Auditing: Detects duplicates, unused subscriptions, and categorization errors automatically
- Find Hidden Savings: Identifies wasted spend on tools you don't use - save $100s per month
- Weekly Reports: Get clear, AI-generated audit reports with actionable insights
- Multi-Platform Support: Connect QuickBooks, Xero, or Sage Accounting
- AI-Powered Categorization: Smart transaction categorization that learns your business
- Anomaly Detection: Get notified of unusual spending patterns and potential issues
- Next.js 14 (App Router)
- TypeScript
- TailwindCSS
- Supabase (Authentication & Database)
- FastAPI (Python)
- OpenAI API (GPT-4 for AI analysis)
- Supabase (PostgreSQL database)
- SendGrid (Email delivery)
- QuickBooks Online API
- Xero API
- Sage Accounting API
- Plaid (optional, for bank connections)
- Node.js 18+ and npm/yarn
- Python 3.9+
- Supabase account (free tier works)
- OpenAI API key
- SendGrid account (free tier works)
- (Optional) QuickBooks, Xero, or Sage developer accounts
AEGIS/
├── app/ # Next.js app directory
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Landing page
├── components/ # React components
│ └── ConnectAccountingButtons.tsx
├── lib/ # Utility libraries
│ └── supabase.ts # Supabase client
├── backend/ # FastAPI backend
│ ├── main.py # FastAPI app entry point
│ ├── config.py # Configuration management
│ ├── routers/ # API route handlers
│ │ ├── auth.py # Authentication routes
│ │ ├── quickbooks.py # QuickBooks integration
│ │ ├── xero.py # Xero integration
│ │ ├── sage.py # Sage integration
│ │ ├── audit.py # Audit logic
│ │ └── reports.py # Report generation
│ └── services/ # Business logic services
│ ├── ai_service.py # AI analysis
│ ├── email_service.py # Email delivery
│ └── database.py # Database operations
├── supabase/
│ └── schema.sql # Database schema
└── README.md
git clone <your-repo-url>
cd AEGIScp .env.local.example .env.localThen edit .env.local with your credentials:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
QUICKBOOKS_CLIENT_ID=your_quickbooks_client_id
QUICKBOOKS_CLIENT_SECRET=your_quickbooks_client_secret
QUICKBOOKS_REDIRECT_URI=http://localhost:3000/api/auth/quickbooks/callback
XERO_CLIENT_ID=your_xero_client_id
XERO_CLIENT_SECRET=your_xero_client_secret
XERO_REDIRECT_URI=http://localhost:3000/api/auth/xero/callback
SAGE_CLIENT_ID=your_sage_client_id
SAGE_CLIENT_SECRET=your_sage_client_secret
SAGE_REDIRECT_URI=http://localhost:3000/api/auth/sage/callback
GEMINI_API_KEY=your_gemini_api_key
SENDGRID_API_KEY=your_sendgrid_api_key
NEXT_PUBLIC_API_URL=http://localhost:8000cd backend
cp .env.example .envThen edit backend/.env with your credentials.
- Create a new project on Supabase
- Go to the SQL Editor in your Supabase dashboard
- Run the SQL script from
supabase/schema.sql - Copy your project URL and anon key to your
.env.localfile
npm installcd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtnpm run devThe frontend will be available at http://localhost:3000
cd backend
source venv/bin/activate # On Windows: venv\Scripts\activate
uvicorn main:app --reload --port 8000The backend API will be available at http://localhost:8000
You can view the API documentation at http://localhost:8000/docs
POST /api/auth/login- User loginPOST /api/auth/signup- User registrationPOST /api/auth/logout- User logoutGET /api/auth/me- Get current user
GET /api/quickbooks/connect- Initialize OAuth flowGET /api/quickbooks/callback- OAuth callbackGET /api/quickbooks/transactions- Fetch transactionsGET /api/quickbooks/vendors- Fetch vendorsPOST /api/quickbooks/disconnect- Disconnect integration
GET /api/xero/connect- Initialize OAuth flowGET /api/xero/callback- OAuth callbackGET /api/xero/transactions- Fetch transactionsGET /api/xero/contacts- Fetch contacts
GET /api/sage/connect- Initialize OAuth flowGET /api/sage/callback- OAuth callbackGET /api/sage/transactions- Fetch transactions
POST /api/audit/run- Run a complete auditGET /api/audit/status/{audit_id}- Get audit statusPOST /api/audit/detect-duplicates- Detect duplicate transactionsPOST /api/audit/detect-unused-subscriptions- Find unused subscriptions
GET /api/reports/list- List all reportsGET /api/reports/{report_id}- Get specific reportPOST /api/reports/generate- Generate new reportPOST /api/reports/{report_id}/email- Email report to user
The AI service uses OpenAI's GPT-4 to analyze transactions and provide insights:
- Duplicate Detection: Identifies duplicate charges from the same vendor
- Subscription Analysis: Finds unused or underutilized SaaS subscriptions
- Categorization: Suggests correct accounting categories for transactions
- Anomaly Detection: Flags unusual spending patterns
- Report Generation: Creates human-readable summaries with actionable insights
- All API credentials are stored securely in environment variables
- Database uses Row Level Security (RLS) policies
- OAuth 2.0 for third-party integrations
- Encrypted data transmission (HTTPS in production)
- No storage of sensitive financial data beyond what's necessary
npm run build
# Deploy to Vercel
vercel --prod- Set up Python 3.9+ environment
- Install dependencies:
pip install -r requirements.txt - Set environment variables
- Run:
uvicorn main:app --host 0.0.0.0 --port $PORT
- Connect to QuickBooks/Xero/Sage APIs
- Run expense categorization
- Detect duplicates & subscriptions
- Send weekly reports
- Basic dashboard
- Automated reconciliation
- Match invoices → transactions
- AI categorization with reasoning notes
- Daily automated audits
- Cash flow forecasting
- Anomaly detection alerts
- Missing invoice detection
- AI CFO insights
- AR/AP automation
- Tax prep assistant
- Payroll integration
- Full AI Accountant Suite
| Tier | Description | Price |
|---|---|---|
| Starter | <1,000 transactions/mo | $49/mo |
| Growth | 1,000-5,000 transactions/mo | $149/mo |
| Pro | 5,000-20,000 transactions/mo | $499/mo |
Add-on: AI CFO Insights pack (forecasting, anomaly detection) at +$99/mo
Contributions are welcome! Please feel free to submit a Pull Request.
Copyright © 2025 Aegis Accountant. All rights reserved.
For questions or support, please contact: support@aegisaccountant.com
Built with ❤️ to make accounting easy for SMBs