Sim Studio is a powerful, user-friendly platform for building, testing, and optimizing agentic workflows.
- Run on our cloud-hosted version
- Self-host
Important: Start by forking this repository by clicking the "Fork" button at the top right of this page. This creates your own copy of the repository under your GitHub account.
Note: Ensure you have an editor, git, npm, and Docker (if you're not setting up manually) installed on your system.
There are several ways to self-host Sim Studio:
# Clone your forked repository
git clone https://github.com/YOUR_USERNAME/sim.git
cd sim
# Create environment file and update with required environment variables (BETTER_AUTH_SECRET)
cp sim/.env.example sim/.env
# Start the Docker environment
docker compose up -d
After running these commands:
-
Access the Application:
- Open http://localhost:3000/w/ in your browser
- The
/w/
path is where the main workspace interface is located
-
Useful Docker Commands:
# View application logs docker compose logs -f simstudio # Access PostgreSQL database docker compose exec db psql -U postgres -d simstudio # Stop the environment docker compose down # Rebuild and restart (after code changes) docker compose up -d --build
- Open VS Code or your favorite VS Code fork (Cursor, Windsurf, etc.)
- Install the Remote - Containers extension
- Open the project in your editor
- Click "Reopen in Container" when prompted
- The environment will automatically be set up in the
sim
directory - Run
npm run dev
in the terminal or use thesim-start
alias
- Install Dependencies
# Clone the repository
git clone https://github.com/YOUR_USERNAME/sim.git
cd sim/sim
# Install dependencies
npm install
- Set Up Environment
# Copy .env.example to .env
cp .env.example .env
# Configure your .env file with the required environment variables:
# - Database connection (PostgreSQL)
# - Authentication settings (Better-Auth Secret)
- If
RESEND_API_KEY
is not set, verification codes for login/signup will be logged to the console. - You can use these logged codes for testing authentication locally.
- For production environments, you should set up a proper email provider.
- Set Up Database
# Push the database schema
npx drizzle-kit push
- Start Development Server
# Start the development server
npm run dev
- Open http://localhost:3000 in your browser
- Framework: Next.js (App Router)
- Database: PostgreSQL with Drizzle ORM
- Authentication: Better Auth
- UI: Shadcn, Tailwind CSS
- State Management: Zustand
- Flow Editor: ReactFlow
- Docs: Fumadocs
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the Sim Studio Team