Skip to main content

Entidex CLI

The official command-line interface for Entidex. Resolve any entity, inspect its visibility and sentiment indices, stream live drift events, and feed answer-ready intelligence into your scripts, CI pipelines, and LLM agents — all from your terminal.

Private beta

The Entidex CLI is in private beta — the install methods below show the planned UX, but the packages don't publish until v1. Use the MCP server or REST API today.

Use the API or MCP today

The CLI is in private beta. Every command on this page maps 1:1 to a REST endpoint and an MCP tool — both are live now.

# REST (any shell)
curl -H "Authorization: Bearer $ENTIDEX_API_KEY" \
  https://entidex.com/api/v1/entities/resolve?q=spacex

# Hosted MCP server — wire into Claude, ChatGPT, or any MCP client
# https://entidex.com/api/mcp

# Sign up for a free key
# https://entidex.com/developers

Or try the keyless preview: /scan — see what AI gets wrong about any brand, no auth needed.

Installation

The Entidex CLI will ship as a single static binary distributed through every channel below. None of the install methods publish until v1 — each card is the planned UX. Use the REST API or hosted MCP server today.

macOS / Linux

Coming soon — private beta
curl -fsSL https://entidex.com/install.sh | sh

# pin a version
curl -fsSL https://entidex.com/install.sh | sh -s -- --version v0.1.0

Windows (PowerShell)

Coming soon — private beta
irm https://entidex.com/install.ps1 | iex

# pin a version
$env:ENTIDEX_VERSION = 'v0.1.0'
irm https://entidex.com/install.ps1 | iex

Homebrew

Coming soon — private beta
brew install entidex/tap/entidex

Scoop

Coming soon — private beta
scoop bucket add entidex https://github.com/entidex/scoop-bucket
scoop install entidex

npm (global)

Coming soon — private beta
npm install -g @entidex/cli

pip

Coming soon — private beta
pip install entidex

Supported platforms: macOS (arm64, amd64), Linux (arm64, amd64), Windows (amd64). After install, run entidex doctor to verify everything is wired up.

Authentication

The CLI authenticates with an API key. The recommended way to obtain one is the device flow: it never asks for your password and the key is generated server-side, scoped to your selected tier, and saved with mode 0600.

Device flow

$ entidex login

  Open this URL in your browser:
    https://entidex.com/cli/auth?code=ABCD-EFGH
  Verification code: ABCD-EFGH
  Waiting for approval...
✓ Logged in. API key saved to ~/.entidex/config.toml
  1. The CLI requests a device code and prints a short URL plus an 8-character user code.
  2. Open the URL, sign in to Entidex, confirm the code matches, and pick a tier.
  3. The CLI polls the token endpoint every 5 seconds. On approval it receives a freshly issued API key and stores it in ~/.entidex/config.toml.
  4. Device codes expire after 15 minutes. The plaintext key is consumed once — subsequent polls return denied.

Environment variable

For CI / containers, set the key at runtime. The env var always wins over the config file.

export ENTIDEX_API_KEY=entx_live_sk_xxxxxxxxxxxxxxxxxxxxxxxx
entidex visibility openai

Manage keys

entidex keys list
entidex keys create --name ci --tier layer_2_insight --env live
entidex keys revoke <id> --yes

Keys are formatted entx_{live|test}_sk_{24 chars}. The plaintext value is shown exactly once at creation. Rotate by creating a new key and revoking the old one.

Output modes

Output mode resolution, in order of precedence:

  1. --json flag — always JSON.
  2. ENTIDEX_OUTPUT env var — auto, pretty, or json.
  3. output field in ~/.entidex/config.toml.
  4. Auto: pretty when stdout is a TTY, JSON otherwise.
# pretty (interactive shell)
$ entidex lookup spacex
SpaceX  (spacex)
  type: org
  completeness: 92%
  visibility: 78.4

# JSON (piped)
$ entidex lookup spacex | jq '.visibility_score'
78.4

# JSON (forced)
$ entidex lookup spacex --json

Errors always use the stable format [CODE] message — action on stderr, regardless of mode, so scripts and LLM agents can parse them deterministically.

Command reference

Every command supports the global flags --json, --debug, --base-url, --output, --yes, --dry-run, and --idempotency-key. Run entidex <command> --help for the full list.

Read — entities & insights

entidex lookup <entity>free

Resolve an entity (slug, name, or alias) and print its canonical profile.

entidex lookup spacex
entidex complete <entity>free

