Skip to Content
TypeScript SDKReference

CLI telemetry preferences

Inspect and control anonymous CLI usage telemetry preferences

The CLI collects pseudonymous usage telemetry by default and sends it to hypequery's first-party ingest endpoint (https://hypequery.com/api/telemetry). Events never contain code, SQL, names, paths or credentials; the event reference below lists every field. To audit locally, set HYPEQUERY_TELEMETRY_DEBUG=1: valid event envelopes are printed to stderr and nothing is sent. Set HYPEQUERY_TELEMETRY_URL to send to a staging or self-hosted first-party endpoint instead. Opt-outs apply in every mode.

hypequery telemetry status
hypequery telemetry disable
hypequery telemetry enable

status (also the default action) prints the effective preference, the setting that determined it, and a random install ID. Saving enable does not override environment variables or the global flag.

To disable for one invocation, pass --no-telemetry before or after the command, or set DO_NOT_TRACK=1 or HYPEQUERY_TELEMETRY_DISABLED=1. These take precedence over saved preferences. Test environments and hypequery's own CI also disable telemetry; customer CI follows the saved preference, which defaults to enabled.

Settings are stored in telemetry.json in the CLI config directory. They contain the preference, a random install ID, a schema version, and an optional notice timestamp reserved for the first-run notice. The install ID is generated randomly, not from hardware, a username, or a hostname. Corrupt or unavailable settings disable telemetry for that run. A failed explicit save reports an error so you can use an environment variable or the flag instead.

The Python CLI reads and writes the same telemetry.json, so both CLIs share one install ID, one notice and one saved preference. It keeps its own kill-switch list under disabled_python_cli_versions.

See the CLI reference for precedence and config-directory details. The event reference is below; data-handling policy will be documented before default collection is released.

Delivery and debugging

HYPEQUERY_TELEMETRY_DEBUG=1 hypequery --version
HYPEQUERY_TELEMETRY_DEBUG=1 hypequery init --no-telemetry # Prints no events

Debug output contains the exact validated event envelopes, including their timestamps and the transport-owned $process_person_profile: false and $geoip_disable: true properties. Invalid events are dropped with a fixed diagnostic that does not echo rejected input. All telemetry output uses stderr.

Delivery uses one in-memory batch per invocation with a 64 KiB / 32-event cap. At exit the CLI writes the batch to a private temporary file and starts a detached Node process that sends it in one built-in HTTP(S) request with a 5-second timeout, so delivery never delays the command. The sender deletes the file before sending. Unsent events are dropped; there is no retry or persistent queue. Only HTTPS endpoints and HTTP loopback test endpoints are accepted; URLs with credentials, query strings or fragments are rejected, and redirects are refused. The first-party proxy holds the real PostHog API key and must remove client IP information before forwarding.

HTTP 410 from the proxy disables the current CLI version in local settings, best-effort. Later versions remain eligible; telemetry status reports kill_switch when it applies. A read-only config cannot persist the response.

The disclosure appears once on enabled interactive runs, after a successful stderr write. It is suppressed in CI, on non-TTY streams, during preference commands, and under MCP.

Known command failures reach the bounded exit flush. Dev shutdown flushes after runtime teardown, and SIGINT/SIGTERM endings are classified as interrupted. Crash events use Node's exception monitor so native fatal-error output and exit behavior are preserved; network delivery during a fatal crash is best-effort.

init adds onboarding progress to its single command completion event: the furthest stage reached, the failing stage on errors, connection results, scaffold and authentication choices, bucketed schema/dataset counts, and whether configuration files were created, updated, unchanged, or skipped. Declining setup is recorded as cancellation. Connection retries share the same invocation and produce one completion event. Table selections are recorded only as a selection mode; table names, connection details, and output paths are never included.

Generation commands report bucketed counts from the schema they already introspect. Type fallbacks are reduced to built-in family names (or unknown), including unsupported fragments inside supported wrappers. Dataset generation records write/check/diff modes, read-only check outcomes, and counts of known tenant-scaffolding warnings. Manifest generation counts already loaded registry entries and generated routes. Schema names, full type expressions, warning text, and manifest contents are excluded, and telemetry adds no database queries.

Event reference

