stellar-app-logo
Self-hosted · free core

Deploy your own Stellar copy

One click on Railway, your own Supabase project, and your data stays in your infrastructure. The core is free; AI agents run on your own key.

Opens Railway in a new tab. You will connect a Supabase project first. Stellar is source-available, not open source.

Setup time
~10 min
Stellar core
$0
Data layer
Your Supabase
AI agents
BYOK
Your data stays in your Supabase project
No per-user fees on the core
BYOK AI — your provider account
RBAC and storage policies included
Why self-host

Own the stack, not a seat licence

Stellar is designed to run on infrastructure you control. Here is what that gives you — and what it asks of you.

Your data, your database
Records, files, users and sessions live in the Supabase project you create. There is no shared tenant holding your business data.
No per-user core fees
The ERP core is free to self-host. You pay only the infrastructure you choose: Railway and Supabase.
Bring your own AI key
Run the 15 business agents on your own Google Generative AI key. Provider usage is billed directly to you.
Run on your own terms
Choose the region, domain, SMTP provider and upgrade schedule. The image runs on Railway or any compatible container host.
Role-based access from day one
RBAC covers routes, APIs, admin tools and storage. There is no public sign-up; you create every teammate.
Predictable, inspectable costs
Infrastructure and AI costs are separated and visible in provider dashboards. No bundled seat pricing on the core.

Self-hosting means you own the operational work: backups, restore tests, domain and SMTP setup, provider billing and keeping secrets safe. We are honest about that trade-off.

What you get

The full core, not a demo slice

The same product you see on this site, running in your own environment.

12 business modules

Products, CRM, quotes, invoices, payments, expenses, banking, branches, settings and more.

Quotes, invoices & PDF reports

Line-item documents, tax, discounts, references, expiry dates and five PDF financial reports.

15 AI business agents

Executive, finance, sales, risk and operations agents, plus a separate AI Image Studio.

RBAC & user management

Roles, permissions, audit-ready access checks and admin-managed accounts.

Supabase storage

Public assets and private uploads with RLS-scoped access.

Multi-currency records

Currencies, tax rates, payment modes and branch-aware records.

The process

From zero to signed in, in about 10 minutes

Railway runs the app. Supabase holds the data. You stay in control of both accounts.

Before you click deploy
Have these ready so the flow does not stall.
  • A Railway account (the deploy button opens a new project).
  • A Supabase project for Postgres, Auth and Storage.
  • Your Supabase project URL, anon key and service-role key.
  • A session-pooler Postgres connection string (port 5432).
  • An admin email and a strong password for first sign-in.
  • About 10 minutes, a browser and access to your email for confirmations.
The one button
It opens the official Railway template. Railway pulls the public Stellar image.
Deploy on Railway

No Railway database or volume is created. Your Supabase project is the data layer.

1. Bring Supabase

Postgres, Auth and Storage in your account.

2. Click Deploy

Railway pulls the image and prompts for seven values.

3. Pre-deploy runs

Migrations, roles, admin and buckets are prepared.

4. Sign in & invite

Create users and assign roles in the app.

Step-by-step

The whole process, without hidden steps

Follow the seven steps below. Each one tells you what to do, what done looks like and where people usually get stuck.

1

Create your Supabase project

~5 minutes
This project becomes your database, authentication provider and file storage. Choose a region near your Railway region.
  • Create a project at supabase.com/dashboard.
  • Open Project Settings → API and copy the project URL, anon key and service-role key.
  • Keep the service-role key server-side. Never paste it into a browser field other than the Railway variable form.

You have the project URL, anon key and service-role key saved somewhere safe.

2

Copy the session-pooler connection string

~2 minutes
Migrations and runtime queries need an IPv4 connection. Use the Supabase Session pooler, not the direct IPv6 host.
  • Open Connect in Supabase and choose Session pooler.
  • Copy the full postgresql:// URL and add ?sslmode=require if it is missing.
  • URL-encode reserved characters in the password.
  • Use the same URL for DATABASE_URL and DIRECT_URL.
postgresql://postgres.<project-ref>:<password>@<pooler-host>:5432/postgres?sslmode=require
Do not use transaction pooling (port 6543) for migrations.

The connection string connects successfully from your terminal or a database client.

3

Click Deploy on Railway

~2 minutes
The button opens the official Railway template. Railway pulls the public Stellar image; no database or volume is created on Railway.
  • Click Deploy on Railway and sign in to Railway.
  • Fill the seven prompted values from the Variables section below.
  • Keep the service-role key, database URL and admin password in Railway variables only.
  • Start the deploy.

Railway shows the new service and begins the pre-deploy step.

4

Watch the pre-deploy finish

~3 minutes
Before traffic switches, the image applies migrations, seeds roles, creates the root admin and prepares storage.
  • Open the deploy logs and watch the release step.
  • Wait for the release-complete and root-admin-ready lines.
  • Do not switch traffic manually while pre-deploy is running.
