---
title: "TrailBase backend in one executable on a VPS · CloudSat"
description: "Run TrailBase on a CloudSat VPS: an open-source Firebase alternative in one executable, with SQLite, type-safe REST and realtime APIs, auth and an admin UI."
url: https://cloudsat.io/apps/deploy-trailbase
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Development](https://cloudsat.io/apps/category/developer-tools)

# TrailBase on a VPS

TrailBase is an open-source backend in one executable: SQLite with type-safe REST and realtime APIs, authentication, an admin UI and a WebAssembly runtime.

[Deploy TrailBase](https://dash.cloudsat.io/console/deploy?image=app%3Atrailbase&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About TrailBase

TrailBase packs a backend into one executable: SQLite storage (Postgres is experimental from v0.28), type-safe REST and realtime APIs, authentication with an optional auth UI, and a WebAssembly runtime built on Wasmtime for custom logic. The server is OSL-3.0, and the client libraries are Apache-2.0.

One process with an embedded database means no database server to run on your CloudSat plan, and a backup is a copy of one directory. It fits prototypes, mobile app backends and internal tools.

After deploy TrailBase listens on port 4000, with the admin UI at `/_/admin/`. On first start it creates the admin `admin@localhost` with a random password, which our team saves in `/root/app-credentials.txt`.

## What you get with TrailBase

- Type-safe REST and realtime APIs over SQLite
- Built-in authentication with an optional login UI
- Admin UI for tables, users and settings
- WebAssembly runtime for custom logic
- Config, data and secrets in one `traildepot` folder

## TrailBase use cases

- Back a mobile or single-page app with auth and live data
- Prototype a product without running a database server
- Replace a hosted backend service for a small internal tool

## After you deploy TrailBase

1. When the server is **Running**, SSH in and read the admin email and password in `/root/app-credentials.txt`.
2. Open `http://<server IP>:4000/_/admin/` and sign in; `trail user change-password` and `trail user change-email` update them later.
3. Create tables and record APIs in the admin UI.
4. Serve TrailBase over HTTPS on your domain through a reverse proxy before clients connect.

## TrailBase ports

Open these in your firewall if you use one: `4000/tcp API and admin UI`.

## TrailBase FAQ

### Where does TrailBase keep its data?

In the `traildepot` directory, which holds configuration, databases and secrets. Copy that folder or snapshot the server for backups.

### Can TrailBase use PostgreSQL?

Experimentally, from v0.28 on. SQLite remains the default and the best-supported option.

**Disclaimer.** The TrailBase project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like TrailBase

[All apps in Development](https://cloudsat.io/apps/category/developer-tools)

- [PocketBase](https://cloudsat.io/apps/deploy-pocketbase): Databases PocketBase is an open-source backend in one Go binary: SQLite with realtime subscriptions, auth, file storage and an admin dashboard. Still pre-1.0.
- [Supabase](https://cloudsat.io/apps/deploy-supabase): Databases Supabase bundles PostgreSQL with authentication, auto-generated REST APIs, realtime, file storage and edge functions, plus the Studio dashboard to run it.
- [Appwrite](https://cloudsat.io/apps/deploy-appwrite): Development Appwrite is an open-source backend server: auth, databases, storage, functions, messaging and realtime APIs, self-hosted on your own VPS.
- [Apache Pulsar](https://cloudsat.io/apps/deploy-apache-pulsar): Development Apache Pulsar combines messaging and streaming in one system, with tenants, namespaces, tiered storage and geo-replication, deployed here as a standalone node.
- [Atheos](https://cloudsat.io/apps/deploy-atheos): Development Atheos is a self-hosted cloud IDE and the maintained fork of Codiad: edit code in the browser with Git built in, plugins and per-user permissions.
- [code-server](https://cloudsat.io/apps/deploy-code-server): Development code-server serves VS Code from a remote machine to any browser. Your editor, terminal and extensions follow you, while builds run on the server's CPU.