Schema version: 1. Unless opted out, the CLI sends command/crash lifecycle events, init and generation metrics, and dev/MCP session events to the first-party ingest proxy; debug mode prints them instead. Cloud command and project-feature instrumentation follows separately.

Unknown events, properties, record keys, flag names, enum values, and malformed identities or versions are rejected. No argument values, paths, names, SQL, messages, stacks, hosts, tenants, or credentials are permitted.

Counts use inclusive integer ranges: 0, 1, 2–5, 6–20, 21–100, and 101 or more. Duration and nonzero size buckets include their lower bound and exclude their upper bound. Raw counts, durations, ports and byte sizes are never sent.

Common properties

Every event includes these fields. Unknown environment details use the documented unknown value; unavailable optional fields are omitted.

PropertyPresenceAllowed valuesQuestion answered
schema_versionRequired1Which event contract does this payload use?
cli_versionRequiredExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersWhich CLI releases are in use?
node_versionRequiredNumeric major.minor (1–3 digits per component), or unknownWhich Node major.minor releases need support?
osRequireddarwin, linux, win32, aix, freebsd, openbsd, sunos, android, unknownWhich operating systems need support?
archRequiredarm, arm64, ia32, x64, loong64, mips, mipsel, ppc, ppc64, riscv64, s390, s390x, unknownWhich CPU architectures need support?
is_ciRequiredtrue, falseHow much usage happens in CI?
ci_nameRequirednone, github_actions, gitlab, circleci, buildkite, jenkins, vercel, netlify, azure, bitbucket, teamcity, travis, codebuild, unknownWhich CI providers need support?
is_ttyRequiredtrue, falseHow much usage is interactive?
is_dockerRequiredtrue, falseHow much usage runs in containers?
is_wslRequiredtrue, falseHow much usage runs in WSL?
package_managerRequirednpm, pnpm, yarn, bun, unknownWhich package managers need support?
package_manager_majorOptionalNumeric major (1–3 digits), or unknownWhich package-manager major releases need support?
invoked_viaRequirednpx, pnpm_dlx, bunx, global, local_bin, unknownHow is the CLI invoked?
install_idRequiredRandom UUID v4 (36 characters)Count active installations without hardware or account identifiers.
project_idOptional64 lowercase hexadecimal characters (salted SHA-256)Count active projects across installations; omit when no signal exists.
session_idRequiredRandom UUID v4 (36 characters)Group events from the same invocation.
is_first_runRequiredtrue, falseHow many installations are new?
hypequery_packagesOptionalObject with only the documented keys belowWhich toolkit packages and exact versions are adopted? No project dependencies or names.
hypequery_packages.@hypequery/clickhouseOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/datasetsOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/serveOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/reactOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/cliOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/mcpOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/protocolOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/protocol-conformanceOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
hypequery_packages.@hypequery/deploymentOptionalExact major.minor.patch (1–3 digits per component); optional canary/alpha/beta/rc/dev/snapshot suffix with 1–14 digit numeric components, or unknown; at most 80 charactersInstalled exact release version, or unknown.
databaseRequiredclickhouse, chdb, bigquery, unknownWhich database backends merit investment?

cli_command_completed

Measure command adoption, onboarding drop-off and release reliability. Exactly once per invocation; never emit for telemetry disable.

