Cube Cloud vs Cube Core: feature cross-reference
Prepared to plan building Cube Cloud features ourselves on open-source Cube Core.
- Docs snapshot: docs.cube.dev, downloaded 2026-12-02. 337 pages plus 4 OpenAPI specs (core-data, chat, platform api: 226 operations, scim). Kept in
source/(git-ignored: it is Cube's content, for local reference). Paths such aspages/docs/...in the findings files are relative tosource/. - Core baseline:
cubejs/cube:v1.8.35, the image cubebi runs. Every Core/Cloud call was checked against the code in that image (/cube/node_modules/@cubejs-backend/*) and the Core config reference, because the docs mark availability inconsistently. Most pages carry no plan badge. - Detail:
findings/01…08hold one section per feature: behaviour a re-implementer needs, availability with evidence, Core building blocks, components to build, effort and gotchas. This README is the map; the findings are the territory.
Labels: CORE = open-source engine does it · CORE+CLOUD = engine part is Core, Cloud adds UI or automation · CLOUD-ONLY = we build it. Effort: S days · M 1–2 weeks · L 3–6 weeks · XL months (one engineer).
1. Bottom line
| Slice | Pages | Features | CORE | CORE+CLOUD | CLOUD-ONLY |
|---|---|---|---|---|---|
| 01 Charts & dashboards | 39 | 54 | 0 | 9 | 45 |
| 02 Workbooks, chat, alerts, content | 30 | 33 | 1 | 15 | 17 |
| 03 Data modeling | 42 | 28 | 15 | 7 | 6 |
| 04 Pre-aggregations & recipes | 59 | 29 | 22 | 4 | 3 |
| 05 Data sources & deployment | 69 | 38 | 11 | 12 | 15 |
| 06 Admin: AI, monitoring, users | 43 | 33 | 0 | 9 | 24 |
| 07 Embedding & Cloud APIs | 22 + specs | 40 | 5 | 4 | 31 |
| 08 Core APIs & integrations | 33 + spec | 35 | 17 | 6 | 12 |
| Total (some features appear in more than one slice) | 337 | 290 | 71 | 66 | 153 |
The engine is Core; the product is Cloud.
- Already ours (Core): modeling, access control, the query planner, pre-aggregations and Cube Store, every query API (REST, SQL, GraphQL, WebSocket), multitenancy hooks, 23 database drivers.
- Several of these carry "Enterprise" badges in the docs (ksqlDB streaming, multi-router hooks) yet work in Core.
- To build: everything a person clicks on.
- Workbooks, dashboards and controls.
- The AI agents, including rules, memories, skills, evals and the MCP server.
- Schedules, alerts and deliveries; comments and reviews.
- Users, roles, SSO and SCIM.
- Signed embedding, the Sheets/Excel/Slack add-ins, monitoring UIs, and the managed control plane.
- There is no LLM code in Core at all. I grepped the image for MCP, chat, OpenAI, Anthropic and LLM.
2. The Core foundation we build on (verified in v1.8.35)
| Capability | How to use it | Status in cubebi today |
|---|---|---|
/v1/load, /v1/meta, /v1/sql, /v1/dry-run | Query builder, catalog, generated SQL | ✅ used, proxied |
/v1/cubesql (+ /params) | Semantic SQL with MEASURE() and :name parameters. The AI agent's query tool, workbook SQL tabs | ❌ blocked by our proxy allowlist |
/v1/convert-query | Semantic SQL → REST JSON: turn agent SQL into an editable chart | ❌ not proxied |
/v1/sql-filters | Inject/replace filters inside a Semantic SQL query: dashboard controls over SQL-based tiles | ❌ not proxied |
/v1/meta?extended | Undocumented. Adds member SQL, joins, file names, pre-aggs: lineage and metadata API rebuild | ❌ not proxied |
DELETE /v1/running-query/:id | Cancel long queries (chat abort, dashboard navigation) | ❌ not proxied |
| SQL API (Postgres wire) | BI tools, notebooks, Sheets/Excel via ODBC. checkSqlAuth, canSwitchSqlUser | ❌ off (CUBEJS_PG_SQL_PORT unset) |
/cubejs-system/v1/pre-aggregations/* | list, partitions, preview, build, cancel, queue, security-contexts, timezones: backend of a Pre-Aggregations console | ❌ off (needs CUBEJS_PLAYGROUND_AUTH_SECRET) |
/v1/pre-aggregations/jobs (Orchestration API) | Trigger and poll builds from a scheduler or Airflow | ❌ off (needs jobs in CUBEJS_DEFAULT_API_SCOPES) |
logger hook / CUBEJS_AGENT_ENDPOINT_URL | Every query/log event, streamed in batches as JSON: Query History, performance and usage analytics | ❌ not collected |
Access policies with groups / userAttributes | Rewritten at compile time to securityContext.cubeCloud.{groups,userAttributes}. Put those claims in our JWT and set contextToGroups (no default; without it only group: "*" matches) | ❌ JWT has no user claims |
Dimension links (url, dashboard: <slug>) | Core adds <dim>___link_<name>_url columns: drill-through is half built | ❌ unused |
drill_members, custom granularities, compareDateRange, time_shift, multi-stage measures | Drill-down, period-over-period, rolling windows | partly (model only) |
Multitenancy: contextToAppId, contextToOrchestratorId, driverFactory, repositoryFactory, schemaVersion, scheduledRefreshContexts | Per-tenant models and data sources; per-branch "dev environments" | ❌ single tenant |
queryRewrite, checkAuth, extendContext, contextToApiScopes, JWKS | Auth, row-level security, API scopes per role | partial (checkAuth only) |
WebSocket transport (CUBEJS_WEB_SOCKETS) | Live dashboards / real-time refresh | ❌ off |
Model meta keys (ai_context, auto_run, default_ui_filters) | Core passes them through /v1/meta but nothing in Core acts on them: our app and agent must | — |
Full hook-by-hook list: findings/08 › Core extension points.
3. Capability map by product area
Each row is the deduplicated view across slices. "Effort" is to reach a usable version on Core. Details and behaviour specs are in the linked findings file.
A. Semantic layer & modeling (03, 04)
| Feature | Status | Effort | Notes |
|---|---|---|---|
Cubes, views, joins (aliases), measures incl. multi-stage, calendar cubes, multi-fact views, hierarchies, view groups, extends, Jinja/Python dynamic models | CORE | — | Tesseract planner is the default in 1.8.x |
| Access policies (member/row level, masking, conditions) | CORE | S | Needs our identity claims plus contextToGroups |
AI context (description, meta.ai_context ≤2,000 chars) | CORE+CLOUD | M | Core stores it; our agent must assemble prompts from it |
| Display metadata (format, dynamic format, currency) | CORE+CLOUD | S | Render ___format in our charts |
| Data Model IDE, dev-mode branches, AI commit messages | CLOUD-ONLY | L | repositoryFactory + schemaVersion + Git. Never use Core CUBEJS_DEV_MODE multi-user: it disables auth |
| Visual modeler (ERD) | CLOUD-ONLY | L–XL | YAML round-trip is the hard part |
| Content Validator (find reports broken by model changes) | CLOUD-ONLY | M | Needs our report store + /v1/meta diff |
| Access Policies viewer | CLOUD-ONLY | M | No API exposes policies; run the schema compiler offline |
| Designing metrics (entity-first vs metrics-first views) | guidance | — | Recipe page recipes/data-modeling/designing-metrics.md: a view-design choice, not a feature |
B. Performance (04, 05)
| Feature | Status | Effort | Notes |
|---|---|---|---|
Pre-aggregations: rollups, partitions, incremental refresh, lambda/streaming, rollup_join, indexes, export buckets | CORE | — | Running today |
| Self-hosted Cube Store cluster | CORE | M | No replication (Cloud-only); HA = redundant clusters. No Azure Blob |
| Pre-Aggregations console, build history | CORE+CLOUD | M | UI over the system endpoints (section 2) |
| Warm-up on deploy | CORE+CLOUD | S–M | Orchestration API + /readyz |
| Multi-cluster / per-tenant refresh sharding | CORE+CLOUD | M–L | contextToOrchestratorId, contextToCubeStoreRouterId |
C. Query APIs & integrations (08)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| REST, GraphQL, SQL API, WebSockets, JS SDK (React/Vue/Angular) | CORE | — | Turn on the SQL API port |
| Postgres-wire BI tools and notebooks (Superset, Metabase, Tableau, Jupyter) | CORE | S | Via the SQL API |
| Metadata API (entities, lineage, model export) | CLOUD-ONLY | M | Build on /v1/meta?extended |
| MCP server | CLOUD-ONLY | M (query subset) – L | Tools over meta/cubesql; run with the user's JWT |
| Slack app + Slack agent | CLOUD-ONLY | M–L | Needs agent + renderer |
| Google Sheets / Excel add-ins | CLOUD-ONLY | L (XL for Excel PivotTables over XMLA) | DAX/MDX APIs are Cloud-only |
dbt: cube_dbt package | CORE | S | Image lacks pip; build a custom image |
| dbt managed pull/push, Snowflake Semantic Views, Databricks Metric Views, Ossie | CLOUD-ONLY | M each | Generators over /v1/meta?extended |
D. Identity, security & administration (06, 07)
| Feature | Status | Effort | Notes |
|---|---|---|---|
JWT auth, JWKS, security context, queryRewrite | CORE | S | |
| User groups and user attributes driving RLS | CORE+CLOUD | S | Mint cubeCloud.{groups,userAttributes} claims |
| Users, invites, roles + permission matrix, API keys | CLOUD-ONLY | M | App RBAC + contextToApiScopes |
| SSO (OIDC/SAML), SCIM provisioning | CLOUD-ONLY | M each | IdP library; SCIM server over our user tables |
| Custom roles | CLOUD-ONLY | M–L | Policy engine + role builder UI |
| Audit log | CLOUD-ONLY | S–M | Event table written by our control plane |
| App themes, chart palettes, dashboard themes | CLOUD-ONLY | S | CSS variables (cubebi already has light/dark) |
E. Exploration & workbooks (02)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Report as the central object (exploration = report without a workbook; dashboard tiles reference reports) | CLOUD-ONLY | — | Design decision: adopt it. Deliveries, alerts, apps and add-ins all key off reports |
| Workbooks (tabs, launchpad, duplicate, versions, promotion) | CLOUD-ONLY | L | |
| Query builder: filters, Top N with "Other", pivot, totals/subtotals, fill missing rows, period-over-period | CORE+CLOUD | M | Top N/Other via SQL API window functions; subtotals = one query per level |
| Calculated fields (+ promote to model) | CORE+CLOUD | M + M | SQL API expressions; promotion writes YAML via Git |
SQL parameters (:name) | CORE+CLOUD | S–M | /v1/cubesql params |
| Inspect query (Semantic SQL, generated SQL, JSON, GraphQL) | CORE+CLOUD | M | cubebi has generated SQL + JSON already |
| Freshness / pre-agg indicators | CORE+CLOUD | S | cubebi shows the pre-agg badge; add lastRefreshTime |
| Security-context testing ("view as user") | CORE+CLOUD | S–M | Mint a JWT for another user (admin only) |
| Source SQL tabs / Cube Store SQL | CLOUD-ONLY | M | Drivers in a sidecar; guard carefully |
| Python analysis | CLOUD-ONLY | L | Sandbox |
| Apps (agent-generated code dashboards) | CLOUD-ONLY | XL | Sandboxed iframe runtime + LLM codegen |
F. Charts & dashboards (01)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Chart types: bar/line/area/scatter/pie/funnel/heatmap/boxplot/bullet/KPI/sankey/map/HTML | CLOUD-ONLY | S each (M for map, sankey, KPI) | cubebi has 8. Cloud renders with Vega-Lite v5 (matters for AI-generated charts) |
| Table: pivot, freeze, grouping, totals, conditional formatting, in-cell bars, sparklines, links, images | CLOUD-ONLY / CORE+CLOUD | L | Links and image formats come from Core |
| Series config, axes, reference lines, trend lines, small multiples | CLOUD-ONLY | M | |
| Dashboard file format: 11 widget types, x/y/w/h grid, filter/cross-filter/time-grain/field-switcher shapes | CLOUD-ONLY | — | Spec published in source/specs/api.yaml: copy it |
| Builder canvas, responsive grid, stack/grid/tabs layouts, text widgets | CLOUD-ONLY | M–L | react-grid-layout |
| Controls: filters (Top N, relative dates), value lists, time-grain and field switchers, parent controls/presets, dynamic controls, URL state | CORE+CLOUD / CLOUD-ONLY | L | URL state format is documented exactly. Natural-language dates need the small LLM |
| Cross-filtering | CLOUD-ONLY | M (L with highlight mode = 2 queries per chart) | Filters persist in the URL |
| Drill-through | CLOUD-ONLY | M | Core links with dashboard: target + URL-filter landing |
| Drill-down, value menu | CORE+CLOUD | M | drill_members, granularities |
| Publishing, versions, revision history | CLOUD-ONLY | M | Prerequisite for reviews |
| Downloads PNG/PDF/CSV, print | CLOUD-ONLY | L | Headless Chrome service (shared with deliveries) |
| Live updates, freshness, presentation/TV mode | CORE+CLOUD / CLOUD-ONLY | S–M | WebSockets or renewQuery polling |
| Comments (incl. data-point pins), reviews | CLOUD-ONLY | L each | Reviews need versioned reports + notifications |
| Dashboards as code | CLOUD-ONLY | S–M | JSON/YAML in Git + an apply endpoint |
| Dashboard Agent | CLOUD-ONLY | L | Same agent service + dashboard-state tools; changes are per-session, not saved |
G. AI agents (02, 06, 07)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Analytics Chat (NL → Semantic SQL, multi-query, charts, save as report) | CLOUD-ONLY | L (MVP) / XL (parity) | Tools: meta, /v1/cubesql, save report, folder ops, schedule ops. Always query with the end user's JWT |
Chat API protocol (NDJSON stream, in-place message updates by id, __state__/__status__/__usage__/__aborted__ frames) | CLOUD-ONLY | — | Documented in 07: copy it so clients stay compatible |
Agent config as code (agents/config.yml) | CLOUD-ONLY | M–L | Full property list in 06 |
Rules (always / agent_requested, conditions on groups/attributes) | CLOUD-ONLY | S | Conditions filter prompts; they are not security |
| Certified queries (trusted Semantic SQL examples, retrieval by user_request) | CLOUD-ONLY | S–M | Validate on every deploy |
| Skills (named workflows, slash menu) | CLOUD-ONLY | S | |
| Multi-agent, spaces, memories (vector store) | CLOUD-ONLY | M each | Changing the embedding model orphans memories |
| LLM providers / BYOM, small-LLM routing, extended thinking | CLOUD-ONLY | M | Small LLM does titles, suggestions, date parsing |
| MCP connectors (outbound tools) | CLOUD-ONLY | M (L with per-user OAuth) | |
| Evals (exact grader + LLM judge, algorithm documented) | CLOUD-ONLY | M | Directly portable |
| Workbook Agent (authoring) | CLOUD-ONLY | L | |
| AI tokens, quotas, spend limits | CLOUD-ONLY | S–M | LLM gateway metering |
| Chat history, sharing (view-only, replays transcript), voice input | CLOUD-ONLY | S–M |
H. Scheduling: deliveries, alerts, tasks (02, 07)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Dashboard refreshes and deliveries (email/Slack, AI summary) | CLOUD-ONLY | L | Scheduler + headless renderer |
| Alerts | CLOUD-ONLY | M (after deliveries) | Exact semantics matter: fire on transition into the condition only; evaluate the last complete period; "unusual" = outside median ± 3×MAD with ≥8 prior points; no-time charts keep the last 30 checks; run as the owner |
| Scheduled agent tasks (incl. conditional) | CLOUD-ONLY | L | Agent + scheduler |
| Report deliveries to Google Sheets | CLOUD-ONLY | M | Google OAuth |
I. Content & collaboration (02)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Folders | CLOUD-ONLY | S–M | |
| Content permissions: view / edit / full; inherited, closest folder wins; capped by the user's role | CLOUD-ONLY | M | Separate from Core's data security |
| Inbox / notifications | CLOUD-ONLY | M | |
| Preferences (time zone etc.) | CORE+CLOUD | S–M | Query timezone is Core |
J. Embedding (07)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Headless embedding (your UI on Core APIs), multitenancy | CORE | S–L | What cubebi does now |
| Signed embedding (one-time 5-min session id → 24 h token, revocation) | CLOUD-ONLY | M | Token service + denylist in checkAuth |
| Private (SSO) iframe embedding, embedded dashboards, embedded chat | CLOUD-ONLY | M–L | |
| postMessage events/actions, feature visibility, localization, themes | CLOUD-ONLY | S–M each | |
| React Embed SDK | CLOUD-ONLY | M–L | |
| Creator mode (tenants author their own dashboards) | CLOUD-ONLY | XL | Effectively the whole product, multi-tenant |
K. Monitoring & operations (06)
| Feature | Status | Effort | Notes |
|---|---|---|---|
| Query History (+ export) | CORE+CLOUD | M–L | logger / agent-endpoint events → table. Events are not redacted |
| Performance Insights | CORE+CLOUD | S–M | Same events + Cube Store statsd. Core has no Prometheus /metrics |
| Usage analytics | CLOUD-ONLY | M | Model our own telemetry tables as cubes: dogfood |
| Alerts on service health | CLOUD-ONLY | S | /readyz, /livez, log events |
| Query tracing / attribution | CORE | S | CUBEJS_SQL_INCLUDE_TRACE_ID, per-driver query tags |
L. Deployment & infrastructure (05)
Mostly not worth rebuilding for a self-hosted product. Managed regions, BYOC, PrivateLink, custom domains, CMK and Cloud limits are things you get from your own infrastructure. Worth taking:
- Environments per Git branch (L):
repositoryFactorypluscontextToAppId. - Connection-management UI with test-connection (M).
- Per-user OAuth to data sources (M–L):
driverFactorypluscontextToOrchestratorId. - Version pinning/upgrades (S).
4. Where the docs and Core disagree
- "Cloud-only" groups and user attributes work in Core (CubePropContextTranspiler rewrites them). Core gives
contextToGroupsno default, sogroup:policies silently never match until you set it. - "Enterprise" features that are plain Core: ksqlDB/Kafka streaming pre-aggregations, multi-router context hooks, query tracing.
- Undocumented Core endpoints:
/v1/meta?extendedand/cubejs-system/v1/pre-aggregations/*. - Redshift role: the docs say
CUBEJS_DB_AWS_ROLE_ARN; Core readsCUBEJS_DB_REDSHIFT_ASSUME_ROLE_ARN. - "Third-party drivers" are official: Dremio, CrateDB, Trino and Vertica ship as Cube packages in the Core image.
- Drivers that are really missing: MS Fabric and SingleStore. Databricks needs the
-jdkimage; cubebi's image has no Java. - Platform spec vs docs: the spec deprecates
groupDefinitionsin favour oftenantGroups, and chat requests acceptimages. The docs mention neither. - Inert hooks:
semanticLayerSyncis accepted by the config validator but never called, andCUBEJS_AUTO_RUN_MODEis defined but unused. - Missing from the machine-readable index:
recipes/data-modeling/designing-metrics.mdis linked from the recipes overview but not listed inllms.txt. It was fetched separately and is included insource/.
5. Recommended build order for cubebi
Ordered by dependency: each phase unlocks the next. cubebi today has a query builder, 8 chart types, saved charts and simple dashboards.
Phase 0 Core switches ───────────────┐
Phase 1 Identity + content store ────┼──► Phase 2 Dashboards v2 ──► Phase 4 Scheduling, alerts, exports
└──► Phase 3 AI agent ────────► Dashboard Agent, scheduled agent tasks
Phase 5 Ops console (needs only Phase 0) Phase 6 Collaboration, embedding, MCP (needs 1–3)Phase 0: turn on what Core already has (S, ~2–3 days)
- Proxy
cubesql,cubesql/params,convert-query,sql-filters,meta?extendedandrunning-querythrough cubebi-web. - Enable the SQL API on the next free localhost port (18454).
- Add
jobsto the API scopes, server-side only. - Set
contextToGroups. - Install a
loggerhook that writes events to abi_app.query_logtable. Redact SQL parameters before storing. - Enable the system endpoints only behind the backend, and test for side effects first.
Phase 1: identity and the content model (L)
- Users, groups, user attributes and roles. Login via OIDC; Keycloak or similar can be added as a
cubebi-service. - Mint per-user Cube JWTs with
cubeCloud.{groups,userAttributes}claims, so access policies enforce row-level security. - Replace
chartswith reports as the central object. - Add folders and content permissions (view/edit/full, closest folder wins, capped by role).
- Audit log table.
Phase 2: dashboards v2 (L)
- Adopt Cloud's dashboard schema from
api.yaml: grid layout and 11 widget types. - Controls with URL state; cross-filtering; drill-through over Core
links; drill-down. - Richer tables (pivot, totals, conditional formatting).
- Versions/publish.
- Dashboards-as-code files in Git.
Phase 3: AI agent (L for the MVP)
- Agent service:
- Uses the Claude API, with Claude Fable 5.2 or Opus 5.5 as the main model and Haiku 5.5 for small tasks.
- Tools:
list_views(/v1/meta),query(/v1/cubesql, run as the user),save_report,to_chart(/v1/convert-query). - Streams the Chat API's NDJSON protocol.
- Agent config: an
agents/folder withconfig.yml, rules, certified queries and skills. - Evals from day one, using the documented grader.
- Then: the Dashboard Agent and the Workbook Agent.
Phase 4: scheduling and delivery (L)
- Job scheduler.
- Headless-Chrome renderer for PNG/PDF; also gives downloads.
- Email/Slack delivery.
- Alerts with the exact semantics in section 3H.
- Scheduled agent tasks.
Phase 5: ops console (M), can run in parallel after Phase 0
- Query History and Performance views over
query_log. - Pre-Aggregations console over the system endpoints.
- Usage analytics modelled as cubes over our own tables.
Phase 6: collaboration and distribution (M–L each)
- Comments and reviews.
- Signed embedding.
- MCP server (same tools as the agent).
- Slack app, SSO/SCIM, and Sheets/Excel only if needed.
Rough total to reach a credible "Cube Cloud-like" product: about 6–9 engineer-months for Phases 0–5. Phases 2 and 3 carry most of the user-visible value. Creator mode, Apps, Python analysis, the Excel PivotTable/XMLA connector and Cube Store replication are XL each; leave them out unless a customer needs them.
6. Risks and gotchas to keep in view
- Governance:
- Every agent, delivery and alert query must run with a real user's JWT. Deliveries and alerts use the owner's. A service token bypasses row-level security.
- Agent rule
conditionsonly filter prompts; they are not access control.
- Content security is separate from data security. Sharing a dashboard must not grant data access. Cloud re-checks data access for shared chats and dashboards.
- The logger stream contains raw SQL and filter values. Redact before storing or exporting.
CUBEJS_DEV_MODEdisables authentication. Never use it for a multi-user environment.- Licensing: Cube Core is Apache-2.0. The docs in
source/are Cube's content, for reference only; don't copy them into the product, and they are git-ignored. Reimplementing behaviour and wire formats (dashboard schema, Chat API) is fine. Don't reuse Cube's names or branding for the product.