✔ release complete
✔ root admin ready: <your-admin-email>
If pre-deploy fails, the new container is not switched in. Check the troubleshooting section below.

The deploy is live and the healthcheck passes.

5

Connect Supabase Auth to your domain

~2 minutes
After Railway assigns a domain, tell Supabase where the app lives so sign-in and password resets return to the right place.
  • Set Authentication → URL Configuration → Site URL to your Railway or custom domain.
  • Add /auth/confirm and /auth/reset-password as redirect URLs.
  • Configure custom SMTP before inviting the team to production.

Sign-in and reset emails point at your deployment, not stellarapp.site.

6

Sign in and invite your team

~2 minutes
There is no public sign-up. The bootstrap admin creates the first account and every teammate after that.
  • Sign in at /auth with the bootstrap admin email and password.
  • Change the admin password immediately.
  • Create users in User Management and grant roles in RBAC.
  • Remove access for anyone who should no longer have it.

You can sign in, the sidebar loads and your team has the right roles.

7

Add optional capabilities

As needed
The core works without AI keys. Add providers, domain, analytics or mail when you are ready.
  • Add GOOGLE_GENERATIVE_AI_API_KEY for business agents.
  • Add REPLICATE_API_TOKEN for the AI Image Studio.
  • Add a custom domain in Railway and update NEXT_PUBLIC_APP_DOMAIN.
  • Add GOOGLE_ANALYTICS_ID if you use analytics.

The optional features you need are configured and verified.

Your deployment checklist

Tick steps as you go. Progress is saved in this browser only.

0/7
Need a hand?
Stuck on a step? Send us the step and the error. We will help you get unstuck.
Under the hood

What happens after you press Deploy

Nothing is switched live until the pre-deploy succeeds.

Railway pulls the image

The public ghcr.io/app-corp/stellar image is deployed. No Railway database or volume is created.

Pre-deploy runs

Prisma migrations, RBAC seed, the root admin, storage buckets and policies. Every step is idempotent.

Healthcheck passes

The /api/health endpoint must return successfully before traffic switches.

Runtime starts

The Next.js standalone server starts on $PORT and connects to your Supabase project.

If pre-deploy fails: the new container is not switched in. Read the release logs, fix the variable or Supabase setting, and redeploy. The release steps are safe to re-run.
Architecture

One container, your data layer

Stellar is stateless. Supabase is the system of record.

Your browser

Sign-in, ERP and agents

Railway container

Next.js standalone app, RBAC, API routes

Your Supabase

Postgres, Auth, Storage

Optional: Google Generative AI for business agents and Replicate for the AI Image Studio. Those calls go directly to your provider accounts.

Configuration

Exactly which values you will fill

Seven required values, five derived values and a short optional list. Secrets stay in Railway.

The template prompts for the required values. The derived values use Railway references.

Required
The template prompts for these seven values.
VariablePurpose
NEXT_PUBLIC_SUPABASE_URL
https://abcd.supabase.co
Your Supabase project URL, without a trailing slash. The storage endpoint is derived from it.
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon/public key. Safe for the browser.
SUPABASE_SERVICE_ROLE_KEYServer-only service-role key. Bypasses RLS — treat it like a root password.
DATABASE_URLSupabase Session-pooler URL used by the application at runtime.
DIRECT_URLPrisma migration connection. Use the same Session-pooler URL.
BOOTSTRAP_ADMIN_EMAILThe email you will use for the root admin account.
BOOTSTRAP_ADMIN_PASSWORDStrong password for the root admin. Never logged.
Derived
The template preconfigures these values with Railway references.
VariablePurpose
NEXT_PUBLIC_SUPABASE_PUBLIC_BUCKETPublic bucket name. Default: erpblobPublic.
NEXT_PUBLIC_SUPABASE_PRIVATE_BUCKETPrivate bucket name. Default: erpblob.
NEXT_PUBLIC_APP_DOMAINPublic origin. Default: https://${{RAILWAY_PUBLIC_DOMAIN}}.
NEXT_PUBLIC_APP_LOGOAbsolute logo URL in the public storage bucket.
Optional
Add these only when you need the capability.
VariablePurpose
GOOGLE_GENERATIVE_AI_API_KEYBYOK key for the 15 business agents.
REPLICATE_API_TOKENImage generation for the AI Image Studio.
GOOGLE_ANALYTICS_IDProduction analytics.
BOOTSTRAP_ADMIN_RESET_PASSWORDSet true to rotate the bootstrap admin password on a later deploy.

The service-role key bypasses Supabase RLS. Treat it like a root password and keep it server-side. Never commit it or expose it to the browser.

Costs

Free core, transparent providers

You pay your infrastructure providers directly. There are no per-user core fees.

