Self-host cube
v1.6.77Open-source semantic layer for AI, BI and embedded analytics
- Stars
- 21 190
- Ports
- 4000 (HTTP API (JSON/GraphQL)), 15432 (PostgreSQL-compatible SQL API)
What is cube?
Cube Core is an open-source semantic layer that lets teams define metrics, dimensions, joins, and access rules once in code, then expose them through SQL, REST, and GraphQL APIs to any downstream application — BI tools, custom embedded analytics, or AI agents. It works with cloud data warehouses like Snowflake, Databricks, and BigQuery, query engines like Presto and Amazon Athena, and application databases like Postgres. Cube Core has a built-in relational caching engine called Cube Store for sub-second latency and high concurrency. Unlike most proprietary semantic layers tied to a single platform, Cube Core is standalone and headless without its own UI, enabling developers to build their own analytics experience.
cube alternatives
CubePlexA self-hosted AI workspace giving teams a persistent agent with shared context, approved tools, isolated execution, and chat platform connections.CompareCubePlex with cube
MetabaseSelf-hosted, open-source BI tool with dashboards, a no-code query builder, a SQL editor, Metabot AI answers and embedding; run it in Docker or as a Java JAR.CompareMetabase with cube
lightdashLightdash is an open-source, self-hosted BI platform with a governed metrics layer, AI agents, dashboards, and data apps for modern data teams.Comparelightdash with cube
Wren AI OSSOpen-source, self-hosted GenBI engine: an MDL semantic layer and MCP server that turn natural-language questions into governed SQL across 20+ data sources.CompareWren AI OSS with cube
firebolt-coreA free, self-hosted analytical database with PostgreSQL SQL, Iceberg support, and distributed query execution scaling from laptop to enterprise clusters.Comparefirebolt-core with cube
databendSelf-hosted, open-source data warehouse in Rust for large-scale analytics plus vector and full-text search, with Python UDF sandboxes and git-like data branching.Comparedatabend with cube
Helical InsightHelical Insight is a self-hosted, open-source BI platform with AI analytics, pixel-perfect reporting, dashboards, SSO, multi-tenancy, embedding — all free under AGPL-3.0.CompareHelical Insight with cube
SLayerSelf-hosted semantic layer letting AI agents query warehouses via structured requests with runtime formulas instead of raw SQL. Supports multiple databases.CompareSLayer with cube
All self-hosted alternatives to dbt Semantic Layer → All self-hosted alternatives to LookML →
Should you self-host cube?
cube scores 72/100 on selfhost.directory (how scoring works) and ranks #4 of 10 in Data Management. It has 21 190 GitHub stars, +237 in the last 30 days.
It shipped 102 stable releases in the past year. The latest, v1.6.77, came out on 6 November 2026. New versions land roughly every 1 days.
Setup is advanced: plan for several services and some ongoing maintenance. It is Other-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is OpenBB (87/100, 75 209 stars). It scores higher overall, so compare the two before you pick. See cube vs OpenBB side by side.
Features
- GraphQL API
- Query caching
- REST API
- Semantic Layer
- SQL API
cube README
Website • Docs • Examples • Blog • Slack • X
Cube Core is the open-source semantic layer. Define metrics, dimensions, joins, and access rules once in code, then expose them through SQL, REST, and GraphQL APIs to anything downstream — BI tools, custom applications, or AI agents. Cube Core is headless: it doesn't ship a UI, so you can build the analytics experience that fits your product.
More in Data Management
DatabunkerSecure Vault for Customer PII/PHI/PCI/KYC Records
datahubSelf-hosted open-source GIS for harmonizing and exploring spatiotemporal data across health, demographic, and environmental domains with interactive dashboard and API.
DatasetteSelf-hosted, open-source tool that turns SQLite databases into an explorable website and JSON API, with facets, full-text search, SQL queries and plugins.
DataverseDataverse is a self-hosted, open-source research data repository with DOI support, versioning, and rich metadata for sharing and preserving datasets.
diskoverDiskover Community Edition is a self-hosted, open-source file indexer using Elasticsearch to catalog metadata, enabling search, analytics, and cost optimization.
DreamFactoryDreamFactory is a self-hosted, open-source platform that instantly generates secure REST APIs from any database with RBAC, SSO, and MCP server for AI integration.
elasticsearchOpen-source distributed search engine that handles structured, unstructured, and vector data for real-time search, observability, and AI workloads.
farmOSSelf-hosted, open-source farm record keeping web app built on Drupal: map fields, track assets and logs, collect sensor data, and use a JSON:API.
fleetbaseOpen-source logistics operating system for dispatch, fleet tracking, warehouse operations and finance. Self-host on your infrastructure with Docker Compose.
Form.ioSelf-hosted, open-source form and API platform with drag-and-drop builder, REST APIs, MongoDB backend, and enterprise features like PDF generation and RBAC.
GarageHQGarage is a lightweight, self-hostable, and geo-distributed S3-compatible object storage system designed for high resilience and simplicity.
GibbonSelf-hosted, open-source school platform for K-12: student records, lesson planner, timetable, attendance, markbook, admissions and messaging on PHP and MySQL.

0 comments