Getting started
Prerequisites
- Bun v1.x
- A local PostgreSQL instance
- An
OPENROUTER_API_KEYfor chat models - Clerk keys for auth (required to sign in and chat)
Install
Clone the repository and install dependencies from the repo root:
git clone https://github.com/gopallchoudhary/coolcode
cd coolcode
bun installbun install also runs prisma generate as a postinstall step of
@coolcode/database. Anything importing @coolcode/database will not compile
without it.
Set up the database
Create a single .env file at the repository root (Bun auto-loads it; the
Prisma CLI loads it explicitly through prisma.config.ts) and point
DATABASE_URL at your Postgres instance.
No migrations are tracked. Push the schema directly:
cd packages/database
bunx prisma db pushRun
Start the API server (it listens on port 3000):
bun run dev:serverIn a second terminal, start the TUI:
bun run dev:cliThe CLI talks to http://localhost:3000 by default; override it with
API_URL.
Next steps
- Configuration — every environment variable the stack needs.
- CLI & tools — how the agent plans, builds, and executes tools.
Last updated on