selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

tesseral logo

Self-host tesseral

v0.0.0-test.0

Open-source auth infrastructure for B2B SaaS

AlphaOpen SourceMIT
Updatedlast year
LanguageTypescript
Setup difficultyAdvanced
Stars
1 140
Ports
3001 (Internal API), 3003 (Background worker), 3000 (Management console), 3002 (Vault UI)
Requires
KMS (AWS KMS compatible), Nginx (reverse proxy), PostgreSQL, S3-compatible Object Storage, SES (email sending)
Install with Docker Compose
tesseral screenshot 1tesseral screenshot 2tesseral screenshot 3tesseral screenshot 4tesseral screenshot 5tesseral screenshot 6tesseral screenshot 7tesseral screenshot 8tesseral screenshot 9tesseral screenshot 10

What is tesseral?

Tesseral is an API-first authentication service designed for business software (B2B SaaS). It handles multi-tenancy where each customer (organization) controls their own login methods and user management through self-serve settings pages. The platform includes pre-built, customizable login pages, magic links, social login (Google, GitHub, Microsoft), enterprise SSO via SAML and OIDC, directory sync via SCIM, role-based access control, multi-factor authentication with TOTP and passkeys, API key management for machine-to-machine auth, user invitations, audit logs, and webhooks for real-time sync. Tesseral is not a library but a standalone service you run yourself — the repository provides a docker-compose.yaml that spins up the internal API, background worker, management console, vault UI, PostgreSQL, S3-compatible storage, KMS, SES, and nginx. It is licensed MIT and developed by Tesseral (Codomain Data Corporation).

tesseral alternatives

Should you self-host tesseral?

tesseral scores 49/100 on selfhost.directory (how scoring works) and ranks #23 of 40 in Authentication. It has 1 140 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is keycloak (86/100, 37 809 stars). It scores higher overall, so compare the two before you pick. See tesseral vs keycloak side by side.

Features

  • API Key Management
  • Audit Logs
  • Hosted customizable login pages
  • Magic links (email)
  • Multi-factor authentication (MFA)
  • Multi-tenant B2B authentication
  • OIDC SSO
  • Passkeys (WebAuthn)
  • Role-Based Access Control (RBAC)
  • SAML SSO
  • SCIM provisioning
  • Social login (Google, GitHub, Microsoft)
  • User Impersonation
  • User Invitations
  • Webhooks

tesseral README



Tesseral

Tesseral is open source auth infrastructure for business software (i.e., B2B SaaS).

Tesseral is a multi-tenant, API-first service designed to run on the cloud. It is not an authentication library tied to a particular language or framework; Tesseral works with any tech stack.

How to install tesseral

Install tesseral with Docker Compose

Environment variables
.env file with TESSERAL_INTERNAL_API_*, CONSOLE_*, TESSERALBACKGROUNDWORKER_*, AWS_*, SMTP_TRANSPORT variables

services: tesseral-internal-api: build: dockerfile: cmd/tesseral-internal-api/Dockerfile context: . depends_on: postgres: condition: service_healthy environment: TESSERAL_INTERNAL_API_DB_DSN: "postgres://postgres:password@postgres:5432/postgres" env_file: - .env ports: - "3001:3001" tesseral-background-worker: build: dockerfile: ./cmd/tesseral-background-worker/Dockerfile context: . depends_on: postgres: condition: service_healthy environment: TESSERAL_BACKGROUND_WORKER_DB_DSN: "postgres://postgres:password@postgres:5432/postgres" ports: - "3003:3003" env_file: - .env console: command: bash -c "npm i --force && npm run dev" env_file: - .env expose: - 3000 image: node:22.11.0 ports: - "3000:3000" volumes: - ./console:/console:cached working_dir: /console kms: environment: KMS_REGION: ${AWS_DEFAULT_REGION} PORT: 4566 expose: - 4566 image: nsmithuk/local-kms:latest ports: - 4566:4566 - 4599:4566 volumes: - ./.local/kms/data/:/data/ - ./.local/kms/seed.yaml:/init/seed.yaml nginx: image: nginx:1 ports: - "80:80" - "443:443" restart: always volumes: - ./.local/nginx:/etc/nginx/conf.d postgres: image: postgres:15.8 environment: POSTGRES_PASSWORD: "password" expose: - 5432 ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "PGPASSWORD=password pg_isready -U postgres -d postgres"] interval: 10s retries: 5 start_period: 30s timeout: 10s volumes: - ./.local/postgres:/var/lib/postgresql/data - ./.local/tmp:/tmp/local s3: image: adobe/s3mock:latest environment: - initialBuckets=tesseral-user-content - root=containers3root - retainFilesOnExit=true ports: - 9090:9090 volumes: - ./.local/s3:/containers3root ses: build: dockerfile: ./.local/ses/Dockerfile context: . environment: AWS_SES_ACCOUNT: ${AWS_SES_ACCOUNT} SMTP_TRANSPORT: ${SMTP_TRANSPORT} working_dir: /srv/www/dist ports: - 8005:8005 volumes: - ./.local/ses/output:/output vault-ui: command: bash -c "npm i --force && npm run dev" environment: UI_BUILD_IS_DEV: 1 expose: - 3002 image: node:22.11.0 ports: - "3002:3002" volumes: - ./vault-ui:/vault-ui:cached working_dir: /vault-ui

Development-focused docker-compose; production deployment may differ.

tesseral releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…