Documentation
Guides and references for using and self-hosting Leanbox.
Welcome to the Leanbox docs. Leanbox is an AI-powered triage layer for your Gmail and Instagram inbox — these guides walk you through connecting your accounts and, if you want full control, running Leanbox on your own infrastructure.
Self Hosting Guide
Docker
Run Leanbox as a standalone Docker container with an external Postgres database.
Railway
Deploy Leanbox on Railway with managed Postgres and Redis using the one-click template.
Connecting your accounts
Connect Gmail
Set up a Google Cloud project and link your Gmail account to Leanbox.
Connect Instagram
Create a Meta for Developers app and link your Instagram Business account to Leanbox.
Need a hand?
If you run into anything that isn't covered here, reach out via the Support button in the sidebar and we'll help you out.