Similar to WordPress, made for AI Native Applications β Build, deploy, and manage AI-powered applications without the complexity.
Agentbase is an open-source platform that brings the WordPress model to AI development: plugins, themes, a marketplace, and a hosted option β everything you need to launch AI products fast.
Homepage β The main landing page of a running Agentbase instance
Application Dashboard β Managing AI applications, plugins, and configurations
agentbase/
βββ packages/
β βββ core/ # NestJS API (PostgreSQL + MongoDB)
β βββ frontend/ # Next.js 14 (App Router + Tailwind)
β βββ ai-service/ # FastAPI (AI provider integrations + SSE streaming)
β βββ installer/ # Self-hosted CLI installer (Commander + Inquirer)
β βββ shared/ # Shared TypeScript types
β βββ plugins/ # Plugin SDK + examples
β βββ themes/ # Theme SDK + starter themes
βββ docs/ # Documentation site (Nextra)
βββ docker-compose.yml # Local dev databases
βββ docker-compose.prod.yml # Production stack
βββ .env.example # Environment template
| Layer | Technology |
|---|---|
| Core API | Node.js + NestJS + TypeORM |
| Frontend | Next.js 14 + React + Tailwind CSS |
| AI Service | Python + FastAPI |
| SQL Database | PostgreSQL 16 |
| Document DB | MongoDB 7 |
| Cache | Redis 7 |
| Infrastructure | Docker, Nginx, DigitalOcean Kubernetes (DOKS) |
| License | GPL-3.0 |
- Node.js 20+
- Python 3.11+
- Docker & Docker Compose
- pnpm 9+
# Clone the repo
git clone https://github.com/agentaflow/agentbase.git
cd agentbase
# Copy environment variables
cp .env.example .env
# Start databases
docker compose up -d
# Install dependencies
pnpm install
# Start all services
pnpm devServices will be available at:
- Frontend: http://localhost:3000
- Core API: http://localhost:3001
- API Docs: http://localhost:3001/api/docs
- AI Service: http://localhost:8000
pnpm dev:core # NestJS API only
pnpm dev:frontend # Next.js frontend only
pnpm dev:ai # FastAPI AI service onlyFor production self-hosted deployments, use the CLI installer:
cd packages/installer
pnpm install
npx ts-node src/cli.ts check # Verify system requirements
npx ts-node src/cli.ts install # Interactive installation wizard
npx ts-node src/cli.ts status # Check service status
npx ts-node src/cli.ts update # Update to latest version- Multi-Provider Support β OpenAI (GPT-4, GPT-4o, GPT-3.5), Anthropic (Claude), Google Gemini (2.0 Flash, 1.5 Pro, 1.5 Flash), HuggingFace (Inference API)
- Model Configuration Dashboard β Per-app model configs with provider selection, parameter tuning (temperature, max tokens, top-p), and system prompts
- A/B Testing β Model config versioning with traffic splitting and performance metrics tracking
- Streaming Responses β Server-Sent Events (SSE) for real-time token-by-token output
- Conversation Management β Create, continue, archive conversations per application
- Prompt Templates β Reusable templates with
{{variable}}substitution - Knowledge Base (RAG) β Vector-based semantic search with OpenAI embeddings, document chunking, and context retrieval
- WordPress-Style Hooks β Actions and filters with priority-based execution
- Plugin SDK β TypeScript interfaces and utilities for plugin development
- Advanced Capabilities β Database access (scoped key-value store), custom API endpoints, cron scheduling, webhooks, admin UI extensions, inter-plugin event bus
- Lifecycle Management β Install, activate, deactivate, uninstall with dependency resolution
- Marketplace β Browse, search, rate, and review plugins and themes with 8 categories
- Plugin Versioning β Multiple versions per plugin with changelogs, compatibility checks, and checksums
- Developer Portal β Submit plugins/themes for marketplace review, admin approval workflow
- Download Tracking β Automatic install/download counters
- Per-App Installation β Install and configure plugins independently per application
- Theme Engine β CSS custom property generation with 4 built-in presets
- White-Label Branding β Custom colors, fonts, logos, email templates, and CSS injection
- Custom Domains β DNS verification (CNAME/TXT), SSL tracking, domain settings
- Embeddable Widget β Standalone JavaScript widget for any website with theme support
- Organizations β Team creation with member management (Owner/Admin/Member/Viewer roles)
- SSO Integration β SAML 2.0 and OIDC support with auto-provisioning
- Notifications β In-app notification system with real-time updates
- Audit Logging β Comprehensive audit trail for all platform actions
- Stripe Integration β 4 subscription tiers (Free, Starter $29/mo, Pro $99/mo, Enterprise $499/mo)
- Usage Metering β Token and message quotas with enforcement before AI calls
- Webhooks β 11 event types with HMAC-SHA256 signing and delivery tracking
- Data Export/Import β JSON and CSV export, bulk import with error handling
- OAuth2 β GitHub and Google OAuth with automatic account linking
- JWT + Refresh Tokens β Secure authentication with token rotation
- API Keys β Create, scope, rate-limit, and revoke API keys per application
- Role-Based Access Control β Admin, Developer, User roles with permission guards
- Security Hardening β Helmet middleware, CORS, rate limiting, HSTS, CSP headers
- Usage Analytics β Track conversations, messages, tokens, costs per application
- Event Tracking β MongoDB-backed event stream (message_sent, widget_loaded, api_call, error)
- System Health β Real-time service checks (PostgreSQL, MongoDB, Redis, AI Service)
- Platform Statistics β Users, applications, subscriptions, resource usage
- Self-Hosted Installer CLI β Interactive installation wizard (
agentbase install) with system requirements checking, database setup, admin account creation, and.envgeneration - Update Mechanism β
agentbase updatewith automatic backups, migration running, and dependency updates - System Status β
agentbase statusshows version, service health, and Docker container status - Docker Production Stack β Multi-stage builds with Alpine images, health checks, non-root user
- Nginx Reverse Proxy β SSL termination, rate limiting, security headers, SSE streaming
- Email Service β SMTP transport with HTML templates (welcome, password reset, usage warnings)
- File Uploads β S3-compatible storage (AWS S3, MinIO, DigitalOcean Spaces, Cloudflare R2)
- Automated Backups β PostgreSQL and MongoDB backup scripts with 7-day retention
- Self-Hosting Guide β Complete installation and configuration instructions
- Plugin Development β Getting started, SDK reference, advanced capabilities, publishing guide
- AI Models Guide β Provider configuration, model settings, A/B testing
- API Reference β Full marketplace and model configs API documentation
- Examples Gallery β AI chatbot, plugin with database, custom theme, embeddable widget, RAG pipeline
POST /api/auth/registerβ Register new userPOST /api/auth/loginβ LoginGET /api/auth/meβ Get current userGET /api/auth/githubβ OAuth: Redirect to GitHubGET /api/auth/github/callbackβ OAuth: GitHub callbackGET /api/auth/googleβ OAuth: Redirect to GoogleGET /api/auth/google/callbackβ OAuth: Google callbackGET /api/auth/providersβ List available OAuth providersPOST /api/auth/change-passwordβ Change passwordPOST /api/auth/password-reset/requestβ Request password reset
POST /api/applicationsβ Create applicationGET /api/applicationsβ List user's applicationsGET /api/applications/:idβ Get applicationPUT /api/applications/:idβ Update applicationDELETE /api/applications/:idβ Delete application
GET /api/pluginsβ List marketplace pluginsPOST /api/pluginsβ Create pluginPUT /api/plugins/:id/publishβ Publish pluginPOST /api/applications/:appId/pluginsβ Install pluginPUT /api/applications/:appId/plugins/:id/activateβ Activate pluginPUT /api/applications/:appId/plugins/:id/deactivateβ Deactivate pluginDELETE /api/applications/:appId/plugins/:idβ Uninstall pluginALL /api/plugins/:pluginId/endpoints/*β Dynamic plugin custom endpoints
GET /api/marketplace/plugins/browseβ Browse pluginsGET /api/marketplace/plugins/featuredβ Featured pluginsGET /api/marketplace/plugins/categoriesβ Plugin categoriesGET /api/marketplace/plugins/:idβ Plugin detail with rating statsGET /api/marketplace/plugins/:id/reviewsβ Plugin reviewsPOST /api/marketplace/plugins/:id/reviewsβ Submit reviewGET /api/marketplace/plugins/:id/versionsβ Plugin versionsPOST /api/marketplace/plugins/:id/versionsβ Publish new versionGET /api/marketplace/themes/browseβ Browse themesGET /api/marketplace/themes/featuredβ Featured themesGET /api/marketplace/themes/:idβ Theme detailGET /api/marketplace/themes/:id/reviewsβ Theme reviewsPOST /api/marketplace/themes/:id/reviewsβ Submit theme reviewPOST /api/marketplace/submit/pluginβ Developer: submit pluginPOST /api/marketplace/submit/themeβ Developer: submit themeGET /api/marketplace/admin/plugins/pendingβ Admin: pending pluginsPOST /api/marketplace/admin/plugins/:id/approveβ Admin: approve pluginPOST /api/marketplace/admin/plugins/:id/rejectβ Admin: reject pluginGET /api/marketplace/admin/themes/pendingβ Admin: pending themesPOST /api/marketplace/admin/themes/:id/approveβ Admin: approve themePOST /api/marketplace/admin/themes/:id/rejectβ Admin: reject theme
GET /api/model-configs?applicationId=β List model configsPOST /api/model-configsβ Create model configGET /api/model-configs/:idβ Get model configPUT /api/model-configs/:idβ Update model configDELETE /api/model-configs/:idβ Delete model configPATCH /api/model-configs/:id/defaultβ Set default modelGET /api/model-configs/:id/versionsβ List A/B test versionsPOST /api/model-configs/:id/versionsβ Create A/B test version
POST /api/promptsβ Create prompt templateGET /api/prompts?applicationId=β List templates for appGET /api/prompts/:idβ Get prompt templatePUT /api/prompts/:idβ Update prompt templateDELETE /api/prompts/:idβ Delete prompt templatePUT /api/prompts/:id/defaultβ Set as default templatePOST /api/prompts/renderβ Render template with variables
GET /api/themesβ List themesPOST /api/themesβ Create themePUT /api/applications/:id/themeβ Set application themePUT /api/applications/:id/theme/customizeβ Customize theme
GET /api/ai/providersβ List AI providersPOST /api/ai/conversationsβ Create conversationPOST /api/ai/conversations/:id/messagesβ Send message (standard)POST /api/ai/conversations/:id/streamβ Send message (SSE streaming)GET /api/ai/conversations/by-app/:appIdβ List conversationsDELETE /api/ai/conversations/:idβ Archive conversation
Agentbase supports multiple AI providers out of the box:
- OpenAI β GPT-4, GPT-4o, GPT-3.5 Turbo
- Anthropic β Claude Sonnet 4.5, Claude Haiku 4.5
- Google Gemini β Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash
- HuggingFace β Any model via the Inference API (Mistral, Llama, Falcon, etc.)
Set your API keys in .env and Agentbase handles provider routing, rate limiting, and conversation management automatically.
See CHANGELOG.md for a detailed history of changes across all phases.
See CONTRIBUTING.md for development guidelines.
GNU General Public License v3.0 β see LICENSE
Built by AgentaFlow

