mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fc101c3d65ef9ef45222b9d686458bc169eeeefb
* added chatbot table with fk to workflows, added modal to deploy and delpoy to subdomain of *.simstudio.ai * fixed styling, added delete and edit routes for chatbot * use loading-agent animation for editing existing chatbot * add base_url so that we can delpoy in dev as well * fixed CORS issue, fixed password verification, can deploy chatbot and access it at subdomain. still need to fix the actual chat request to match the same format as the chat in the panel * fix: renamed chatbot to chat and changed chat to copilot * feat(chat-deploy): refactored api deploy flow * feat(chat-deploy): added chat to deploy flow * added output selector to chat deploy, deployment works and we can get a response from subdomain. need to fix UI + form submission of deploy modal but the core functionality works * add missing dependencies, fix build errors, remove old unused route * error disappeared for block output selection, need to update UI, add the ability to delete/view chat deployment, and test emails/email domain * added otp for email verification on chat deploy * feat(chat-deploy): ux improvements with chat-deploy modal * improvement(ui/ux): chat display improvement * improvement(ui/ux): deploy modal * added logging category for chat panel & chat deploy executions * improvement(ui/ux): finished chat-deploy flow * fix: deleted migrations --------- Co-authored-by: Waleed Latif <walif6@gmail.com>
Sim Studio is a powerful, user-friendly platform for building, testing, and optimizing agentic workflows.
Run
- Run on our cloud-hosted version
- Self-host
How to Self-Host
There are several ways to self-host Sim Studio:
Option 1: Docker Environment (Recommended)
# 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 Sim Studio using the provided script
docker compose up -d --build
or
./start_simstudio_docker.sh
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
Working with Local Models
To use local models with Sim Studio, follow these steps:
-
Pull Local Models
# Run the ollama_docker.sh script to pull the required models ./sim/scripts/ollama_docker.sh pull <model_name> -
Start Sim Studio with Local Models
#Start Sim Studio with local model support ./start_simstudio_docker.sh --local # or # Start Sim Studio with local model support if you have nvidia GPU docker compose up --profile local-gpu -d --build # or # Start Sim Studio with local model support if you don't have nvidia GPU docker compose up --profile local-cpu -d --build
The application will now be configured to use your local models. You can access it at http://localhost:3000/w/.
Option 2: Dev Containers
- 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
simdirectory - Run
npm run devin the terminal or use thesim-startalias
Option 3: Manual Setup
- 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)
⚠️ Important Notes:
- If
RESEND_API_KEYis 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
Tech Stack
- 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
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Made with ❤️ by the Sim Studio Team
Description
Open-source platform to build and deploy AI agent workflows.
agent-workflowagentic-workflowagentsaiaiagentsanthropicartificial-intelligenceautomationchatbotdeepseekgeminilow-codenextjsno-codeopenairagreacttypescript
Readme
Apache-2.0
990 MiB
Languages
TypeScript
77%
MDX
20.8%
JavaScript
1.9%
CSS
0.1%