The complete, categorized intelligence record in one call — identity, categorization, headline signals, surface coverage, scores, perception, derived insights, drift, lifecycle, relationships, decision survival, and cohort. Free returns a generous taste; higher tiers unlock depth (see meta.withheld).

entidex complete spacex
entidex categories [<slug>] [--limit N] [--offset N]free

Browse the categorized entity network — list every category with its entity count, or pass a slug to page through that category’s member entities.

entidex categories technology
entidex search <query> [--type <kind>] [--limit N]free

Search the discovery layer.

entidex resolve <query>free

Return only the canonical id/slug — machine-friendly form of lookup.

entidex creators-resolve <name-or-link>layer_1_profile

Creator Resolution: resolve a creator/podcast name — or any one profile link — to the single canonical creator: every cross-verified platform handle with provenance + confidence, headline signals, and the signed-record link. Three-state verdict (confirmed / ambiguous / not_found).

entidex creators-resolve "pbd podcast"
entidex visibility <entity> [--window 7d|30d|90d|all]layer_2_insight

AI Visibility Score breakdown across engines + AI Overviews + SERP.

entidex sentiment <entity>layer_2_insight

Sentiment (cross-surface) breakdown by surface category.

entidex drift <entity>layer_2_insight

Narrative Drift and trajectory points across the chosen window.

entidex score-history <entity> [--dimension <name>] [--days N]layer_1_profile

Time-series snapshots for AI Visibility, Sentiment, Share of Voice, Trust Stack, Narrative Coverage, or Entity Maturity. Default: all dimensions, last 30 days. Powers sparklines and drift narratives.

curl -H "Authorization: Bearer $ENTIDEX_API_KEY" \
  "https://entidex.com/api/v1/entities/<entityId>/score-history?dimension=visibility&days=30"
entidex trust-stack <entity>layer_2_insight

Trust Stack composite: confidence-weighted credibility score across all surfaces.

entidex consensus <entity> [--trends]layer_1_profile

Cross-surface consensus/divergence snapshot. --trends adds the over-time correlation matrix.

entidex decision-survival <entity> [--scenario <key>]layer_2_insight

Decision Survival Score: how often the entity persists as the AI recommendation across multi-turn conversations.

entidex lifecycle <entity>layer_1_profile

Lifecycle stage (emergence, breakout, expansion, consolidation, fragmentation, acquisition, rebrand, decline, resurrection) with drivers and predicted next stage.

entidex timeline <entity> [--days N] [--limit N]layer_2_insight

Unified chronological timeline: score movements, drift events and lifecycle transitions interleaved into one dated stream (most recent first), each with cause attribution.

entidex timeline tesla --days 90
entidex knowledge <entity> [--format md|json|jsonld]layer_1_profile

Entity Knowledge Statement: verified facts, AI engine corrections, and accuracy score.

entidex verify <entity> [--field <name>]layer_1_profile

Verify specific facts against the Entidex verified record. Returns verified values, sources, and where AI engines diverge.

entidex grounding-packet <entity> [--format grounding-metadata]free

Grounding Packet: the named, free-tier grounding payload over the verified record — deterministic verified facts with provenance, corrections to common AI claims, and Ed25519-signed provenance. Fetch at the top of any agent or RAG workflow. --format grounding-metadata emits a GroundingMetadata-shaped projection (groundingChunks / groundingSupports).

entidex grounding-packet tesla
entidex knowledge-accuracy <entity>layer_1_profile

LLM Knowledge Accuracy: how accurately each AI engine (ChatGPT, Claude, Gemini, Perplexity, Grok) knows the entity vs the verified record — overall accuracy % with a 95% confidence interval, plus a per-engine breakdown and the exact fields each engine gets wrong.

entidex knowledge-accuracy tesla
entidex grounding-check <entity> "<statement>"free

Grounding Check: check a statement about the entity against the signed verified record. Returns coded verdicts — supported | contradicted | unverifiable — with confidence and citations. Granularity differences ("Austin" vs "Austin, Texas") are supported; assertions the record does not cover are unverifiable, never guessed. The guardrail hook for agent pipelines.

entidex grounding-check tesla "Tesla is headquartered in Palo Alto"
entidex recommendation-potential <entity>layer_1_profile

AI Recommendation Potential: per-prompt-class breakdown of how likely AI engines are to surface and recommend the entity. Shows the strongest and weakest prompt classes with per-engine recommendation rates and 95% Wilson intervals over stored Decision Survival probes.

