Waleed 9ce3f51946 perf(ci): build the app image on 16 vCPU and keep the toolchain out of it (#6500)
Three independent changes to the app image build.

The app image builds on 16 vCPU instead of 8. Its dominant steps -- bun install
(~300-465s) and next build (~262s) -- both scale with cores, and this build gates
every deploy because nothing ships until the image is pushed. The same next build
already runs on 16 vCPU in the Build App verification job, which gates nothing.
The isolated-vm rebuild will not benefit: JOBS=4 caps it deliberately to avoid an
OOM. ARM64 stays at 8 -- that job is off the deploy path, and the workflow warns
an unprovisioned runner label hangs a release in queued.

node-gyp comes from the lockfile rather than npx. npx resolved it from the
registry during every production image build, which pulled 13.x over the pinned
12.4.0 and bypassed the minimumReleaseAge gate in bunfig.toml. It has to be an
apps/sim devDependency because the only other copy is transitive through
@electron/rebuild, which turbo prune sim strips.

base splits into base and build-base. The compiler toolchain exists only to build
isolated-vm against Node and the runner copies the finished binary, so shipping
it inflated every ECS task pull: measured 1.21 GB for base against 1.6 GB for
build-base, so ~390 MB stays out of the final image. ffmpeg and python3 stay --
fluent-ffmpeg is a serverExternalPackage, and node-gyp needs the interpreter.

Verified against real image builds rather than by inspection: g++/make/pip3 are
absent from the runtime image while node/bun/python3/ffmpeg remain, the
isolated-vm native module loads and evaluates, lib0/yjs/y-protocols including the
lib0/logging.js subpath are intact, sharp and libvips load and encode a PNG so
#6499's fix still works against the slimmed image, the container boots to Next.js
Ready, and the full suite passes 21250 tests through the dependency hoisting
reshuffle that promoting node-gyp causes (root which@6.0.1, fluent-ffmpeg keeps
its own 1.3.1).

Not included: an earlier attempt added a cache-key input to
useblacksmith/setup-docker-builder, on the theory that the deps layer re-runs
every build (286s/465s observed) because all five Dockerfiles share one layer
cache. That input does not exist at the pinned SHA or on main, and the key is not
configurable -- setup_builder.ts uses GITHUB_REPO_NAME. CI logs also show the
sticky disk being obtained with a parent snapshot rather than falling back, so
the cache is present and that cause remains unidentified.
2026-08-10 12:42:13 -07:00

Sim.ai Documentation Slack X

Ask DeepWiki Set Up with Cursor

Sim — Integrate, Context, Build, and Monitor AI agents

A workspace to build, deploy and manage AI agents and workflows.

Quickstart

Cloud-hosted: sim.ai

Open sim.ai

Self-hosted

git clone https://github.com/simstudioai/sim.git && cd sim
bun install
bun run setup

Open http://localhost:3000

The Sim platform — chat on the left, the visual workflow builder on the right

Capabilities

  • Connect 1,000+ integrations and every major LLM
  • Add Slack, Notion, HubSpot, Salesforce, databases, and more
  • Build agents visually, conversationally, or with code
  • Ingest files, knowledge bases, and structured table data
  • Monitor runs, logs, schedules, and workflow activity

One workspace, every surface

Chat and workflows are just the start — tables, files, and knowledge all live in the same workspace.

Tables in Sim — structured data your agents can query

Tables — a database, built in

Files in Sim — documents for your team and every agent

Files — one store for your team and every agent

Knowledge bases in Sim — synced docs your agents can search

Knowledge — your agents' memory

Self-hosting

Requirements: Bun and Docker.

bun run setup is an interactive wizard: it provisions the database, generates secrets, writes your .env files, connects a Chat API key, and starts Sim the way you choose:

  • Local dev — run from source to contribute or hack on Sim
  • Docker Compose — a self-contained instance for testing self-hosting
  • Kubernetes (Helm) — deploy to a local cluster

When it finishes, open http://localhost:3000.

Reconfigure an optional capability without rerunning the full wizard:

bun run setup status
bun run setup email
bun run setup storage
bun run setup sandbox
bun run setup jobs
bun run setup cache
bun run setup knowledge
bun run setup llm
bun run setup integration slack

bun run setup status detects the effective local-dev, Docker Compose, or current-context Helm configuration and reports configured, missing, or invalid capabilities and OAuth integrations without printing credential values. This is separate from bun run sim status, which reports whether installed services are running and healthy.

Manage your install with bun run sim:

bun run sim start | stop | restart   # bring your install up / down / cycle
bun run sim status                    # what's installed and healthy
bun run sim logs                      # follow logs
bun run sim doctor                    # diagnose configuration problems
bun run sim down                      # remove containers (data kept)
bun run sim reset                     # archive .env and wipe managed data

sim detects how you're running (Docker Compose, local dev, or Kubernetes) and acts accordingly.

Prefer a bare sim? Run bun link once — but note sim lands in ~/.bun/bin, which Homebrew's bun doesn't add to your PATH, so you may need export PATH="$HOME/.bun/bin:$PATH" in your shell profile.

Sim also supports local models via Ollama and vLLM. See the self-hosting docs for details.

Chat API Keys

Chat is a Sim-managed service. bun run 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.

Environment Variables

See the environment variables reference for the full list, or apps/sim/.env.example for defaults.

Tech Stack

Next.js · Bun · PostgreSQL · Drizzle · Better Auth · Tailwind — and the rest of the stack

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.

Built by the Sim team in San Francisco

Languages
TypeScript 77%
MDX 20.8%
JavaScript 1.9%
CSS 0.1%