§ DOCUMENTATION — GETTING STARTED

From zero to your first query, in three commands.

Install the CLI, sign in, create a PostgreSQL project on fr-par-1 (Scaleway, Paris). Everything below also works from the web console and the REST API.

No credit card · Default region fr-par-1 (Scaleway, Paris) · PostgreSQL 17.4

§ 01 — CLI & AUTHENTICATION

Install the CLI and sign in

The Lampion CLI drives the whole platform from your terminal. On your first sign-in, your personal organization is created and you become its owner.

bashinstall & login
# 1 · install the CLI (Homebrew)
$ brew install lampion/tap/lampion

# 2 · sign in — Google, GitHub, or email SSO
$ lampion auth login
signed in · personal org created · owner role

Three ways to sign up

Google SSO
One click, no password to remember. Personal organization created automatically.
GitHub SSO
Ideal if your workflow is centered around GitHub. Same experience, same speed.
Email
Classic sign-up with a strong password. You’re set.

You start on the Free plan (3 projects, 3 branches per project), with no credit card.

§ 02 — PROJECT

Create a PostgreSQL project

A project is a full PostgreSQL database: branching, monitoring, scale to zero, and backups built in. The default region is fr-par-1, hosted by Scaleway in Paris.

Clouds & regions

fr-par-1
Paris · Scaleway — default region
fr-par-2
Paris · Scaleway — second AZ
roadmap
More sovereign regions · coming

On creation, Lampion automatically provisions

main branch
The primary timeline of your data.
compute
A dedicated PostgreSQL 17.4 instance.
password
Generated, unique, shown only once.
connection string
Ready to use, TLS required.
bashcreation
# create a project in the fr-par-1 region
$ lampion projects create --name my-app --region fr-par-1
jsonserver response
{
  "id": "abc123",
  "name": "my-app",
  "region": "fr-par-1",
  "endpoint": "ep-morning-frost-84721.fr-par-1.lampion.cloud",
  "connection_string": "postgresql://cloud_admin:••••
    @ep-morning-frost-84721.fr-par-1.lampion.cloud/neondb?sslmode=require"
}
§ 03 — CONNECTION

Connect to the database

Copy the connection string from the console or the response above, then use the *.fr-par-1.lampion.cloud endpoint with your favorite tool. TLS is required — your data is encrypted in transit.

bashpsql — native PostgreSQL client
# direct connection
$ psql "postgresql://cloud_admin:••••@ep-morning-frost-84721.fr-par-1.lampion.cloud/neondb?sslmode=require"
psql (17.4) — SSL connection (protocol: TLSv1.3)
neondb=>
javascriptNode.js — pg / node-postgres
# via the DATABASE_URL variable
import pg from 'pg'

const pool = new pg.Pool({
  connectionString: process.env.DATABASE_URL,
  ssl: { rejectUnauthorized: true },
})

const { rows } = await pool.query('SELECT version()')
pythonPython — psycopg / asyncpg
# via the DATABASE_URL variable
import os, psycopg

with psycopg.connect(os.environ["DATABASE_URL"]) as conn:
    with conn.cursor() as cur:
        cur.execute("SELECT version()")
        print(cur.fetchone())

Connection pooling — Lampion bundles a pooler in transaction mode. The TCP proxy handles multiplexing and wake-on-connect transparently.

§ 04 — QUERIES

Run your first queries

Two ways to interact with your database: the web console SQL Editor, or directly via psql and your application client.

SQL Editor (web console)

multiple tabs
Work on several queries in parallel.
history
Find your last 100 queries.
EXPLAIN ANALYZE
Execution plan in one click.
CSV export
Download the results.
meta-commands
\dt, \d, \l supported just like in psql.
saved queries
Organize your reusable snippets.
sqlpsql
# create a table, insert, read
neondb=> CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email TEXT UNIQUE,
  created_at TIMESTAMPTZ DEFAULT now()
);
CREATE TABLE
neondb=> INSERT INTO users (email) VALUES ('[email protected]');
INSERT 0 1
neondb=> SELECT * FROM users;
 id |       email       |         created_at
----+-------------------+----------------------------
  1 | [email protected] | 2026-08-04 10:23:45.123+00

Scale to zero — after a few minutes of inactivity, the compute is suspended. The next connection wakes it up automatically, with no action on your part.

