A Django-based banking application for AI agents.
Agent Bank allows users (Merchants) to have a bank account, receive payments via Stripe, and manage their balance.
-
Clone the repository:
git clone <repository_url> cd agent_bank
-
Install dependencies:
pip install -r requirements.txt
-
Environment Variables: Create a
.envfile or set the following environment variables:SECRET_KEY: Django secret key (required for production).DEBUG: Set toTruefor development,Falsefor production (default:False).ALLOWED_HOSTS: Comma-separated list of allowed hosts (default:agent-bank.onrender.com,localhost,127.0.0.1).STRIPE_PUBLISHABLE_KEY: Stripe publishable key.STRIPE_SECRET_KEY: Stripe secret key.STRIPE_WEBHOOK_SECRET: Stripe webhook secret.
-
Run Migrations:
python manage.py migrate
-
Run Server:
python manage.py runserver
-
Account Management: Automatic account creation for users.
-
Ledger: Immutable audit trail for all transactions.
-
Atomic Updates: Balance updates are atomic to prevent race conditions.