Welcome to Nebutra Sailor Docs 🎉
ChangelogIntroductionLicensing
Help Center (External) ↗

Introduction

Skip to production. The open-source (Apache-2.0) production layer for agent-built software — auth, global + China billing, multi-tenancy and an AI gateway in one command.

Skip to production.

The production layer for agent-built software: auth, billing for global and China rails, multi-tenancy and an AI gateway in one command, running locally with zero keys. You own the code.

Nebutra-Sailor is an open-source (Apache-2.0) monorepo template, scaffolded with one command (npx create-sailor@latest my-app, zero questions) and run on your own infrastructure (licensing). It ships everything a modern B2B SaaS needs — multi-tenant auth, role-based access control, billing, transactional email, an AI gateway, and observability — wired together and ready to pnpm dev with an empty .env.

There is no hosted Nebutra API, no per-customer API key, and no @nebutra/sdk package: the code you get from create-sailor is your product's backend. You call it the way you'd call any code in your own repo — through the backends/gateway Hono REST API it ships, or directly from the @nebutra/* packages in your app.

Stop spending your first 6 months building infrastructure. Start on day one with what matters: your product.

What's inside

Quickstart

Scaffold a project and wire up auth, permissions, and billing in your own app.

Core Concepts

Understand the architecture — multi-tenancy, RBAC, billing model, and the AI layer.

CLI

create-sailor to scaffold, nebutra for day-to-day project commands.

Gateway API

The backends/gateway REST API your scaffolded project ships with, documented via OpenAPI.

Packages

The @nebutra/* TypeScript packages you import directly — auth, permissions, billing, AI.

Database

Prisma + PostgreSQL, generated row-level security, one deploy command.

What Nebutra gives you out of the box

Platform

Nebutra-Sailor is a Turborepo monorepo. backends/gateway — the sole business API; see Architecture — runs on Hono with OpenAPI, mounted in-process inside apps/web at app/api/[[...route]] by default (GATEWAY_MODE=embedded) or standalone (GATEWAY_MODE=external). The frontend apps run on Next.js 16 with Tailwind v4.

A default scaffold includes:

AppDescription
webThe authenticated dashboard (Next.js 16), with the gateway mounted at /api/[[...route]]
landingThe public marketing site
authThe Better Auth login center
mail-previewLocal preview server for transactional email templates
backends/gatewayThe Hono REST API — the only place business endpoints belong
sailor-docsThis documentation site (Fumadocs)

Nebutra's own instance additionally runs studio (Sanity CMS) and storybook (component playground) — neither ships in the default scaffold.

Get support

  • GitHub Issues: github.com/nebutra/nebutra-sailor — bug reports and feature requests
  • Email: tseka@nebutra.com — for support plans and partnership inquiries
  • Licensing: Apache-2.0, free for any use — see Licensing

How is this guide?

Edit on GitHub

Last updated on

On this page

Skip to production.
What's inside
What Nebutra gives you out of the box
Platform
Get support