entidex recommendation-potential tesla
entidex guest-intelligence <entity>layer_1_profile

Guest Intelligence: per-episode multi-role read for a show or creator — video sentiment, per-cast-member (host / guest / mentioned) sentiment with top praise + top criticism, Claim Truth verdicts tied to each cast entity, low-confidence NER conflation warnings, and a Guest Impact roll-up of which appearances moved AI Visibility. Coded reduction over stored comment / episode / score / claim-truth stores. Zero LLM cost.

entidex guest-intelligence pbd-podcast
entidex episode-adoption-lag <entity>layer_1_profile

Episode → Engine Adoption Lag: for each recent episode a show publishes, how long until each of the five canonical AI engines can name it. Coded text-scan over stored knowledge-probe payloads. Zero LLM cost.

entidex episode-adoption-lag pbd-podcast
entidex youtube-intelligence <entity>layer_1_profile

YouTube Intelligence: channel-authority + audience read for a show/creator — channel stats, a daily sentiment timeline with anomaly flags, per-episode sentiment + comment-intent breakdown, top audience questions, intent distribution, and topic ownership (per-episode + per-guest). Coded read over stored YouTube comment + transcript signal. Zero LLM cost.

entidex youtube-intelligence mr-beast
entidex serp-vs-ai <entity>layer_1_profile

SERP vs AI presence: how the entity performs in traditional search (SEO health, domain rank, organic keywords + traffic, top ranked keywords — from the SEO/GEO audit) compared with how AI engines actually surface it (headline AI Visibility, Share of Voice, per-engine mention breakdown across ChatGPT, Claude, Gemini, Perplexity, Grok, LLM Knowledge Accuracy). Returns a coded gap verdict (aligned | serp_dominant | ai_dominant | both_strong | both_weak) with a plain-English headline and an actionable insight. Zero LLM cost.

entidex serp-vs-ai tesla
entidex google-ai-answers <entity>layer_1_profile

Google AI Answers: what Google AI Overviews and Google AI Mode say about the entity per query class (brand / evaluation / discovery) — the generated-answer text, every citation with source, domain, URL and quoted text, mention + order, sentiment around the mentions, competitor mentions, and whether the entity's own site is cited as a source. Deterministic extraction, zero LLM cost.

entidex google-ai-answers tesla
entidex local-survival <entity>layer_1_profile

Local Decision Survival: whether a local business survives as Google's AI recommendation across a simulated near-me buyer journey (broad search → narrowing follow-ups → forced pick). Per journey — the verbatim AI reply at each step, whether the business is named, the competitors named alongside it, the sources the AI cited, and (when it drops out) which follow-up dropped it and who took the slot. Plus the survival rate with a 95% Wilson interval, the stage-survival curve, offramp concentration, and top displacers. Deterministic zero-LLM extraction.

entidex local-survival some-austin-plumber
entidex business-profile <entity>layer_1_profile

Business Profile: the self-configuring layer for Recommendation Survival — the business's model (local_service / product / online_service / b2b_saas / marketplace / content_creator), category, locality, offerings, and the buyer decision-axes each offering narrows on. Auto-detects once (cached), deterministic-first with a one-time governed LLM-assist. Read this first to run the right recommendation-survival journey for any business.

entidex business-profile openai
entidex declare-offerings <entity> --model=<m> --offering="<name>"layer_2_insight

Declare a business's model and/or offerings so Recommendation Survival adapts to what it actually sells (the declaration overrides auto-detection). Operator/owner-authoritative. Each offering carries a name, optional useCase, and decision axes ({label, fragment}).

entidex declare-offerings my-saas --model=b2b_saas --offering="Team plan"
entidex recommendation-survival <entity>layer_1_profile

Recommendation Survival: the business-adaptive generalization of Local Decision Survival — whether a business survives as the AI recommendation across a simulated buyer journey shaped by its Business Profile (near-me for local, 'best {product} for {job}' for products, vs-alternatives for online/B2B), decomposed per offering. Per journey: the verbatim AI reply at each step, competitor mentions, cited sources, the drop-out point; plus the survival rate (95% Wilson), stage-survival curve, offramp concentration, and top displacers. Deterministic zero-LLM read.

entidex recommendation-survival openai
entidex x-sentiment <entity> [--history]layer_2_insight

Latest X (social) sentiment: weighted polarity, key voices, praises/complaints, narrative context.

entidex ecosystem <entity>layer_1_profile