§ 05 — BRANCHING

Create a branch of your data

Branching is Lampion’s killer feature. Like git branch, but for your data: each branch is an instant CoW (Copy-on-Write) fork that shares unmodified pages with its parent branch.

Use cases

migration
Branch, test your ALTER TABLE, validate. No risk to production.
staging
A full fork of your production database, read/write, with no copy.
CI/CD preview
One branch per pull request, automatable via the API.
bashcreate a branch
# instant CoW fork from main
$ lampion branches create --from main --name staging
→ branch staging · endpoint ep-staging.fr-par-1.lampion.cloud

How it works

  1. 01Lampion captures the current LSN (Log Sequence Number)
  2. 02The pageserver creates a CoW fork at that LSN
  3. 03A new compute starts on that fork
  4. 04Seed scripts run automatically
  5. 05You receive a dedicated connection string
§ 06 — OBSERVABILITY

Observe your database in real time

Every project has a monitoring dashboard accessible from the console, with no instrumentation to install.

connections
Total, active, idle, waiting — your database’s network load in real time.
performance
Cache hit ratio, committed/rolled back transactions, compute CPU and memory.
storage
Logical, physical, and WAL (Write-Ahead Log) size, per database.
history
Interactive charts with regular snapshots; extended window via the API.
query analysis
Top slow queries via pg_stat_statements, sorted by time or call count.
§ 07 — BACKUP

Back up & restore

Two complementary mechanisms: PITR (Point-In-Time Recovery) snapshots down to the LSN, and pg_dump export in standard SQL format.

Snapshots (PITR)

Capture your database’s exact state at a point in time via the pageserver’s LSN, then restore to a new branch. Your production data is never touched.

bashsnapshots (PITR)
# capture a snapshot at the current LSN
$ lampion backups create --branch main --name before-migration
→ bk-42 · lsn 0/15A2C08
# restore to a new branch
$ lampion backups restore bk-42
→ branch restored-bk-42

pg_dump

Export your database in standard SQL format: migrating to another provider, archiving, or debugging. Table filtering available.

bashpg_dump export
# export the whole database
$ lampion dump --endpoint ep-abc > backup.sql
# export a single table
$ lampion dump --endpoint ep-abc --table users > users.sql
RBAC — GRANULAR ROLES
owner · developer
viewer · analyst
§ 08 — TEAM & RBAC

Invite your team

Lampion is built for teamwork. Invite colleagues and assign granular RBAC (Role-Based Access Control) roles.

Role Permissions Use case
owner Everything: create, delete, invitations, webhooks, audit. Team admin
developer Create/edit projects, branches, queries, API keys. Day-to-day developer
viewer Read-only (GET only). Stakeholder, QA, monitoring
analyst Read-only, anonymized branches, dedicated connection string (masked data). Data analyst, contractor without PII
Every action (creation, invitation, role change, deletion) is logged in the organization’s audit trail, available to owners.
§ 09 — REST API

Automate everything via the API

Everything you do in the console can be done via the REST API. Create an API key in Settings › API Keys, then authenticate each request with a Bearer token.

bashauthentication
# every request requires a Bearer token
$ curl -H "Authorization: Bearer lmp_live_…" \
    https://api.lampion.cloud/v1/projects

API key format

prefix
lmp_live_
scope
current organization
permissions
inherited from a role (e.g. developer)
display
the key is shown only once

Full reference — 40+ endpoints covering projects, branches, computes, SQL, metrics, and webhooks in the API documentation.

§ 10 — GO FURTHER

Advanced features

You know the basics. Here’s how to get the most out of Lampion.

seeding
Attach SQL scripts that run on every new branch — fixtures, utility functions.
query replay
Replay one branch’s queries on another to catch regressions before a merge.
read replicas
Add read-only replicas to spread the analytical load.
webhooks
Signed HTTP notifications (HMAC-SHA256) on creation, deletion, suspend/resume.
extensions
pgvector, PostGIS, pg_cron, and more, installed in one click.
data residency
Check where your data resides: region, datacenter, provider, certifications.

Each topic is detailed in the guides and API reference.

Three commands
and your database is live.

Create an account No credit card · fr-par-1 · PostgreSQL 17.4