ItemWho paysNotes
Stellar coreNobodyFree to self-host, with no per-user core fees.
RailwayYouYour Railway plan or trial. Usage depends on the container you run.
SupabaseYouFree tier is fine for evaluation; production databases should use a paid plan. Free projects pause when idle.
Google AIYou (BYOK)Only when you use the business agents. Google bills provider usage directly.
ReplicateYou (optional)Only for the AI Image Studio.
Domain / SMTPYouYour registrar and email provider, if you use a custom domain and production email.

Provider prices change. Check Railway and Supabase for current plans. No time-limited Stellar trial is required.

Ownership

Clear boundaries, no surprises

What the release automation handles, and what stays yours.

Stellar handles
  • Prebuilt, versioned Docker image
  • Prisma migrations and release script
  • RBAC roles and permission checks
  • Storage bucket and policy setup
  • Application updates
You handle
  • Supabase project and billing
  • Railway project and billing
  • Backups, retention and restore tests
  • Domain, HTTPS and DNS
  • SMTP provider and deliverability
  • Access reviews and incident response
Security checklist
Make these part of your go-live checklist.
  • Change the bootstrap admin password after the first sign-in.
  • Keep the service-role key and database URL in server-side variables only.
  • Enable HTTPS and use your own domain for production.
  • Configure Supabase RLS and review storage policies.
  • Set up automated database backups and test a restore.
  • Configure custom SMTP for password resets.
  • Review users and roles after every team change.
  • Keep Railway, Supabase and provider accounts protected with MFA.
Updates and rollback

The template tracks latest

The public image uses the latest tag by default, so new builds are picked up on deploy. Pin a version tag if you need a fixed release.

Pre-deploy is idempotent

Migrations, roles, the admin account and storage setup can safely run again. A failed pre-deploy does not switch traffic.

Migrations are forward-only

Roll back only to a build that supports the current schema. Take a database backup before major upgrades.

Moving in

Bring your records without breaking reports

There is no one-click importer. Load data in dependency order so totals and links stay correct.

1

Load currencies, tax rates and payment modes first.

2

Add branches, product categories and products.

3

Add companies and contacts, then customers.

4

Enter opening documents and historical balances so reports start from a known point.

Support

We're here if you get stuck

Send us the step, the error and what you have tried. We help with deployment, configuration and product questions. Your Railway and Supabase accounts, backups and provider billing stay yours.

FAQ

The questions people ask before deploying

Short answers, including the limits and trade-offs.

Do I need a DevOps team to run Stellar?

No dedicated DevOps team is required. You need to create a Supabase project, copy a connection string, fill Railway variables and follow the first sign-in steps. The pre-deploy job handles migrations, roles, the root admin and storage setup.

What does it cost to self-host?

The Stellar core is free. You pay Railway for the container, Supabase for the database/auth/storage plan you choose, and Google or Replicate only if you use AI features. There are no per-user fees on the core.

Is Stellar open source?

No. Stellar is source-available and distributed as a compiled container image. You can self-host and use it commercially, but the license does not allow modification, reverse engineering, redistribution or running it as a service for third parties.

Where is my data stored?

In the Supabase project you create, plus files in your Supabase Storage buckets. Your Railway container connects to it at runtime. Stellar does not run a separate copy of your business database for your self-hosted deployment.

Can I use a custom domain?

Yes. Add the domain in Railway, set NEXT_PUBLIC_APP_DOMAIN to the new origin, and update the Supabase Auth Site URL and redirect URLs to match.

Can I run it on Docker or a VPS instead?

Yes. The image is a standalone Docker image. You run the same release steps yourself. The one-click template is simply the shortest path; the deployment docs cover the Docker flow.

Do the AI agents work without a key?

No. Business agents need a Google Generative AI key (BYOK), and the AI Image Studio needs a Replicate token. The ERP core works without either. Provider usage is billed by the provider.

What happens if the pre-deploy fails?

The new container is not switched in. Read the release logs for the failing step: database connectivity, migrations, admin bootstrap or storage. Fix the variable or Supabase setting and redeploy. Every step is idempotent.

Can I migrate from spreadsheets or another ERP?

There is no one-click importer in the core. Small datasets are easiest to enter in the app. Larger datasets can be loaded with a script against Prisma or the internal API. Load currencies, settings, products and contacts before documents.

How do updates work?

The template tracks the latest image, so a redeploy picks up new builds. You can pin a version tag for a fixed release. Migrations are forward-only; back up before major upgrades.

Is there a managed hosting option?

No. Stellar is self-hosted. You run the application and the Supabase project. Optional managed AI plans cover provider keys and agent usage, not application hosting.

What support do I get?

We help with deployment questions, configuration and product issues. Your Railway and Supabase accounts, backups, DNS and provider billing remain your responsibility. Contact the team by email or WhatsApp if you get stuck.

Ready to own your stack?

Deploy the free core to Railway, connect your Supabase project, and keep your business data in your account.

Free core · BYOK agents · Your Supabase · Source-available