PropertyPresenceAllowed valuesQuestion answered
commandRequiredinit, dev, mcp, generate, generate:types, generate:datasets, generate:manifest, generate:client, export:client-contract, login, logout, deploy, deployment:build, deployment:validate, deployment:release, deployment:submit, deployment:status, pull, diff, help, version, telemetry, skill, examples, create, schema, onboard, cloud-operation, unknownWhich known command was requested? Raw unknown input is never retained.
flags_usedRequiredUnique list of: --path, --style, --database, --chdb-path, --auth, --all-tables, --tables, --exclude-tables, --no-example, --no-interactive, --force, --skip-connection, --port, --hostname, --no-watch, --no-cache, --cache, --redis-url, --open, --cors, --quiet, --tenant, --self-test, --url, --client-contract-url, --http, --host, --allowed-hosts, --allowed-origins, --resource, --authorization-servers, --required-scopes, --output, --tenant-column, --check, --diff, --cloud, --project, --environment, --endpoint, --stdout, --cloud-url, --device, --capabilities, --bundle-output, --release-output, --no-source, --replace-restored, --take-ownership, --mcp-config, --draft, --client, --release, --agent, --scope, --kind, --yes, --dir, --no-install, --no-seed, --tag, --databases, --samples, --no-query-history, --join, --input-json, --no-telemetry, --json, --no-input, --help, --versionWhich documented flags are adopted? Canonical names only, never values.
outcomeRequiredsuccess, failure, cancelled, interruptedWhich commands fail, succeed or are aborted?
duration_bucketRequired<100ms, 100ms-1s, 1s-10s, 10s-1m, 1m-10m, 10m-1h, 1h+Which commands need performance work?
error_codeOptionalunknown, connection_failed, auth_failed, entrypoint_not_found, compile_error, prompt_cancelled, validation_failed, cloud_network_error, cloud_rejected, not_installed, engine_error, no_tables, no_datasets, tenant_required, load_error, output_missing, output_out_of_date, unknown_command, unknown_optionWhich known failures need reliability work?

cli_command_completed: init

Allowed flags_used: --path, --style, --database, --chdb-path, --auth, --all-tables, --tables, --exclude-tables, --no-example, --no-interactive, --force, --skip-connection, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
stage_reachedOptionalstarted, database_selected, connection_tested, style_selected, files_written, dependencies_installed, completedWhere does onboarding stop?
failed_stageOptionalstarted, database_selected, connection_tested, style_selected, files_written, dependencies_installed, completedWhich onboarding stage needs reliability work?
styleOptionalqueries, datasetsWhich scaffold style is adopted?
authOptionalnone, contextIs context authentication adopted?
interactiveOptionaltrue, falseHow much onboarding is interactive?
forceOptionaltrue, falseHow often are scaffold files overwritten?
exampleOptionaltrue, falseAre example queries requested?
skip_connectionOptionaltrue, falseAre offline scaffolds used?
connection_resultOptionalok, failed, skippedWhere does connection setup fail?
chdb_failure_reasonOptionalnot_installed, engine_errorDoes embedded onboarding fail at installation or execution?
table_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How large are onboarding schemas?
datasets_generated_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many datasets are scaffolded?
table_selectionOptionalall, list, exclude, promptWhich table-selection workflows are used?
env_fileOptionalcreated, updated, unchanged, skippedDoes onboarding create or update environment config?
gitignoreOptionalcreated, updated, unchanged, skippedDoes onboarding create or update ignore config?
package_json_presentOptionaltrue, falseDoes onboarding start in an existing project?
analytics_directory_presentOptionaltrue, falseDoes onboarding reuse an analytics directory?

cli_command_completed: dev

Allowed flags_used: --port, --hostname, --no-watch, --no-cache, --cache, --redis-url, --open, --cors, --path, --quiet, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: mcp

Allowed flags_used: --path, --tenant, --self-test, --url, --client-contract-url, --http, --port, --host, --allowed-hosts, --allowed-origins, --resource, --authorization-servers, --required-scopes, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
modeOptionalself_test, serveIs MCP used for validation or serving?
hostedOptionaltrue, falseIs MCP self-test targeting a hosted endpoint?
http_backendOptionaltrue, falseIs MCP using an authorized HTTP client contract? Never its URL or principal.
dataset_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many datasets are exposed to agents?
tenant_usedOptionaltrue, falseIs a trusted tenant supplied? Never its value.
tenant_dataset_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many datasets require tenant scope?

cli_command_completed: generate

Allowed flags_used: --output, --path, --tables, --database, --chdb-path, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
chdb_path_givenOptionaltrue, falseIs persistent embedded ClickHouse adopted?
tables_filter_usedOptionaltrue, falseAre targeted type-generation workflows used?
table_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How large are introspected schemas?
column_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many columns need type generation?
unsupported_type_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How often does type mapping need improvement?
unsupported_type_familiesOptionalUnique list of: AggregateFunction, SimpleAggregateFunction, Variant, Dynamic, Object, JSON, Nested, Tuple, Map, Array, Nullable, LowCardinality, Decimal, Enum, DateTime, DateTime64, unknownWhich built-in type families need mapping? Never full type expressions.
custom_outputOptionaltrue, falseWas a custom output location supplied? Never the path.

