Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Coralogix CLI

$ cx Official Med Risk
Coralogix · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Coralogix CLI (cx) queries logs, spans, and PromQL metrics using DataPrime (cx logs, cx spans, cx metrics, cx dataprime), manages alerts and SLOs, and exposes cx schema for agent discovery. Features both -o json and compact -o toon output plus --url and --label scoping.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install cx
CLI vs MCP Decision CLI Preferred vs MCP

cx includes cx schema self-description and -o toon compact serialization tailored for LLM agents, cutting telemetry log token consumption compared to verbose JSON MCP payloads.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

Purpose-built for coding agents with -o json, token-saving -o toon, cx schema JSON introspection, and non-interactive flags (--url, --label).

  • Supports -o json and LLM-optimized -o toon output formats
  • Exposes cx schema to dump the full command tree programmatically
Trust & Safety 20 / 25

Scoped Coralogix API keys and regional --url / --label targeting prevent cross-environment mistakes, though alert/SLO mutations lack --dry-run.

  • Explicit --url and --label flags scope target regions
  • Supports separate alerts enable / alerts disable toggles
Setup & Portability 14 / 15

Available directly via Homebrew (brew install cx) and cross-platform release binaries.

  • Single-binary install via brew install cx
Utility & Efficiency 14 / 15

Unifies DataPrime logs, spans, PromQL metrics, alert management, and SLO inspection with minimal context overhead.

  • Cross-pillar telemetry querying (logs, spans, metrics, alerts, slos)
Maintenance & Lineage 9 / 10

Official Coralogix repository (coralogix/cx-cli) under Apache-2.0 license.

  • First-party coralogix/cx-cli repository
Docs & Verifiability 9 / 10

Backed by cx schema runtime introspection, official agent skill guides, and Coralogix CLI docs.

  • Official docs and cx schema self-describing command tree

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores regional profiles in ~/.cx/ or reads Coralogix API key environment variables (CORALOGIX_API_KEY) and --url / --label overrides.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; requires a Coralogix account and scoped API key.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Coralogix CLI (cx) Agent Rules
- Always include `| limit <N>` in DataPrime queries and use `-o toon` or `-o json`.
- Run `cx schema` to verify exact command arguments before mutating `cx alerts` or `cx slos`.
- Pass `--label` / `--url` or `CORALOGIX_API_KEY` explicitly to target the right Coralogix region.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query DataPrime logs in compact TOON format
cx dataprime query "source logs | filter \$l.applicationname == 'api' | limit 20" -o toon

Executes a bounded DataPrime log query and renders token-efficient -o toon output for agent analysis.

List configured alert rules as JSON
cx alerts list -o json

Retrieves Coralogix alert definitions in structured JSON without mutating alert state.

Controlled Writes & Previews

Disable an alert rule by ID
cx alerts disable <alert-id> -o json

Pauses a noisy alert rule while returning the updated JSON state.

Strengths for Agents

  • + Native -o toon format dramatically reduces token usage when reading large log and span queries.
  • + cx schema gives agents machine-readable discovery of every subcommand and flag.

Caveats & Pitfalls

  • ! Unbounded DataPrime queries without limit can still return large payloads.
  • ! Write subcommands (cx alerts create, cx alerts delete, cx slos) do not provide a universal --dry-run.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI