π Cube Core is open-source semantic layer for AI, BI and embedded analytics
20,817
stars
11,165
commits
Rust
primary language
Sep 14, 2026
updated
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.
Cube Core works with all SQL data sources, including cloud data warehouses like Snowflake, Databricks, and BigQuery; query engines like Presto and Amazon Athena; and application databases like Postgres. It has a built-in relational caching engine to provide sub-second latency and high concurrency for API requests.

Learn more about connecting Cube to data sources and analytics & visualization tools.
Every BI tool relies on a semantic layer as its core engine β the component that defines metrics, dimensions, and business logic and hides the complexity of the underlying data sources. Most semantic layers are proprietary, tightly coupled to a single BI platform, and can't be reused across other tools.
Cube Core is an open, standalone semantic layer that any analytics application or AI agent can consume through standard APIs. Define your metrics once and use them everywhere β internal BI, embedded analytics, AI agents β without re-implementing the model in each place.
You can run Cube Core locally or self-host it with Docker.
Once Docker is installed, in a new folder for your project, run:
docker run -p 4000:4000 \
-p 15432:15432 \
-v ${PWD}:/cube/conf \
-e CUBEJS_DEV_MODE=true \
cubejs/cube
Then open http://localhost:4000 in your browser to continue setup.
Development mode is an authentication bypass. In the official images β whose entrypoint is the
cubejsCLI βCUBEJS_DEV_MODE=truealso forcesNODE_ENV=development, which switches off JWT verification on the REST (JSON) and GraphQL APIs, so they accept requests with no token at all. Playground and its supporting endpoints are served with no authentication either, so anyone who can reach the instance is handed a ready-to-use API token (and can mint others carrying any security context, signed with your API secret), can read your data model, and can overwrite it and your.env. With noCUBEJS_SQL_PASSWORDset, the SQL API accepts any credentials as well, allowing arbitrary SQL against connected data sources.This is intentional β development mode is designed to run on a developer's local machine for ease of use and debugging. Never expose it to the internet or use it in production. Using development mode in the Cube cloud platform is highly discouraged, as it bypasses the platform's security model. Cube is also in development mode whenever
NODE_ENVis notproduction, butcubejs serverand the official images already set it toproduction. SeeCUBEJS_DEV_MODE.
For a step-by-step guide, see the docs.
Cube is our commercial product β an agentic analytics platform built on Cube Core. Same semantic layer underneath, plus the rest of what makes it a full BI platform: Analytics Chat, workbooks and dashboards, embedded analytics surfaces, managed deployment, RBAC, multi-tenancy, and integrations with Tableau, Power BI, Excel, and Google Sheets.
The data model is fully compatible both ways: a model you build in Cube Core runs unchanged in Cube, and vice versa. Cube Core stays open-source and is what we run inside Cube ourselves.
For more on how we think about the split, see The Future of Cube Core and Cube.
For a tour of what's in Cube today, watch the workshop:
There are many ways you can contribute to Cube Core! Here are a few possibilities:
All sorts of contributions are welcome and extremely helpful π Please refer to the contribution guide for more information.
Cube Client is MIT licensed.
Cube Backend is Apache 2.0 licensed.
(top 30 of 369)
Rust
53.3%
TypeScript
30.0%
MDX
12.8%
JavaScript
3.2%
π Cube Core is open-source semantic layer for AI, BI and embedded analytics
20,817
stars
11,165
commits
Rust
primary language
Sep 14, 2026
updated
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.
Cube Core works with all SQL data sources, including cloud data warehouses like Snowflake, Databricks, and BigQuery; query engines like Presto and Amazon Athena; and application databases like Postgres. It has a built-in relational caching engine to provide sub-second latency and high concurrency for API requests.

Learn more about connecting Cube to data sources and analytics & visualization tools.
Every BI tool relies on a semantic layer as its core engine β the component that defines metrics, dimensions, and business logic and hides the complexity of the underlying data sources. Most semantic layers are proprietary, tightly coupled to a single BI platform, and can't be reused across other tools.
Cube Core is an open, standalone semantic layer that any analytics application or AI agent can consume through standard APIs. Define your metrics once and use them everywhere β internal BI, embedded analytics, AI agents β without re-implementing the model in each place.
You can run Cube Core locally or self-host it with Docker.
Once Docker is installed, in a new folder for your project, run:
docker run -p 4000:4000 \
-p 15432:15432 \
-v ${PWD}:/cube/conf \
-e CUBEJS_DEV_MODE=true \
cubejs/cube
Then open http://localhost:4000 in your browser to continue setup.
Development mode is an authentication bypass. In the official images β whose entrypoint is the
cubejsCLI βCUBEJS_DEV_MODE=truealso forcesNODE_ENV=development, which switches off JWT verification on the REST (JSON) and GraphQL APIs, so they accept requests with no token at all. Playground and its supporting endpoints are served with no authentication either, so anyone who can reach the instance is handed a ready-to-use API token (and can mint others carrying any security context, signed with your API secret), can read your data model, and can overwrite it and your.env. With noCUBEJS_SQL_PASSWORDset, the SQL API accepts any credentials as well, allowing arbitrary SQL against connected data sources.This is intentional β development mode is designed to run on a developer's local machine for ease of use and debugging. Never expose it to the internet or use it in production. Using development mode in the Cube cloud platform is highly discouraged, as it bypasses the platform's security model. Cube is also in development mode whenever
NODE_ENVis notproduction, butcubejs serverand the official images already set it toproduction. SeeCUBEJS_DEV_MODE.
For a step-by-step guide, see the docs.
Cube is our commercial product β an agentic analytics platform built on Cube Core. Same semantic layer underneath, plus the rest of what makes it a full BI platform: Analytics Chat, workbooks and dashboards, embedded analytics surfaces, managed deployment, RBAC, multi-tenancy, and integrations with Tableau, Power BI, Excel, and Google Sheets.
The data model is fully compatible both ways: a model you build in Cube Core runs unchanged in Cube, and vice versa. Cube Core stays open-source and is what we run inside Cube ourselves.
For more on how we think about the split, see The Future of Cube Core and Cube.
For a tour of what's in Cube today, watch the workshop:
There are many ways you can contribute to Cube Core! Here are a few possibilities:
All sorts of contributions are welcome and extremely helpful π Please refer to the contribution guide for more information.
Cube Client is MIT licensed.
Cube Backend is Apache 2.0 licensed.
(top 30 of 369)
Rust
53.3%
TypeScript
30.0%
MDX
12.8%
JavaScript
3.2%