cli_command_completed: generate:types

Allowed flags_used: --output, --path, --tables, --database, --chdb-path, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
chdb_path_givenOptionaltrue, falseIs persistent embedded ClickHouse adopted?
tables_filter_usedOptionaltrue, falseAre targeted type-generation workflows used?
table_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How large are introspected schemas?
column_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many columns need type generation?
unsupported_type_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How often does type mapping need improvement?
unsupported_type_familiesOptionalUnique list of: AggregateFunction, SimpleAggregateFunction, Variant, Dynamic, Object, JSON, Nested, Tuple, Map, Array, Nullable, LowCardinality, Decimal, Enum, DateTime, DateTime64, unknownWhich built-in type families need mapping? Never full type expressions.
custom_outputOptionaltrue, falseWas a custom output location supplied? Never the path.

cli_command_completed: generate:datasets

Allowed flags_used: --output, --path, --tables, --exclude-tables, --tenant-column, --force, --check, --diff, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
modeOptionalwrite, check, diffAre datasets generated locally or checked in CI?
check_resultOptionalup_to_date, out_of_date, missingDoes CI find stale dataset definitions?
forceOptionaltrue, falseAre existing definitions replaced?
tenant_column_usedOptionaltrue, falseIs tenant isolation explicitly scaffolded? Never the column.
tables_filter_usedOptionaltrue, falseIs include filtering adopted?
exclude_filter_usedOptionaltrue, falseIs exclude filtering adopted?
datasets_generated_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many dataset definitions are generated?
warning_countsOptionalObject with only the documented keys belowWhich tenant-scaffolding warnings need improvement?
warning_counts.tenant-key-candidateOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed warning occurrences.
warning_counts.tenant-column-missingOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed warning occurrences.

cli_command_completed: generate:client

Allowed flags_used: --output, --check, --force, --cloud, --project, --environment, --endpoint, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
modeOptionalwrite, checkAre client types generated or checked in CI?
check_resultOptionalup_to_date, out_of_date, missingDoes CI find stale client types?
forceOptionaltrue, falseAre generated client types replaced?
custom_outputOptionaltrue, falseWas a custom output location supplied? Never the path.
endpoint_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many public endpoints need client types?

cli_command_completed: generate:manifest

Allowed flags_used: --output, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
query_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How much query-based React integration is adopted?
endpoint_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How much endpoint-based React integration is adopted?
custom_outputOptionaltrue, falseWas a custom output location supplied? Never the path.

cli_command_completed: examples

Allowed flags_used: --kind, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
kind_filterOptionalexample, recipe, guideWhich registry kinds are browsed?
outputOptionaltable, jsonIs the registry read by people or by tools?
entry_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many registry entries are listed?

cli_command_completed: create

Allowed flags_used: --yes, --dir, --no-install, --no-seed, --tag, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
example_slugOptionalasync-inserts-node, chdb-embedded-analytics, clickhouse-docker-compose, clickhouse-rest-api-openapi, clickhouse-vs-postgres-app-analytics, cursor-pagination, dictionary-lookups, django-analytics, fastapi-analytics-api, funnel-windowfunnel, grouparray-user-timelines, in-app-analytics-agent, iso-week-bucketing, materialized-view-rollups, mcp-agent-analytics, mcp-agent-analytics-python, multi-tenant-embedded-analytics, multiif-bucketing, nextjs-dashboard, p95-latency, postgres-app-clickhouse-analytics, projection-for-dataset-queries, refreshable-materialized-views, replacingmergetree-upserts, retention-cohorts, sessionization, streamlit-dashboard, top-n-per-group-limit-by, ttl-data-retention, usage-based-billing, otherWhich public registry entries are scaffolded? Input that names no registry entry becomes other.
example_kindOptionalexample, recipe, guideAre examples, recipes or guides requested?
languageOptionaltypescript, python, unknownWhich language are scaffolded examples written in?
stage_reachedOptionalstarted, resolved, fetched, pinned, installed, completedWhere does scaffolding stop?
failed_stageOptionalstarted, resolved, fetched, pinned, installed, completedWhich scaffolding stage needs reliability work?
seedOptionaltrue, falseIs the shared seed dataset copied?
install_resultOptionalok, failed, skippedDoes dependency installation succeed after scaffolding? Python examples, installed later with uv sync, report skipped.
unpublished_pinsOptionaltrue, falseDid a dependency of the scaffold fall back to a dist-tag because its recorded version is not on npm?
interactiveOptionaltrue, falseHow much scaffolding is interactive?

