StoryOS

Open source and your own server.

StoryOS is open source under AGPL-3.0: the same code as the hosted version, free to self-host with Docker Compose. Your customers, jobs and invoices stay on your box, and docker compose up -d brings up the whole stack.

git clone https://github.com/StoryFunnels/storyOS.git storyos && cd storyos
cp .env.example .env
# one-time: generate the two secrets the stack requires (keep this file; back it up)
printf 'BETTER_AUTH_SECRET=%s\nCONNECTIONS_MASTER_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" >> .env
docker compose up -d

Prerequisites: Docker with Compose v2, and 1 GB RAM / 1 vCPU, which is plenty for a small team. Verify: docker compose ps shows postgres, api, web and caddy running; open http://localhost and sign up. Both secrets are required: if compose stops saying one “is missing a value”, the printf line was skipped. The full guide is the self-hosting overview on docs.storyos.dev.

What gets copied
Help me self-host StoryOS (open source, AGPL-3.0) with Docker.
Follow the official guide, which is the source of truth:
https://docs.storyos.dev/self-hosting/overview/

1. Check prerequisites: Docker with Compose v2. 1 GB RAM / 1 vCPU is enough
   for a small team.
2. Run:
   git clone https://github.com/StoryFunnels/storyOS.git storyos && cd storyos
   cp .env.example .env
   printf 'BETTER_AUTH_SECRET=%s\nCONNECTIONS_MASTER_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" >> .env
   docker compose up -d
   Both secrets are required; if compose says one "is missing a value",
   the printf step was skipped. Keep .env: CONNECTIONS_MASTER_KEY encrypts
   saved connection credentials.
3. Verify: docker compose ps shows postgres, api, web and caddy running;
   then open http://localhost and sign up (first account creates a workspace).
4. For a real deployment, set API_URL and WEB_URL to the same public URL and
   add TLS, as the guide describes. Backups, upgrades, email and storage:
   https://docs.storyos.dev/self-hosting/overview/

01 · What you get

The same product, on your server.

Your data never leaves

Your customers, jobs, invoices, files and documents live on your box, in your Postgres. No third party sees them, unless you connect an AI provider yourself.

The whole product

Self-host is the complete product, not a trimmed edition. Every view, formula, automation and the MCP server are in the box, with unlimited records.

Use your own AI

Connect your own Claude or ChatGPT. You control cost and provider, and we never meter it.

AGPL-3.0, auditable

The full source is public. Read it, fork it, run it.

02 · What happens

Three steps, no build tooling.

  1. 01

    Clone and set two secrets

    One repo has everything: API, web app, MCP server and proxy. Copy the example settings file, then generate the two secrets the stack requires: the auth secret and the key that encrypts saved connection credentials.

  2. 02

    docker compose up

    Postgres, the API, the web app and a reverse proxy come up together on one origin (port 80). Migrations run automatically when the API starts.

  3. 03

    Sign up

    Open http://localhost: the first account creates its own workspace. Install a template or start blank.

03 · What you own after

Your server, your jobs.

Self-hosting moves the running of StoryOS to you. These are the parts the hosted service would otherwise do for you.

Backups
Upgrades
Email
File storage
Your secrets file

04 · The licence

AGPL-3.0, in plain words.

StoryOS is licensed under the GNU Affero General Public License, version 3 or later. You can use it, read it, change it and share it, and run it for yourself or your organization at no cost. The one condition that matters for most businesses: if you change StoryOS and let other people use your changed version over a network, you must offer them your changed source code under the same licence.

One directory is licensed differently. The StoryOS Runner (packages/runner), the small program that runs agents on your own computer, is under Apache-2.0, as the repository’s NOTICE file says. The Runner is in early access.

05 · Configuration

Configuration that matters.

Set in .env next to docker-compose.yml. Two secrets are required; everything else has a default.

VariableDefaultNotes
BETTER_AUTH_SECRET — (required) openssl rand -hex 32
CONNECTIONS_MASTER_KEY — (required) openssl rand -hex 32; encrypts saved connection credentials, keep it
API_URL / WEB_URL http://localhost set BOTH to your public URL for real deployments
POSTGRES_PASSWORD storyos change for anything internet-facing
HTTP_PORT / HTTPS_PORT 80 / 443 host ports of the bundled proxy
SMTP_* , MAIL_FROM unset without SMTP, invite links are copyable in the UI; other emails are logged
STORAGE_DRIVER local s3 for MinIO / S3 / R2 (bundled MinIO profile included)

Going to production

Set API_URL and WEB_URL to the same public URL: auth checks request origins against WEB_URL. For TLS, proxy the domain through Cloudflare, or edit docker/Caddyfile and let Caddy issue certificates.

Everything else

Google sign-in, rate limits, MinIO storage, PDF export and the restore drill are all in the docs, which stay in step with the code.

Full matrix and guides: the self-hosting guide on docs.storyos.dev →

FAQ

Questions about running it yourself

Is self-hosted StoryOS really free?

Yes. StoryOS is open source under AGPL-3.0, and running it on your own server costs nothing in licence fees. It is the same code as the hosted version, with unlimited records, and self-hosted deployments count no automation runs. You pay for your own server, and for your own AI provider if you connect one.

What licence is StoryOS under?

The GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later). You can use, study, change and share it, and run it for your organization. If you change it and let others use your changed version over a network, you must offer them its source under the same licence. One directory is licensed differently: the StoryOS Runner (packages/runner) is under Apache-2.0, as the NOTICE file in the repository says.

What do I need to self-host StoryOS?

Docker with Compose v2, and a machine with about 1 GB of RAM and 1 vCPU, which is plenty for a small team. Clone the repository, copy the example settings file, generate the two required secrets and run docker compose up -d. For a real deployment you also want a domain with TLS. Email (SMTP) and S3-compatible storage are optional.

Who looks after backups and upgrades?

You do. The repository ships backup and restore scripts that keep the database and the attachments together as one recovery point, and an upgrade is git pull followed by a compose rebuild, with migrations running on start. Schedule backups, keep copies off the server and keep your .env file safe.

Can I move between self-hosting and the hosted plans?

Yes. It is the same product and the same data model. Export from one and import into the other over the API.

Rather not run servers?

The hosted plans start free and run the same product with the same data model. You can move between them.