Prerequisites
- Node.js 22+
- pnpm 9+
- PostgreSQL database (local for dev, or a Neon project)
- OpenAI API key
- Slack workspace (for bot features)
1. Clone and Install
2. Configure Environment
Copy the example env file and fill in your values:3. Set Up Database
4. Build and Run
http://127.0.0.1:3000.
5. Test the Setup
Common Issues
Invalid redirect URI error
Invalid redirect URI error
Go to WorkOS Dashboard → Applications → Your App → Redirect URIs and add
http://127.0.0.1:3000/api/auth/workos/callback. Make sure to use 127.0.0.1, not localhost.Database connection error
Database connection error
Verify PostgreSQL is running with
pg_isready, then test the connection:Organization creation failed
Organization creation failed
In the WorkOS Dashboard, go to Organizations and enable “Allow organization creation via API”.
Next Steps
CLI
Manage documents and folders from your terminal.
Slack Setup
Connect Whilst to your Slack workspace.
Architecture
Understand the system design.

