_ ____ _ _ ___ __ _ ___ ___ ___ / \ / ___|| || | / _ \ / _| |/ _ \ / _ \ / _ \ / _ \ \___ \| || |_| | | | |_| | | | | | | | | | | / ___ \ ___) |__ _| |_| | _| | |_| | |_| | |_| | /_/ \_\____/ |_| \___/|_| |_|\___/ \___/ \___/
The Open-Source AI Agent Platform β Build, Deploy, and Orchestrate Intelligent Agents at Scale
Introduction β’ Features β’ Architecture β’ Tech Stack β’ Getting Started β’ Usage β’ Structure β’ Roadmap
AgentForge is a comprehensive, open-source platform for building, deploying, and orchestrating AI agents. Think of it as LangChain's flexibility meets CrewAI's team-based orchestration with n8n's visual workflow builder β all wrapped in a production-grade, full-stack application.
Unlike fragmented solutions where you stitch together LLM providers, memory systems, tool registries, and UIs, AgentForge provides a unified platform with:
- A visual agent builder for designing complex agent behaviors without coding
- Multi-LLM orchestration across OpenAI, Anthropic, Google, and local models
- Team-based collaboration where agents delegate, debate, and coordinate
- Extensible tool ecosystem with a built-in marketplace
- Enterprise-grade security with role-based access control and audit logging
Whether you're building a customer support bot, an automated code reviewer, a research assistant, or a complex multi-agent workflow, AgentForge gives you the foundation to go from idea to production in minutes.
- π§ Agent Creation Engine β Design agents with custom personas, goals, constraints, and knowledge bases
- π₯ Agent Teams β Form collaborative teams with role-based delegation (leader, researcher, executor, reviewer)
- πΎ Persistent Memory β Short-term (conversation) and long-term (vector store) memory with automatic RAG
- π§ Tool System β Extensible tool registry with 50+ built-in tools and MCP (Model Context Protocol) support
- π Agent Marketplace β Discover, install, and publish pre-built agents, tools, and templates
- π Visual Workflow Builder β Drag-and-drop workflow design with branching, loops, and conditions
- π€ Multi-LLM Support β OpenAI, Anthropic Claude, Google Gemini, Mistral, Groq, Ollama, and more
- π GitHub Integration β Code review automation, issue triage, PR analysis, and repo management
- π Browser Automation β Headless browser agent for web scraping, testing, and automation
- π¬ Slack Integration β Deploy agents directly to your Slack workspace
- π REST API β Comprehensive API for programmatic control of all platform features
- π Real-time Dashboard β Monitor agent activity, performance metrics, and usage analytics
- π Enterprise Security β RBAC, SSO, audit logs, encryption at rest, and SOC 2 compliance ready
- π¦ Containerized Deployment β Docker Compose setup for one-command deployment
- π§ͺ Testing Framework β Built-in agent testing sandbox with scenario simulation
- π Webhook Support β Trigger and receive webhooks for external system integration
AgentForge follows a modular, microservices-inspired architecture built on a monorepo structure with clear separation of concerns:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLIENT LAYER β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ ββββββββββββββββββββββ β
β β Next.js 15 β β Agent CLI β β Mobile App β β External API β β
β β (Web App) β β (Terminal) β β (Future) β β Clients β β
β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββββββ¬ββββββββββ β
βββββββββββΌβββββββββββββββββΌβββββββββββββββββΌββββββββββββββββββββββΌββββββββββββ
β β β β
βββββββββββΌβββββββββββββββββΌβββββββββββββββββΌββββββββββββββββββββββΌββββββββββββ
β βΌ βΌ βΌ βΌ β
β API GATEWAY / tRPC ROUTER β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β β Agents β β Teams β βWorkflows β β Memory β β Tools β β β
β β β Service β β Service β β Service β β Service β β Service β β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β β β Auth β βMarketplaceβ β Queue β βMonitor β β Webhook β β β
β β β Service β β Service β β Service β β Service β β Service β β β
β β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββ
β βΌ β
β DATA & INFRASTRUCTURE β
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββββββ β
β βPostgreSQLβ β Redis β β BullMQ β β S3/ β β Vector DB β β
β β(Primary) β β (Cache) β β (Queue) β β Local β β (pgvector) β β
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Type Safety End-to-End β tRPC ensures typesafe communication from database to UI
- Event-Driven Architecture β BullMQ handles async agent execution, webhooks, and notifications
- Pluggable Providers β LLM providers, vector stores, and file storage are all swappable
- Stateless Services β Horizontal scaling ready with shared-nothing design
- Observability First β OpenTelemetry instrumentation across all services
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | Next.js 15 (App Router), React 19, Tailwind CSS, Radix UI | Web application UI |
| Type Safety | TypeScript (Strict), tRPC, Zod | End-to-end type safety |
| Backend | Express.js, tRPC, Node.js 20+ | API and server logic |
| Database | PostgreSQL 15+, Drizzle ORM, pgvector | Primary data store & vector embeddings |
| Cache | Redis 7+ (Upstash/ioredis) | Session cache, rate limiting, pub/sub |
| Queue | BullMQ | Async job processing & scheduling |
| Auth | NextAuth.js v5, JWT, OAuth | Authentication & authorization |
| Storage | Local filesystem, S3-compatible (AWS, R2, MinIO) | File & asset storage |
| LLM Clients | AI SDK (Vercel), LangChain, OpenRouter | Multi-provider LLM integration |
| Monitoring | OpenTelemetry, Sentry, Pino | Logging, tracing, error tracking |
| Testing | Vitest, Playwright, MSW | Unit, E2E, and API mocking |
| CI/CD | GitHub Actions, Docker, Docker Compose | Build, test, deploy |
| Deployment | Docker, Vercel, Railway, Render, self-hosted | Platform deployment |
Screenshots will be available in the
/apps/web/public/screenshotsdirectory once generated.
| Dashboard | Agent Builder | Workflow Editor |
|---|---|---|
![]() |
![]() |
![]() |
| Chat Interface | Marketplace | Analytics |
![]() |
![]() |
![]() |
- Node.js 20.x or later (LTS recommended)
- PostgreSQL 15+ (with pgvector extension)
- Redis 7+
- Docker (optional, for containerized development)
- pnpm (recommended) or npm
git clone https://github.com/sudarshandev-llm/agent-forge-prototype.git
cd agent-forge-prototypepnpm installcp .env.example .env.localEdit .env.local with your configuration:
# Database
DATABASE_URL="postgresql://user:password@localhost:5432/agentforge"
# Redis
REDIS_URL="redis://localhost:6379"
# Auth
AUTH_SECRET="your-secret-key"
AUTH_GITHUB_ID="your-github-oauth-app-id"
AUTH_GITHUB_SECRET="your-github-oauth-app-secret"
# LLM API Keys
OPENAI_API_KEY="sk-..."
ANTHROPIC_API_KEY="sk-ant-..."
GOOGLE_API_KEY="..."pnpm db:migratepnpm db:seedpnpm devVisit http://localhost:3000 to access AgentForge.
import { AgentForge } from '@agentforge/core';
const forge = new AgentForge();
const agent = await forge.agents.create({
name: 'Code Reviewer',
persona: 'Senior software engineer with expertise in TypeScript and React',
model: 'gpt-4o',
tools: ['github', 'code-analysis', 'linting'],
memory: {
type: 'conversation',
ttl: 3600,
},
});
await agent.run('Review the latest PR in the main repository');Create visual workflows in the built-in editor, or define them programmatically:
const workflow = await forge.workflows.create({
name: 'Bug Triage Pipeline',
steps: [
{ agent: 'triage-agent', action: 'classify_issue' },
{ agent: 'research-agent', action: 'find_similar_bugs' },
{ agent: 'reviewer-agent', action: 'assess_severity' },
{ agent: 'assigner-agent', action: 'assign_developer' },
],
onComplete: {
webhook: 'https://hooks.slack.com/services/...',
},
});# Install an agent from the marketplace
npx agentforge marketplace install agent-research-assistant
# Publish your own agent
npx agentforge marketplace publishagentforge/
βββ apps/
β βββ web/ # Next.js 15 web application
β β βββ app/ # App Router pages & API routes
β β βββ components/ # Shared React components
β β βββ lib/ # Client-side utilities
β β βββ public/ # Static assets & screenshots
β βββ api/ # Express API server
β β βββ src/
β β β βββ controllers/ # Route controllers
β β β βββ services/ # Business logic
β β β βββ middleware/ # Auth, rate limiting, validation
β β β βββ routes/ # API route definitions
β β βββ test/ # API tests
β βββ worker/ # BullMQ worker for async processing
β βββ src/
β β βββ jobs/ # Job processors
β β βββ queues/ # Queue definitions
β βββ test/ # Worker tests
βββ packages/
β βββ core/ # Core agent engine & abstractions
β β βββ src/
β β β βββ agents/ # Agent creation & management
β β β βββ teams/ # Team orchestration & delegation
β β β βββ memory/ # Memory providers (conversation, vector)
β β β βββ tools/ # Tool registry & built-in tools
β β β βββ llm/ # LLM provider adapters
β β βββ test/ # Core unit & integration tests
β βββ database/ # Drizzle ORM schema & migrations
β β βββ schema/ # Database table definitions
β β βββ migrations/ # Migration files
β βββ api/ # tRPC routers & middleware
β β βββ routers/ # tRPC route definitions
β β βββ middleware/ # Auth, rate limiting, validation
β βββ shared/ # Shared types, utilities, configs
β βββ types/ # Shared TypeScript types
β βββ utils/ # Shared utilities
β βββ config/ # Shared configuration
βββ infra/
β βββ docker/ # Docker & Docker Compose configs
β βββ github/ # GitHub-specific infrastructure configs
βββ scripts/ # Build & maintenance scripts
βββ docs/ # Documentation
βββ assets/ # Logos, branding, media
βββ .github/ # GitHub templates & workflows
βββ turbo.json # Turborepo configuration
βββ package.json # Root package configuration
βββ tsconfig.base.json # Base TypeScript configuration
AgentForge exposes a comprehensive REST and tRPC API. Key endpoints:
| Endpoint | Method | Description |
|---|---|---|
/api/agents |
CRUD | Manage agents (create, read, update, delete) |
/api/agents/:id/run |
POST | Execute an agent with input |
/api/teams |
CRUD | Manage agent teams |
/api/workflows |
CRUD | Manage workflows |
/api/workflows/:id/execute |
POST | Trigger a workflow execution |
/api/tools |
GET | List available tools |
/api/marketplace/packages |
GET | Browse marketplace |
/api/auth/* |
Various | Authentication endpoints |
Full API documentation is available in the /docs directory.
We welcome contributions from the community! See our Contributing Guide for detailed information.
Quick steps:
- Fork the repository
- Create a feature branch (
git checkout -b feat/amazing-feature) - Commit your changes (
git commit -m "feat: add amazing feature") - Push to the branch (
git push origin feat/amazing-feature) - Open a Pull Request
Please read our Code of Conduct before contributing.
- Agent creation and management engine
- Multi-LLM provider support (OpenAI, Anthropic, Google, Groq)
- Visual workflow builder
- Tool system with MCP protocol support
- Agent marketplace MVP
- GitHub integration
- Docker deployment
- [π] Real-time agent collaboration and communication
- [π] Advanced team orchestration (debate, voting, consensus)
- [π] Enterprise SSO (SAML, OIDC, LDAP)
- [π] Audit logging and compliance reporting
- [π] Performance optimization and caching improvements
- [π] Agent analytics and cost tracking dashboard
- [π ] Mobile companion app (React Native)
- [π ] Custom model fine-tuning pipeline
- [π ] Agent-to-agent communication protocol
- [π ] Multi-tenant organization support with billing
- [π ] Advanced RAG with hybrid search
- [π ] Plugin SDK for third-party developers
- [π ] Agent monitoring and observability suite
- [π ] Auto-scaling and self-healing infrastructure
- [π ] Compliance certifications (SOC 2, GDPR)
- [π ] Enterprise support tier
- [π ] On-premise deployment option
- [π ] Community governance model
AgentForge is MIT licensed. See the LICENSE file for details.
Want to become a contributor? Check our Contributing Guide to get started.
- GitHub Issues β Report bugs or request features
- Documentation β See the
/docsdirectory - Email β support@agentforge.dev
AgentForge stands on the shoulders of giants. Special thanks to:
- LangChain β For pioneering the LLM application framework concept
- CrewAI β For inspiring agent team orchestration patterns
- n8n β For the visual workflow builder paradigm
- Next.js β For the incredible React framework
- tRPC β For end-to-end typesafe APIs
- Drizzle ORM β For the lightweight, type-safe ORM
- BullMQ β For robust job queue management
- Vercel AI SDK β For streamlined LLM integrations
- All Contributors β Every contributor who helps make this project better
When setting up this repository on GitHub, add these topics:
ai-agentsagent-frameworkllmnextjstypescriptopen-sourcemulti-agentworkflow-automationnodejsdocker
Made with β€οΈ by the Team alum Team
AgentForge β Build the future of intelligent automation.





