Quick Start Guide
Get Genbase up and running quickly using Docker.
Quick Start Guide
This guide will walk you through the fastest way to get a local Genbase instance running using Docker and Docker Compose. This is the recommended method for most users trying out Genbase.
Prerequisites
Before you begin, ensure you have the following installed on your system:
- Docker: Install Docker
- Docker Compose: Usually included with Docker Desktop. Verify with
docker-compose --version
. - Git: Install Git (for cloning the repository).
- A Text Editor: For editing configuration files.
Setup and Run
1. Clone the Repository
Open your terminal and clone the Genbase monorepo:
2. Configure Environment Variables
Genbase uses .env
files for configuration. Templates are provided, but you must create and edit the actual files.
-
Root
.env
: Controls database credentials, admin user, and potentially shared settings.Important: Edit .env
Open the newly created
.env
file in your text editor. You must change at least the following:POSTGRES_PASSWORD
: Set a strong password for the database.ADMIN_PASSWORD
: Set a strong password for the initial superuser account (ADMIN_USERNAME
is usually 'admin').- LLM Keys: Add at least one API key (e.g.,
OPENAI_API_KEY
,ANTHROPIC_API_KEY
) for the AI models to function. AUTH_SECRET
: Generate a strong, unique secret key (e.g., usingopenssl rand -hex 32
) for securing authentication tokens.
-
Engine & Studio
.env
(Optional but Recommended): Docker Compose will primarily use the root.env
, but local scripts might use these. Create them from templates if they exist:Note: The
VITE_ENGINE_URL
instudio/.env
should typically remainhttp://localhost:8000
for the default Docker setup.
3. Build Docker Images (Optional)
While docker-compose up
will build images if they don't exist, you can build them explicitly first:
4. Start Services
Use the provided script to start all services (Database, Engine, Studio) in detached mode:
This command will:
- Pull necessary base images.
- Build the Engine and Studio images (if not already built).
- Create and start the containers defined in
docker/docker-compose.yml
. - Set up the necessary network and volumes.
5. Verify Services
Wait a minute or two for the services to initialize.
- Studio (Frontend): Open your web browser and navigate to
http://localhost:5173
. You should see the Genbase Studio login page. - Engine (Backend API): You can check the API documentation (Swagger UI) at
http://localhost:8000/docs
.
Troubleshooting
If services don't start correctly, check the logs:
Look for database connection errors, missing API keys, or build failures. Ensure you edited the .env
file correctly.
First Login
- Go to the Genbase Studio URL:
http://localhost:5173
. - Use the
ADMIN_USERNAME
andADMIN_PASSWORD
you configured in the root.env
file to log in. - You should now have access to the Genbase Studio interface.
Stopping Genbase
To stop all the running Docker containers managed by the script:
This will stop and remove the containers, but your data stored in Docker volumes (like the database) will persist.
Next Steps
Congratulations! You have a running Genbase instance. Now you can explore:
- User Guide: Learn how to navigate the Studio, manage projects and modules, and interact with agents.
- Install a Kit: Browse the registry (if configured) or manually upload a Kit to start adding capabilities.
- Create a Module: Instantiate a Kit into a runnable Module within a project.
- Concepts: Dive deeper into the core ideas behind Genbase.