cli_command_completed: export:client-contract

Allowed flags_used: --output, --stdout, --check, --force, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: login

Allowed flags_used: --cloud-url, --environment, --device, --project, --capabilities, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: logout

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deploy

Allowed flags_used: --bundle-output, --release-output, --project, --environment, --no-source, --endpoint, --replace-restored, --take-ownership, --mcp-config, --draft, --client, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deployment:build

Allowed flags_used: --bundle-output, --no-source, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deployment:validate

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deployment:release

Allowed flags_used: --project, --environment, --output, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deployment:submit

Allowed flags_used: --release, --endpoint, --replace-restored, --take-ownership, --draft, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: deployment:status

Allowed flags_used: --project, --environment, --endpoint, --mcp-config, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: pull

Allowed flags_used: --output, --project, --environment, --endpoint, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: diff

Allowed flags_used: --project, --environment, --endpoint, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: version

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: telemetry

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: skill

Allowed flags_used: --agent, --scope, --force, --check, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: schema

Allowed flags_used: --databases, --tables, --samples, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: onboard

Allowed flags_used: --databases, --tables, --samples, --no-query-history, --join, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: cloud-operation

Allowed flags_used: --project, --yes, --input-json, --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

No additional properties.

cli_command_completed: unknown

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
suggested_commandOptionalinit, dev, mcp, generate, generate:types, generate:datasets, generate:manifest, generate:client, export:client-contract, login, logout, deploy, deployment:build, deployment:validate, deployment:release, deployment:submit, deployment:status, pull, diff, help, version, telemetry, skill, examples, create, schema, onboard, cloud-operationWhich command was a mistyped invocation closest to? Only the CLI's own suggestion, never the raw input.

cli_command_completed: help

Allowed flags_used: --no-telemetry, --json, --no-input, --help, --version. The two type-generation aliases remain distinct command values.

PropertyPresenceAllowed valuesQuestion answered
help_topicOptionalroot, init, dev, mcp, generate, generate:types, generate:datasets, generate:manifest, generate:client, export:client-contract, login, logout, deploy, deployment:build, deployment:validate, deployment:release, deployment:submit, deployment:status, pull, diff, help, version, telemetry, skill, examples, create, schema, onboard, cloud-operation, unknownWhich command help needs improvement? Unknown input becomes unknown.

cli_session_started

Measure development-server and MCP session configuration; never emit on every reload or request.

PropertyPresenceAllowed valuesQuestion answered
commandRequireddev, mcpWhich long-running command starts?

cli_session_started: dev

PropertyPresenceAllowed valuesQuestion answered
entry_typeRequiredhypequery.ts, api.ts, queries.ts, explicit_file, unknownWhich entrypoint convention is used? Never the path.
watchRequiredtrue, falseIs file watching used?
cache_providerRequirednone, memory, redis, unknownWhich cache providers are adopted?
corsRequiredtrue, falseIs cross-origin development adopted?
openRequiredtrue, falseIs the browser opened automatically?
custom_portRequiredtrue, falseIs a non-default port selected? Never its number or hostname.
quietRequiredtrue, falseIs quiet startup adopted?

cli_session_started: mcp

PropertyPresenceAllowed valuesQuestion answered
entry_typeOptionalhypequery.ts, api.ts, queries.ts, explicit_file, unknownWhich entrypoint convention is used? Never the path.
http_backendOptionaltrue, falseIs MCP using an authorized HTTP client contract? Never its URL or principal.
modeRequiredself_test, serveIs MCP serving or validating?
dataset_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many local datasets are exposed to agents? Omit for HTTP contracts.
tenant_usedRequiredtrue, falseIs tenant scope supplied? Never its value.
tenant_dataset_count_bucketOptional0, 1, 2-5, 6-20, 21-100, 101+How many local datasets require tenant scope? Omit for HTTP contracts.