AI Ecosystem read: per-engine fit, grounded mention/recommendation/citation/sentiment, cross-engine coherence, reinforcement patterns, and strategic narrative.

entidex markets <entity> [--history]layer_1_profile

Latest stock-market reading: ticker, exchange, price, % change and provenance — the entity's own listing or that of its public owner/parent. --history returns the stored series.

entidex core-intelligence <entity>layer_2_insight

Entity Core Intelligence Profile: ten authority/readability scores (clarity, authority, trust, topical authority, machine readability, momentum, reputation safety, …) plus topic ownership, entity graph, competitors, perception map, strategic actions, and live-web grounding sources.

entidex core-intelligence spacex
entidex export <entity> [--include claims,completeness,neighbourhood] [-o file.json]layer_1_profile

Dump the full entity profile as JSON.

Live & write

entidex watch <entity>layer_3_drift

Stream live drift events over Server-Sent Events. Caps at 10 minutes per connection.

entidex watch nvidia | jq .
entidex track add <entity> [--cadence daily|weekly|monthly]layer_1_profile

Add an entity to your monitored list.

entidex track listlayer_1_profile

Show currently tracked entities.

entidex track remove <entity> --yeslayer_1_profile

Stop tracking an entity. Confirmation required.

entidex refresh <entity> [--depth shallow|standard|deep]layer_1_profile

Queue a fresh enrichment run; returns a job id and ETA.

entidex bulk --cmd <subcommand> -i list.txt [-p N]layer_2_insight

Apply lookup/resolve/refresh/track-add to many entities in parallel.

entidex feedback <entity> --type correction|quality [--field <name>] [--value <val>] [--note <text>]layer_1_profile

Submit a correction or quality feedback for an entity. Queued for human review.

Cohort & comparison

entidex cohort listlayer_4_cohort

List all cohorts you have access to.

entidex cohort show <cohort-id>layer_4_cohort

Show cohort members and their relative rankings.

entidex cohort compare <cohort-id>layer_4_cohort

Full cohort comparison: AI Visibility, Sentiment, Share of Voice deltas vs median.

entidex cohort position <entity>layer_4_cohort

Show which cohorts an entity belongs to and its rank in each.

Account & auth

entidex login [--tier <tier>]free

Authenticate via device flow. Prints a short URL + code, polls until you approve in the browser, then writes a fresh API key into your config.

entidex logoutfree

Forget local credentials.

entidex authfree

Show current auth state.

entidex accountfree

Show account profile (email, tier, status).

entidex quotafree

Show plan, entitlements used vs. limit, and token usage for the current period.

entidex keys listfree

List API keys (id, prefix, tier, env, last-used).

entidex keys create --name <label> --tier <tier> --env live|testfree

Provision a new API key. The full key is shown once.

entidex keys revoke <id> --yesfree

Revoke a key. Requires --yes.

Local & meta

entidex config showfree

Print effective configuration with secrets redacted.

entidex config set <key> <value>free

Update base_url, output, telemetry, or api_key.

entidex config get <key>free

Read a single config field.

entidex config pathfree

Print the absolute path of the config file.

entidex telemetry statusfree

Show telemetry on/off plus current tier.

entidex telemetry enablefree

Enable anonymous CLI telemetry.

entidex telemetry disablepaid

Disable telemetry. Free tier requires telemetry; paid tiers may opt out.

entidex schemafree

Print the OpenAPI spec for the public API. Useful for seeding LLM agents.

entidex doctorfree

Run self-diagnostics: config path, base URL, API key, reachability.

entidex statusfree

Quick API reachability + auth check with latency.

entidex completion bash|zsh|fish|powershellfree

Generate shell completion script.

entidex versionfree

Print version, commit, and build date.

Exit codes

The exit-code contract is stable across versions — scripts and CI pipelines can branch on it directly.

CodeNameMeaning
0OKSuccess.
1Generic errorUnexpected error — read stderr for the [CODE] line.
2MisuseBad flags or wrong arguments. Run with --help.
3Auth requiredNo API key, expired key, or insufficient scope. Run entidex login.
4Rate-limitedQuota exceeded — slow down or upgrade.
5Not resolvedNo entity matched the query.
6Tier unavailableEndpoint requires a higher tier — visit https://entidex.com/pricing.
7Network errorAPI unreachable or upstream 5xx.
8Config errorLocal config file unreadable or invalid.

Configuration

Configuration lives in ~/.entidex/config.toml (mode 0600). Run entidex config path to print the absolute path on your platform.

