Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cube

> 数据库
Open source

📊 Cube Core is open-source semantic layer for AI, BI and embedded analytics

20.5K stars0 likes0 views
WebsiteGitHub

About

📊 Cube Core is open-source semantic layer for AI, BI and embedded analytics


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.

Why Cube Core?

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.

Getting Started

You can run Cube Core locally or self-host it with Docker.

Once Docker is installed, in a new folder for your project, run:

bash
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.

For a step-by-step guide, see the docs.

Cube Core vs. Cube

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.

  • Use Cube Core when you want to own the stack — a custom BI experience, deeply integrated embedded analytics, or AI agents that need a governed semantic foundation.
  • Use Cube when you want a managed, full-featured BI platform out of the box — internal analytics or customer-facing embedded analytics without building the surrounding platform yourself.

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:

Or try Cube for free.

Resources

  • Documentation
  • Getting Started
  • Examples & Tutorials
  • Architecture

Contributing

There are many ways you can contribute to Cube Core! Here are a few possibilities:

  • Star this repo and follow us on X.
  • Add Cube to your stack on Stackshare.
  • Upvote issues with 👍 reaction so we know what the demand is for particular issues to prioritize them within the roadmap.
  • Create issues every time you feel something is missing or goes wrong.
  • Ask questions on Stack Overflow with cube.js tag if others might have these questions as well.
  • Provide pull requests for all open issues and especially for those with help wanted and good first issue labels.

All sorts of contributions are welcome and extremely helpful 🙌 Please refer to the contribution guide for more information.

License

Cube Client is MIT licensed.

Cube Backend is Apache 2.0 licensed.

Issues· 1202 open

View all issuesOpen on GitHub
  • #12072

    Trino/Presto driver: tag queries with requestId, like BigQuery and ClickHouse

    Updated Sep 30, 2026
  • #6332

    PG_SQL - Internal error: Unsupported CAST from Interval(DayTime) to Timestamp(Nanosecond, None) / Data type Interval(DayTime) not supported for binary operation 'multiply' on primitive arrays

    api:sqlUpdated Sep 30, 2026
  • #3029

    rollupJoin measures are not considered when they are a SQL expression

    docspre-aggregationsUpdated Sep 30, 2026
  • #6158

    Zero-option "case" dimensions compile but don't work

    Updated Sep 30, 2026
  • #6780

    Error when defining UDF in cube 'sql' parameter

    Updated Sep 30, 2026
  • #12063

    Implement col_description so BI tools can sync member descriptions

    Updated Sep 30, 2026
  • #12053

    Trino/Presto driver: per-connection credential callback (like Snowflake's prepareConnectOptions)

    Updated Sep 30, 2026
  • #8905

    Support `LOG` and `ROUND` scalar functions with two arguments in the SQL API

    api:sqlUpdated Sep 29, 2026
  • #11317

    rollupLambda silently drops/loses data outside the last-listed rollup's build range

    Updated Sep 29, 2026
  • #12024

    type: number_agg fails schema validation unless multi_stage: true is set, but the measures reference lists it as a regular measure type

    Updated Sep 28, 2026

> Tags

Rustagentic-analyticsagentsaianalytics

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库