cli_session_ended

Measure session duration and aggregated usage on shutdown, without individual requests or tool arguments.

PropertyPresenceAllowed valuesQuestion answered
commandRequireddev, mcpWhich long-running command ends?
outcomeRequiredsuccess, failure, cancelled, interruptedHow did the session end?
duration_bucketRequired<100ms, 100ms-1s, 1s-10s, 10s-1m, 1m-10m, 10m-1h, 1h+How long are development and agent sessions?

cli_session_ended: dev

PropertyPresenceAllowed valuesQuestion answered
reload_count_bucketRequired0, 1, 2-5, 6-20, 21-100, 101+How heavily is hot reload used?
reload_error_count_bucketRequired0, 1, 2-5, 6-20, 21-100, 101+How often does hot reload fail?
load_failuresRequiredObject with only the documented keys belowWhich load failures need reliability work?
load_failures.unknownOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.connection_failedOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.auth_failedOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.entrypoint_not_foundOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.compile_errorOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.prompt_cancelledOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.validation_failedOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.cloud_network_errorOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.cloud_rejectedOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.not_installedOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.engine_errorOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.no_tablesOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.no_datasetsOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.tenant_requiredOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.load_errorOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.output_missingOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.output_out_of_dateOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.unknown_commandOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.
load_failures.unknown_optionOptional0, 1, 2-5, 6-20, 21-100, 101+Bucketed failures by stable code.

cli_session_ended: mcp

PropertyPresenceAllowed valuesQuestion answered
tool_call_countsRequiredObject with only the documented keys belowWhich MCP tool kinds are adopted? No names or arguments.
tool_call_counts.listRequired0, 1, 2-5, 6-20, 21-100, 101+Bucketed calls by built-in tool kind.
tool_call_counts.describeRequired0, 1, 2-5, 6-20, 21-100, 101+Bucketed calls by built-in tool kind.
tool_call_counts.queryRequired0, 1, 2-5, 6-20, 21-100, 101+Bucketed calls by built-in tool kind.
error_count_bucketRequired0, 1, 2-5, 6-20, 21-100, 101+How often do MCP sessions encounter errors?

cli_crash

Measure uncaught failures by stable class and code, with no messages or stacks.

PropertyPresenceAllowed valuesQuestion answered
commandRequiredinit, dev, mcp, generate, generate:types, generate:datasets, generate:manifest, generate:client, export:client-contract, login, logout, deploy, deployment:build, deployment:validate, deployment:release, deployment:submit, deployment:status, pull, diff, help, version, telemetry, skill, examples, create, schema, onboard, cloud-operation, unknownWhich command crashed?
exception_classRequiredError, TypeError, RangeError, SyntaxError, ReferenceError, URIError, EvalError, AggregateError, unknownWhich built-in exception classes need investigation?
error_codeRequiredunknown, connection_failed, auth_failed, entrypoint_not_found, compile_error, prompt_cancelled, validation_failed, cloud_network_error, cloud_rejected, not_installed, engine_error, no_tables, no_datasets, tenant_required, load_error, output_missing, output_out_of_date, unknown_command, unknown_optionWhich known failure caused the crash?

MCP client identity/version is excluded from v1 pending the privacy decision. Auth strategies are recorded only as none/configured/unknown, since user-supplied functions have no safe built-in type identifier.

Cache scopes are classified only as unscoped/tenant/explicit/unknown from configuration presence. Explicit scopes are user content and are never read into a payload.

Project IDs follow HQ-233: the CLI uses the shared global salt, then the ingest proxy re-keys the digest with a server-side HMAC secret before storage. A hash is a pseudonymous project signal, not proof of anonymity. Cloud accounts are never linked to install IDs.

On this page

Get early access to hypequery cloud.

Cloud hosts the same model you run in your backend, with a managed API and MCP server, versions, and rollback. We're letting teams in a few at a time. Join the waitlist and we'll reach out when your project can go live.

How do you want to build your analytics layer? (Optional)
What features do you most need? (Optional)

Pick as many as you like.

Only your email is required. All other questions are optional.