# ~/.entidex/config.toml
base_url   = "https://entidex.com"
api_key    = "entx_live_sk_xxxxxxxxxxxxxxxxxxxxxxxx"
api_key_id = "key_01HXXXXXXXXXXXXXXXXXXXXXXX"
output     = "auto"        # auto | pretty | json
telemetry  = true
machine_id = "f1e2d3c4-...."  # opaque, generated once
tier       = "layer_2_insight"
email      = "you@example.com"

Environment overrides

  • ENTIDEX_API_KEY — overrides the file value.
  • ENTIDEX_BASE_URL — point at staging or self-hosted.
  • ENTIDEX_OUTPUT — auto | pretty | json.
  • ENTIDEX_NO_TELEMETRY=1 — disable telemetry for one process (paid tier semantics still apply for persistent disable).
  • ENTIDEX_INSTALL_DIR — installer target directory (install.sh / install.ps1).

LLM agent affordances

The CLI is designed to be driven by autonomous agents as comfortably as by humans. Every output is parseable, every error is structured, and the API surface is self-describing.

  • entidex schema emits the full OpenAPI spec — point an agent at this once and it can call every endpoint correctly.
  • --json always works, regardless of whether stdout is a TTY.
  • Errors use the stable line format [CODE] message — action on stderr. The action segment is a short imperative the agent can execute.
  • --idempotency-key <key> on every write — safe to retry on network errors without double-spending quota.
  • --dry-run describes the action without executing — useful for planning passes.
  • --yes bypasses confirmation prompts on destructive operations (revoke, remove).
  • Exit codes 3, 4, 6, 7 are recoverable with specific actions (login, back-off, upgrade, retry). Codes 2, 5, 8 indicate the agent has the wrong inputs.

Telemetry & privacy

Telemetry is anonymous CLI usage data we use to improve the tool — it is required on the free tier (so we can keep the free tier free) and opt-out on every paid tier.

What is sent

A whitelist enforced server-side: command, subcommand, flags, exit_code, latency_ms, entity_type, surfaces, window, output_format, tier, error_code, auth_state, install_source.

What is never sent

Entity values (slugs, names, ids), IP addresses, API keys, file paths, command output, free-text query strings. The only stable identifier is an opaque machine_id generated once on first run, used solely for rate-limiting (60 events/minute).

entidex telemetry status     # show current state
entidex telemetry disable    # paid tiers only
ENTIDEX_NO_TELEMETRY=1 entidex lookup spacex   # one-shot disable

Tier matrix

Each tier unlocks a set of CLI commands. Tiers are additive — higher tiers include everything below.

TierIntentRead commandsWrite commands
freeDiscovery & integrationlookup, complete, categories, search, resolve, schema, doctor, statuslogin / keys / config
layer_1_profileFull profile access+ export, consensus, lifecycle, knowledge, verify, score-history, track *+ track / refresh / feedback
layer_2_insightVisibility, sentiment & drift+ visibility, sentiment, drift, trust-stack, decision-survival, x-sentiment, bulk+ bulk
layer_3_driftLive streaming+ watch (SSE)—
layer_4_cohortCohort & comparative+ cohort list/show/compare/position—

When a command requires a higher tier, the CLI exits with code 6 and prints [TIER_REQUIRED] … — upgrade at https://entidex.com/pricing.

Troubleshooting

[AUTH_REQUIRED] on every call

Run entidex doctor. If the api key line shows not set, run entidex login or export ENTIDEX_API_KEY. If the key is set but you still see auth errors, the key may have been revoked — list with entidex keys list and create a new one.

watch disconnects every 10 minutes

By design — server-side cap to keep streaming connections fair. Wrap in a small loop with back-off, or use entidex drift on a cron.

Postinstall failed for npm / pip

The Node and Python packages are thin wrappers around the native binary. If the postinstall download fails (corporate proxy, offline CI), install via install.sh / install.ps1 and the wrapper will detect the binary on PATH.

Pretty output renders as raw escape codes

Your terminal does not advertise itself as a TTY, or stdout is being captured. Force a mode with --output pretty or --json.

Diagnosing any other issue

Add --debug to print the request URL and timing to stderr, then attach the output to a GitHub issue at github.com/entidex/entidex-cli.

entidex --debug visibility openai

Source & releases

The CLI is open-source (MIT) at github.com/entidex/entidex-cli. Releases are signed and built reproducibly via GitHub Actions + GoReleaser. Checksums are published with every release; the universal installer verifies them automatically.