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
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.
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.
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.
From zero to signed in, in about 10 minutes
Railway runs the app. Supabase holds the data. You stay in control of both accounts.
- 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.
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.
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.
Create your Supabase project
~5 minutes- 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.
Copy the session-pooler connection string
~2 minutes- 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=requireThe connection string connects successfully from your terminal or a database client.
Click Deploy on Railway
~2 minutes- 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.
Watch the pre-deploy finish
~3 minutes- 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>The deploy is live and the healthcheck passes.
Connect Supabase Auth to your domain
~2 minutes- 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.
Sign in and invite your team
~2 minutes- 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.
Add optional capabilities
As needed- 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.
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.
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.
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.
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_SUPABASE_URLhttps://abcd.supabase.co | Your Supabase project URL, without a trailing slash. The storage endpoint is derived from it. |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anon/public key. Safe for the browser. |
SUPABASE_SERVICE_ROLE_KEY | Server-only service-role key. Bypasses RLS — treat it like a root password. |
DATABASE_URL | Supabase Session-pooler URL used by the application at runtime. |
DIRECT_URL | Prisma migration connection. Use the same Session-pooler URL. |
BOOTSTRAP_ADMIN_EMAIL | The email you will use for the root admin account. |
BOOTSTRAP_ADMIN_PASSWORD | Strong password for the root admin. Never logged. |
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_SUPABASE_PUBLIC_BUCKET | Public bucket name. Default: erpblobPublic. |
NEXT_PUBLIC_SUPABASE_PRIVATE_BUCKET | Private bucket name. Default: erpblob. |
NEXT_PUBLIC_APP_DOMAIN | Public origin. Default: https://${{RAILWAY_PUBLIC_DOMAIN}}. |
NEXT_PUBLIC_APP_LOGO | Absolute logo URL in the public storage bucket. |
| Variable | Purpose |
|---|---|
GOOGLE_GENERATIVE_AI_API_KEY | BYOK key for the 15 business agents. |
REPLICATE_API_TOKEN | Image generation for the AI Image Studio. |
GOOGLE_ANALYTICS_ID | Production analytics. |
BOOTSTRAP_ADMIN_RESET_PASSWORD | Set 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.
Free core, transparent providers
You pay your infrastructure providers directly. There are no per-user core fees.
| Item | Who pays | Notes |
|---|---|---|
| Stellar core | Nobody | Free to self-host, with no per-user core fees. |
| Railway | You | Your Railway plan or trial. Usage depends on the container you run. |
| Supabase | You | Free tier is fine for evaluation; production databases should use a paid plan. Free projects pause when idle. |
| Google AI | You (BYOK) | Only when you use the business agents. Google bills provider usage directly. |
| Replicate | You (optional) | Only for the AI Image Studio. |
| Domain / SMTP | You | Your 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.
Clear boundaries, no surprises
What the release automation handles, and what stays yours.
- Prebuilt, versioned Docker image
- Prisma migrations and release script
- RBAC roles and permission checks
- Storage bucket and policy setup
- Application updates
- 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
- 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.
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.
Bring your records without breaking reports
There is no one-click importer. Load data in dependency order so totals and links stay correct.
Load currencies, tax rates and payment modes first.
Add branches, product categories and products.
Add companies and contacts, then customers.
Enter opening documents and historical balances so reports start from a known point.
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.
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