Quickstart
Installation
pip install agentflow
Configuration
Copy the example environment file and set your admin key:
cp .env.example .env
Required environment variables:
| Variable | Description |
|---|---|
| AGENTFLOW_ADMIN_KEY | Admin API key for authentication |
| AGENTFLOW_DATABASE_URL | Database connection string |
| STRIPE_SECRET_KEY | Stripe API key for billing |
| STRIPE_PRICE_STARTER | Stripe price ID for Starter tier |
| STRIPE_PRICE_PRO | Stripe price ID for Pro tier |
| STRIPE_PRICE_ENTERPRISE | Stripe price ID for Enterprise tier |
Running (Development)
In-memory mode for testing:
AGENTFLOW_ADMIN_KEY=your-key uvicorn agentflow.api.server:create_app --factory --host 0.0.0.0 --port 8100
Running (Production)
With PostgreSQL persistence:
AGENTFLOW_ADMIN_KEY=your-key uvicorn agentflow.api.db_app:create_persistent_app --factory --host 127.0.0.1 --port 8100
Health Check
curl http://localhost:8100/health
Systemd Deployment
sudo cp agentflow.service /etc/systemd/system/
sudo systemctl enable --now agentflow