Prerequisites
Before you begin, make sure you have the following installed on your machine:Docker & Docker Compose
Required for running PostgreSQL, Redis, and containerized services.Install Docker
Node.js 22+
Required for the Next.js frontend and monorepo tooling.Install Node.js
Python 3.11+
Required for the FastAPI backend and plugin development.Install Python
Git
Required for cloning the repository and managing submodules.Install Git
Docker is essential. The platform uses Docker Compose to run PostgreSQL (with pgvector), Redis, and other infrastructure services. Make sure the Docker daemon is running before proceeding.
Installation
Initialize Submodules
The repository uses Git submodules for the Plugin SDK and official plugins. Initialize them:
Start the Platform
Launch the entire platform with a single command:This command performs the following:
- Starts PostgreSQL (with pgvector extension) and Redis via Docker Compose
- Runs database migrations with Alembic
- Starts the FastAPI backend on port 8000
- Starts the Next.js frontend on port 3000
Verify the Installation
Once the startup completes, open these URLs in your browser:
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:3000 | Visual workflow editor, chat interface, and admin dashboard |
| Backend API | http://localhost:8000 | FastAPI server |
| API Documentation | http://localhost:8000/api/docs | Interactive Swagger UI for all REST endpoints |
What Happens During Startup
When you runnpm run start, the platform orchestrates several services:
- PostgreSQL stores all application data including workspaces, workflows, knowledge base documents, and vector embeddings (via pgvector)
- Redis handles caching, session management, and Celery task queue brokering
- FastAPI Backend serves the REST API, manages workflow execution through LangGraph, and coordinates AI provider calls
- Next.js Frontend provides the visual workflow editor, chat interface, knowledge base management, and administration UI
First Steps After Launch
Once the platform is running, follow these steps to build and test your first AI agent:Create a Workspace
Open http://localhost:3000 in your browser. You will be prompted to create your first Workspace. A workspace is the top-level isolation unit for multi-tenancy — all your applications, knowledge bases, and settings live inside a workspace.
Configure an AI Model Provider
Navigate to Settings and add at least one AI model provider API key. For example:
You can configure multiple providers (OpenAI, Anthropic, Azure, Ollama, etc.) and select different models per workflow node. For local models, set up Ollama and point to
http://localhost:11434.Create an Application
Click New Application and choose an application type:
For this quickstart, select Workflow to get the full visual editor experience.
| Type | Description |
|---|---|
| Chat | Simple conversational agent with a chat interface |
| Workflow | Visual workflow with multi-step processing and branching logic |
| Channel | Agent deployed to an external messaging platform (Slack, Discord, etc.) |
Build a Workflow
The visual workflow editor opens with a blank canvas. Build your first workflow:
- Add a Start node — This is the entry point that receives user input
- Add an AI Agent node — Drag it onto the canvas and connect it to the Start node
- Configure the AI Agent — Select a model (e.g., GPT-4o), set the system prompt, and choose an agent strategy (Standard, CoT, ReAct, etc.)
- Add an End node — Connect it to the AI Agent node to return the response
- Save the workflow
The workflow editor supports 18+ node types including Condition, Loop, Search Knowledge, HTTP Request, Code Executor, Variable Aggregator, and more. Explore the Node Types documentation for details.
Optional: Add a Knowledge Base
To give your agent access to your own documents:Create a Knowledge Base
Navigate to Knowledge Base and click New Knowledge Base. Give it a name and description.
Upload Documents
Upload PDF, DOCX, TXT, or Markdown files. The platform automatically:
- Splits documents into chunks
- Generates vector embeddings
- Indexes for both semantic (vector) and keyword (BM25) search
Environment Variables
For advanced configuration, you can customize the platform by setting environment variables. Key variables include:See the Environment Variables reference for the full list of configurable options.
Troubleshooting
Docker containers fail to start
Docker containers fail to start
Make sure Docker Desktop is running and has sufficient resources allocated (at least 4 GB RAM recommended). Check container logs with:
Port 3000 or 8000 is already in use
Port 3000 or 8000 is already in use
Stop any services using those ports, or modify the port configuration in the Docker Compose file and environment variables.
Database migration errors
Database migration errors
If migrations fail, you can reset the database and re-run:
Frontend cannot connect to backend
Frontend cannot connect to backend
Ensure the backend is running on port 8000 and the frontend environment is configured to point to
http://localhost:8000. Check the browser console for CORS or network errors.