|
7 | 7 |
|
8 | 8 | <p align="center"> |
9 | 9 | <a href="https://deepwiki.com/simstudioai/sim" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Ask-DeepWiki-E6E6E6?labelColor=C3C3C3&color=E6E6E6" alt="Ask DeepWiki"></a> |
10 | | - <a href="https://cursor.com/link/prompt?text=Help%20me%20set%20up%20Sim%20locally.%20Follow%20these%20steps%3A%0A%0A1.%20First%2C%20verify%20Docker%20is%20installed%20and%20running%3A%0A%20%20%20docker%20--version%0A%20%20%20docker%20info%0A%0A2.%20Clone%20the%20repository%3A%0A%20%20%20git%20clone%20https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim.git%0A%20%20%20cd%20sim%0A%0A3.%20Generate%20required%20secrets%20%28the%20stack%20will%20not%20start%20without%20them%29%3A%0A%20%20%20cat%20%3E%20.env%20%3C%3C%20EOF%0A%20%20%20BETTER_AUTH_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20ENCRYPTION_KEY%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20INTERNAL_API_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20CRON_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20POSTGRES_PASSWORD%3D%24%28openssl%20rand%20-hex%2024%29%0A%20%20%20EOF%0A%0A4.%20Start%20the%20services%20with%20Docker%20Compose%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20up%20-d%0A%0A5.%20Wait%20for%20all%20containers%20to%20be%20healthy%20%28this%20may%20take%201-2%20minutes%29%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20ps%0A%0A6.%20Verify%20the%20app%20is%20accessible%20at%20http%3A%2F%2Flocalhost%3A3000%0A%0AIf%20there%20are%20any%20errors%2C%20help%20me%20troubleshoot%20them.%20Common%20issues%3A%0A-%20Port%203000%20or%203002%20already%20in%20use%0A-%20Docker%20not%20running%0A-%20Insufficient%20memory%20%28needs%2012GB%2B%20RAM%29%0A%0AFor%20local%20AI%20models%20with%20bundled%20Ollama%2C%20add%20OLLAMA_URL%3Dhttp%3A%2F%2Follama%3A11434%20to%20.env%2C%20then%20use%20one%20of%20these%20instead%20of%20step%204%20%28gpu%20needs%20an%20NVIDIA%20GPU%29%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20gpu%20up%20-d%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20cpu%20up%20-d%0APull%20the%20starter%20model%20once%20Ollama%20is%20running%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20setup%20run%20--rm%20model-setup%0AThen%20check%20status%20in%20step%205%20with%20the%20profile%20you%20started%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20gpu%20ps%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20cpu%20ps"><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-E6E6E6?logo=cursor&logoColor=1A1A1A&labelColor=C3C3C3&color=E6E6E6" alt="Set Up with Cursor"></a> |
| 10 | + <a href="https://cursor.com/link/prompt?text=Help%20me%20self-host%20Sim.%20Run%20npx%20sim-setup%2C%20and%20use%20https%3A%2F%2Fdocs.sim.ai%2Fplatform%2Fself-hosting%2Fdocker%20to%20fix%20anything%20that%20fails."><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-E6E6E6?logo=cursor&logoColor=1A1A1A&labelColor=C3C3C3&color=E6E6E6" alt="Set Up with Cursor"></a> |
11 | 11 | </p> |
12 | 12 |
|
13 | 13 | <p align="center"> |
@@ -96,56 +96,7 @@ See the [MCP docs](https://docs.sim.ai/mcp/overview) for other clients and for s |
96 | 96 |
|
97 | 97 | ## Self-hosting |
98 | 98 |
|
99 | | -**Requirements:** [Node.js 20+](https://nodejs.org/) and [Docker](https://www.docker.com/). |
100 | | - |
101 | | -`npx sim-setup` is an interactive wizard that creates a small `sim/` deployment directory, provisions the database, generates secrets, writes `.env`, connects a Chat API key, and starts the published Sim images with Docker Compose. It does not clone the repository. |
102 | | - |
103 | | -When it finishes, open [http://localhost:3000](http://localhost:3000). |
104 | | - |
105 | | -Inside a cloned Sim repository, run `bun run sim-setup` to unlock the source-only local development and Kubernetes modes. |
106 | | - |
107 | | -Reconfigure an optional capability without rerunning the full wizard: |
108 | | - |
109 | | -```bash |
110 | | -npx sim-setup config |
111 | | -npx sim-setup add email |
112 | | -npx sim-setup add storage |
113 | | -npx sim-setup add sandbox |
114 | | -npx sim-setup add jobs |
115 | | -npx sim-setup add knowledge |
116 | | -npx sim-setup add chat |
117 | | -npx sim-setup add llm |
118 | | -npx sim-setup add integration slack |
119 | | -``` |
120 | | - |
121 | | -`npx sim-setup config` detects the effective local-dev, Docker Compose, or current-context |
122 | | -Helm configuration and reports configured, missing, or invalid capabilities and OAuth |
123 | | -integrations without printing credential values. This is separate from `npx sim-setup status`, |
124 | | -which reports whether installed services are running and healthy. |
125 | | - |
126 | | -Manage your install from its directory: |
127 | | - |
128 | | -```bash |
129 | | -npx sim-setup start | stop | restart # bring your install up / down / cycle |
130 | | -npx sim-setup update # pull and apply Compose images |
131 | | -npx sim-setup status # what's installed and healthy |
132 | | -npx sim-setup logs # follow logs |
133 | | -npx sim-setup doctor # diagnose configuration problems |
134 | | -npx sim-setup down # remove containers (data kept) |
135 | | -npx sim-setup reset # archive .env and wipe managed data |
136 | | -``` |
137 | | - |
138 | | -The setup package detects how you're running and acts accordingly. Use `--dir <path>` to create or manage a deployment somewhere other than `./sim`. |
139 | | - |
140 | | -Sim also supports local models via [Ollama](https://ollama.ai), [vLLM](https://docs.vllm.ai/), and [LiteLLM](https://docs.litellm.ai/). See the [self-hosting docs](https://docs.sim.ai/self-hosting/docker) for details. |
141 | | - |
142 | | -## Chat API Keys |
143 | | - |
144 | | -Chat is a Sim-managed service. `npx sim-setup` connects a Chat API key for you — sign in when it opens your browser and the key is stored automatically. To view, create, or revoke keys later, go to [sim.ai/selfhost/settings/chat-keys](https://sim.ai/selfhost/settings/chat-keys). |
145 | | - |
146 | | -## Environment Variables |
147 | | - |
148 | | -See the [environment variables reference](https://docs.sim.ai/self-hosting/environment-variables) for the full list, or [`apps/sim/.env.example`](apps/sim/.env.example) for defaults. |
| 99 | +`npx sim-setup` needs [Node.js 20+](https://nodejs.org/) and [Docker](https://www.docker.com/). It writes a `sim/` directory with the Compose file and a generated `.env`, connects a Chat API key, and starts Sim at [http://localhost:3000](http://localhost:3000). The [self-hosting guide](https://docs.sim.ai/platform/self-hosting) covers Kubernetes, configuration, local models, and upgrades. |
149 | 100 |
|
150 | 101 | ## Tech Stack |
151 | 102 |
|
|
0 commit comments