Run Mango Agent locally
Clone the repo, start every service with Docker, load the example seed and open the panel.
- Docker (Desktop or Engine with Compose v2)
uvfor Python 3.13- Node 22 with
pnpm - Optional: a Gemini API key from Google AI Studio
1Clone and install#
git clone https://github.com/Mangosteen-Studio/mango-agent.git
cd mango-agent
make setup # installs backend + node deps, copies .env.example to .env2Choose an LLM provider#
Everything in .env has a local default that works with Docker Compose. Leave LLM_PROVIDER=fake to run without any API key: a deterministic fake model answers from your facts and is what the tests use. For real answers, add a Gemini key.
LLM_PROVIDER=gemini_api
GEMINI_API_KEY=your-key-from-ai-studioAUTH_MODE=dev and NEXT_PUBLIC_DEV_MEMBER_EMAIL to the owner email in your seed.3Start the stack#
make dev # docker compose up: postgres, redis, rustfs, firebase emulator, backend, frontend, widget demo| Service | URL |
|---|---|
| Backend API + docs | http://localhost:8000/docs |
| Inbox / admin | http://localhost:3000 |
| Widget demo site | http://localhost:4000 |
| RustFS console (S3 store) | http://localhost:9001 |
| Firebase Auth emulator UI | http://localhost:4401 |
Migrations run automatically when the backend starts.
4Load the example seed#
make seed # loads the example org, its first owner, a project and its knowledge baseA seed folder holds org.json (the organization, members and projects) plus kb/company.json and kb/<project-slug>.json. Loading is idempotent: rows are matched by slug or email and updated, never duplicated. The first owner in the seed is how the first person gets access, since sign-in is invite-only.
5Try it#
- Open the widget demo at
localhost:4000and ask a question. - Open the panel at
localhost:3000, go to Inbox, and watch the conversation arrive live. - Ask the widget for a person, then Assign to me in the inbox and reply.
Other targets: make test, make lint, make migrate, make logs.
The API, inbox and admin panel, widget demo site, object storage and auth emulator all run on your machine.