Skip to content

About

Open-source infrastructure platform for cloud-native teams

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3,950 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alethia Labs

License: AGPL v3 CI coverage go coverage

An open-source, multi-cloud internal developer platform for provisioning and managing infrastructure through a web control plane and CLI, backed by GitOps reconciliation.

© 2026 Alethia Labs — open core (see Licensing). Maintained by Borislav Borisov (LinkedIn).

Some internal component names — the Alethia control-plane app, the alethia CLI, and core — are codenames retained from earlier development and will be renamed in a later pass. The product is Alethia Labs.

Architecture

Component Role
Alethia (apps/console) Web control plane — Next.js dashboard, Postgres (Drizzle) state store, Better Auth, configuration management, job orchestration
alethia (apps/cli) Go CLI — authentication, project management, plan/deploy/destroy operations, runner registration
Runner (apps/runner) Go runner — claims provisioning jobs, runs OpenTofu behind a fail-closed verification gate, streams logs back
core (packages/core) Shared Go library — cloud provider interfaces, embedded OpenTofu templates, the verify policy gate and drift posture
docs (apps/docs) Documentation site (Next.js / Fumadocs)
ArgoCD In-cluster GitOps reconciler installed during bootstrap

Tech Stack

Layer Technology
Web Control Plane Next.js 16, React 19, TypeScript 5.9, Postgres + Drizzle, Better Auth, Tailwind CSS 4, shadcn/ui
CLI Go 1.27, Cobra, Charmbracelet TUI (bubbletea, huh, lipgloss)
Runner Go 1.27, OpenTofu exec, multi-cloud SDKs (AWS, GCP, Azure)
Documentation Next.js 16, Fumadocs, MDX
Infrastructure OpenTofu (per-cloud project templates), Hetzner control plane + runner fleet, ArgoCD
Monorepo pnpm workspaces, Turborepo, Go workspaces
CI/CD GitHub Actions, GoReleaser, release-please

Monorepo Structure

apps/
  console/           — Web control plane (Next.js + Postgres/Drizzle + Better Auth)
  cli/               — CLI (Go + Cobra + Charmbracelet)
  runner/            — Provisioning runner (Go)
  docs/              — Documentation site (Fumadocs)
  marketing/         — Public marketing site (hosted only)
  blog/              — Blog (Next.js + Velite)
  admin/             — Internal staff support dashboard
packages/
  core/              — Shared Go library (cloud providers, OpenTofu templates, verify, drift)
  ui/                — Shared shadcn/ui design system (@repo/ui)
  brand/             — Logo, design tokens, metadata generators
  email/             — Transactional email infrastructure (SES + react-email)
  platform/          — Schema owned by apps/admin, re-exported into console
  support/           — Support-case schema, storage, validations
  plan-catalog/      — Plan display catalog (console billing + marketing pricing)
  assets/            — Static files synced into each app's public/
  eslint-config/     — ESLint configurations
  typescript-config/ — Shared tsconfig
infra/
  templates/         — Project IaC templates (AWS, GCP, Azure, Hetzner)
  connector/         — Cloud account bootstrap scripts
  cp-hetzner/        — Control-plane infrastructure
  sandbox/           — The developer sandbox box
ee/                  — Enterprise tier (commercially licensed)
deploy/              — Self-host bundle: compose overlays, Caddy, Helm chart, install.sh

## Getting Started

### Prerequisites

- Node.js 22+ (see `.nvmrc`)
- pnpm 9+
- Go 1.27+
- Docker + Compose v2 (for the self-host bundle: Postgres + S3-compatible storage)
- An SSH key and a Hetzner Cloud token, if you want a dev environment (see below)

### Install the `alethia` CLI

**macOS / Linux** (`curl`):

```bash
curl -fsSL https://get.alethialabs.io | sh

Windows (PowerShell):

irm https://get.alethialabs.io/install.ps1 | iex

Homebrew (macOS / Linux):

brew install alethialabs-io/tap/alethia

Docker:

docker run --rm ghcr.io/alethialabs-io/alethia --version

Pin a version with ALETHIA_VERSION=v0.2.0 (curl/PowerShell). While the repository is private (pre-launch), set GITHUB_TOKEN first for the curl/PowerShell installers, and HOMEBREW_GITHUB_API_TOKEN for Homebrew.

Development

The app does not run on your laptop. Each branch gets its own environment on a shared sandbox box, reachable over HTTPS:

pnpm env:up      # this branch gets a database, storage, an auth store, and a URL
pnpm env:push    # after editing — sync the working tree
pnpm env:logs    # tail the console (sign-in codes are printed here)
pnpm env:status  # every environment, who holds it, capacity

pnpm env:up prints the URL. Full detail, including how to sign in, is in .claude/skills/dev/SKILL.md and infra/sandbox/README.md.

Local dev servers are deliberately blocked — see CLAUDE.md. Building, type-checking, linting and unit tests all still run locally.

# alethia CLI (Go)
cd apps/cli && go run .

Build

pnpm build

Test

# Alethia unit tests
pnpm -F console test

# Alethia E2E
pnpm -F console test:e2e

# Go tests
cd apps/cli && go test ./...

Infrastructure

The infra/ directory contains all OpenTofu configurations. The managed runner fleet is sized by an in-app scaler (apps/console/lib/fleet/), not by a Lambda:

  • cp-hetzner/ — The control plane: one Hetzner VPS running the self-host bundle behind Caddy and a Cloudflare tunnel
  • sandbox/ — The developer sandbox box, one environment per branch
  • templates/project/ — Per-cloud IaC templates applied into user accounts (AWS EKS, GCP GKE, Azure AKS with associated networking, databases, and security groups)
  • templates/runner/ — Self-hosted runner deployment template
  • connector/ — Cloud account bootstrap (IAM cross-account roles for AWS, workload identity federation for GCP, federated identity for Azure)

Self-Hosting

Run the whole platform (console · docs · Postgres · object storage · runner) as one docker-compose bundle on any cloud VM:

curl -fsSL https://get.alethialabs.io/self-host \
  | DOMAIN=alethia.example.com ACME_EMAIL=you@example.com sh

See the Self-Hosting guide (quickstart, configuration, per-cloud Terraform, upgrading).

Documentation

  • Docs site — hosted documentation portal
  • CLAUDE.md — the operating contract (worktrees, branch flow, running the app)
  • ARCHITECTURE.md — per-component reference
  • TESTING.md — the testing bar and coverage gates
  • Product, GTM and feature specs live in the private alethialabs-io/dataroom repo.

Licensing

Alethia Labs is open core:

  • The core is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only) — see LICENSE.
  • Cloud / enterprise features under ee/ are commercially licensed (LicenseRef-Alethia-Commercial); production use requires a subscription.
  • A directory-by-directory map is in LICENSING.md; third-party attributions are in NOTICE.

Contributions require signing our CLA — see CONTRIBUTING.md. © 2026 Alethia Labs.

About

Open-source infrastructure platform for cloud-native teams

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages