Clone the repo, install dependencies, and run YokeBot locally.
YokeBot is distributed as a single Git repository using pnpm workspaces.
git clone https://github.com/yokebots/yokebot.git
cd yokebot
pnpm installCopy the example environment file and fill in at least one model provider API key. See the Environment Variables reference for the full list.
cp packages/engine/.env.example packages/engine/.env
# Edit packages/engine/.env with your API keysBy default YokeBot uses SQLite, which requires zero configuration. The database file is created automatically in the engine package directory on first run.
For production workloads or multi-instance deployments, you can switch to Postgres by setting the DATABASE_URL environment variable:
DATABASE_URL=postgresql://user:password@localhost:5432/yokebotpnpm dev:allThis command starts both the engine (API server) and the dashboard (Vite dev server) concurrently. By default the dashboard is available at http://localhost:5173 and the engine API at http://localhost:3001.
To update a self-hosted instance, pull the latest changes and reinstall dependencies:
git pull origin main
pnpm install
pnpm dev:all