Free software, and how to run it yourself
Succuro is under the GNU Affero General Public License v3.0. The code, the specification and the list of what’s missing are all in one public repository.
The license in plain words
- You may run it, for any purpose, your business included.
- You may read the code and change it.
- You may share it, under the same license.
- If you offer a modified version to others over a network, you publish your changes under the same license.
A summary, not legal advice: the license itself is what counts.
What you need
- Node 20 or later, and pnpm
- Postgres (Docker gives you one locally)
- One way to sign in: a company’s identity provider, Google, or passwords with
RESEND_API_KEY - A Resend account, for a workspace’s mail
git clone https://github.com/Succuro/succuro.git && cd succuro
docker run -d --name succuro-db -e POSTGRES_PASSWORD=local \
-e POSTGRES_DB=succuro -p 127.0.0.1:5432:5432 postgres:17-alpine
pnpm install
cp .env.example .env.local # then fill it in
pnpm db:migrate
pnpm devThe quickest way to sign in locally is SUCCURO_PASSWORD_SIGN_IN=true with RESEND_API_KEY set, and your address in SUCCURO_ADMINS. Tests run against an in-process Postgres and need no database.
On a server
vercel.json deploys it on Vercel with its functions in Frankfurt (fra1), and anywhere that runs Node works too. Apply migrations with pnpm db:migrate before starting a new version. Elsewhere than Vercel:
- Call
/api/cron/stuck-replieshourly withAuthorization: Bearer<CRON_SECRET>. With no reply in flight it answers without touching the database. - What that job knows is kept in Next’s cache. Without a cache handler it lives in the server’s memory: fine for one server, and it asks the database again after a restart.
- Put it behind a proxy that sets
X-Real-IPorX-Forwarded-For. The form’s limit per address reads them, and they can be forged without a proxy that overwrites them.
curl -H "Authorization: Bearer $CRON_SECRET" https://<your address>/api/cron/stuck-repliesThe settings that matter first
| Variable | What for |
|---|---|
| SUCCURO_DATABASE_URL | Postgres. |
| BETTER_AUTH_SECRET | Signs sessions and requesters’ links. Changing it signs everyone out and ends the links already sent. |
| BETTER_AUTH_URL | The instance’s public address. Links, webhooks and assistants’ tokens are built from it. |
| SUCCURO_ADMINS | The addresses that may sign up and start workspaces. |
| SUCCURO_SECRETS_KEY | Seals every connection’s credentials. Without it they can’t be opened, so keep it safe. |
| RESEND_API_KEY | The instance’s own mail to its members. Replies to customers never use this key. |
| CRON_SECRET | The bearer the hourly job must be called with. |
Signing in
Your company’s provider
Any OpenID Connect server that vouches for each address. When it’s set, it’s the only way in.
A Google OAuth app, with your address’s callback as its redirect.
Passwords
SUCCURO_PASSWORD_SIGN_IN=true, with RESEND_API_KEY: sign-in stays closed until a mailed link proves the address.
SUCCURO_ADMINS says who may sign up and start workspaces. Anyone else joins by invitation, from a workspace’s settings.
Connecting an assistant
The MCP server is at /api/mcp. Add that address to Claude, ChatGPT or any MCP client as a remote connector: the client registers itself, you sign in and approve it, and it acts inside your workspaces with their rules.
claude mcp add --transport http succuro https://<your address>/api/mcpContributing
The code, and what needs doing, are on GitHub. Bugs and ideas are welcome as issues.
Open an issue