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.

Bytebase logo

Self-host Bytebase

3.24.1

Database governance for schema change, access and audit

ReleaseOpen CoreMIT
docker run --rm --init --name bytebase --publish 8080:8080 --pull always --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase:latest
Updated5 days ago
LanguageGo
Setup difficultyModerate
Stars
14 691
Port
8080 (HTTP web console and API of the Bytebase server)
Docker
bytebase/bytebase
Bytebase screenshot 1

What is Bytebase?

Bytebase alternatives

All self-hosted alternatives to DataGrip → All self-hosted alternatives to Flyway → All self-hosted alternatives to Jira →

Should you self-host Bytebase?

Bytebase scores 70/100 on selfhost.directory (how scoring works) and ranks #11 of 41 in Database Management. It has 14 691 GitHub stars, +153 in the last 30 days.

It shipped 21 stable releases in the past year. The latest, 3.24.1, came out on 30 October 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Plane (86/100, 62 221 stars). It scores higher overall, so compare the two before you pick. See Bytebase vs Plane side by side.

Features

  • Audit LoggingEnterprise plan gives unlimited retention; Community plan shows none per pricing table
  • Broad database engine support
  • Built-in AI assistant
  • Database change management
  • Data classificationPaid plans (Pro/Enterprise)
  • Dynamic data maskingPaid plans (Pro/Enterprise)
  • GitOps / database-as-code
  • Just-in-time accessPaid plans (Pro/Enterprise); not in the Community plan
  • MCP Server
  • Policy as Code
  • REST and gRPC API
  • Role-based Access Control
  • SQL review and linting
  • Text-to-SQL

Bytebase README

⚙️ Install • 📚 Docs • 🙋‍♀️ Book Demo

banner

What is Bytebase?

Bytebase is the open-source database governance platform. It acts as a single control plane between your users — humans and AI agents — and your databases, governing change management, access control, and compliance so every change and query is reviewed, controlled, and recorded.

middleware

It replaces the disparate tools stitched across migration scripts, SQL clients, and ticketing systems, unifying database operations in a single platform.

venn

Supported Databases and Integrations

Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Redis, MariaDB, TiDB, Snowflake, ClickHouse, Spanner, OceanBase, and more — plus integrations spanning IaC, AI, identity providers, collaboration, ITSM, log streaming, and secret managers.

integrations

Key Features

Change Management
  • GUI-Based Workflow: Request, review, deploy, and rollback changes through a web console
  • GitOps Integration: Native GitHub/GitLab integration for database-as-code workflows
  • SQL Review: 200+ lint rules to enforce SQL standards and best practices
Access Control
  • Fine-Grained RBAC: Project and workspace-level roles and permissions
  • Just-in-Time Access: Time-boxed database access grants with automatic revocation
  • Dynamic Data Masking: Column-level masking applied based on user role at query time
Compliance
  • Audit Logging: Complete audit trail of all database activities
  • Codified Policy: Manage policies as code via Terraform Provider and API
  • Data Classification: Identify and tag sensitive data across your databases
AI
  • MCP Server: Connect AI agents and IDEs to Bytebase through the Model Context Protocol
  • Text-to-SQL: Generate and refine queries in the SQL Editor with AI assistance
  • Page Agent: Built-in AI assistant that guides or executes workflows from plain language requests

Quick Start

Docker
docker run --init \
  --name bytebase \
  --publish 8080:8080 \
  --volume ~/.bytebase/data:/var/opt/bytebase \
  bytebase/bytebase:latest
Kubernetes
helm install bytebase bytebase/bytebase

Visit http://localhost:8080 and follow the setup wizard.

Documentation

Use Cases

For Development Teams
  • Implement database schema version control
  • Automate database deployments through CI/CD pipelines
  • Collaborate on database changes with review workflows
For DBAs
  • Centralize database management across all environments
  • Enforce organization-wide SQL standards and policies
  • Monitor and audit all database activities
For Security Teams
  • Control data access with column-level permissions
  • Implement data masking for sensitive information
  • Maintain compliance with audit trails

Community & Support

Contributing

We welcome contributions!

# Setup a postgres database with user bbdev and database bbdev
export PG_URL=postgresql://bbdev@localhost/bbdev

# Start backend
alias r='go build -ldflags "-w -s" -p=16 -o ./bytebase-build/bytebase ./backend/bin/server/main.go && ./bytebase-build/bytebase --port 8080 --data . --debug'

# Start frontend
alias y="pnpm --dir frontend i && pnpm --dir frontend dev"

Comparisons

Star History Chart

How to install Bytebase

Install Bytebase with Docker

Environment variables
PG_URL
docker run --rm --init \
  --name bytebase \
  --publish 8080:8080 --pull always \
  --volume ~/.bytebase/data:/var/opt/bytebase \
  bytebase/bytebase:latest

Docker version must be at least 20.10.24; image supports linux/amd64 and linux/arm64

How to configure Bytebase

  • PG_URLPostgreSQL connection URI (or a file path containing one) for Bytebase's own metadata database; supports secret auto-reload when given a file path

    values: postgresql://... URI or file path

  • bytebase_aws_rds_iamPG_URL connection parameter that enables AWS RDS IAM authentication for the metadata database

    values: true

  • bytebase_aws_regionPG_URL connection parameter: AWS region used to sign RDS IAM authentication tokens
  • bytebase_gcp_cloud_sql_iamPG_URL connection parameter that enables GCP Cloud SQL IAM authentication for the metadata database

    values: true

  • bytebase_gcp_cloud_sql_instance_connection_namePG_URL connection parameter: Cloud SQL instance connection name used by the Cloud SQL connector

    values: <project:region:instance>

Bytebase releases & version history

@ Every self-hosted release, weekly

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

FAQ

How to reach us?

Sales questions go through the contact page; enterprise support needs an active contract; community technical support is via GitHub issues.

What is your cancellation policy?

Pro subscriptions can be cancelled any time; the Enterprise plan is a yearly subscription that cannot be cancelled mid-year.

Which payment methods do you accept?

Credit card for the Pro plan; credit card, wire transfers, AWS Marketplace and GCP Marketplace for Enterprise.

Is there a free trial?

Yes, the Enterprise plan can be tried for free for 14 days.

Which certifications do you have?

Bytebase states compliance with SOC 2 Type II and HIPAA.

Can the self-host version operate in an air-gapped environment?

Yes — you can deploy it in your own data center or private cloud without any external connectivity.

More in Database Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…