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

Axiom CLI

$ axiom Official Med Risk
Axiom · Workspace & SaaS · MIT · macos / linux / windows

Axiom CLI (axiom) lets developers and coding agents query datasets with Axiom Processing Language (APL), inspect dataset schemas/stats, stream logs, and ingest test payloads. Fast Go execution and AXIOM_TOKEN env auth make it ideal for automated incident debugging.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install --cask axiomhq/tap/axiom
CLI vs MCP Decision Hybrid (CLI + MCP)

Use axiom CLI for piping APL query results, dataset list -f json, and local ingestion tests; Axiom MCP is handy for conversational log exploration.

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 22 / 25

Fast Go CLI supporting -f json on resource commands, piped stdin ingestion, and clean AXIOM_TOKEN env auth.

  • axiom dataset list -f json returns structured JSON
  • Non-interactive AXIOM_TOKEN and AXIOM_ORG_ID support
Trust & Safety 21 / 25

Supports fine-grained read-only Axiom API tokens scoped to specific datasets, isolating query agents from destructive ops.

  • Read-only dataset-scoped tokens prevent dataset delete or ingest abuse
  • axiom query reads telemetry without mutating production apps
Setup & Portability 13 / 15

Single static Go binary available via Homebrew tap cask, go install, Docker, and GitHub releases.

  • brew install --cask axiomhq/tap/axiom and go install
Utility & Efficiency 13 / 15

High leverage for querying logs with APL and validating ingestion pipelines directly from the terminal.

  • Direct APL query execution and stdin ingestion
Maintenance & Lineage 9 / 10

Official Axiom repository (axiomhq/cli) maintained under MIT.

  • Official Axiom GitHub organization
Docs & Verifiability 8 / 10

Documented in Axiom's official CLI reference and APL docs.

  • Official docs at axiom.co/docs/reference/cli

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Stores profiles in ~/.axiom.toml or reads AXIOM_TOKEN and AXIOM_ORG_ID from environment variables.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI is free (MIT); Axiom includes a generous free tier (500 GB/month) with usage-based paid tiers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Axiom CLI Agent Rules
- Always include `| limit N` (e.g. `| limit 50`) in `axiom query` APL expressions to prevent huge outputs.
- Use a read-only `AXIOM_TOKEN` for investigation agents.
- NEVER run `axiom dataset delete` or `axiom dataset trim` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Axiom datasets as JSON
axiom dataset list -f json

Lists all datasets, retention settings, and sizes in the active organization as JSON.

Run a bounded APL query
axiom query "['logs'] | where status >= 500 | limit 20"

Queries up to 20 recent HTTP 5xx events from the logs dataset using APL.

Controlled Writes & Previews

Ingest sample JSON events into a test dataset
axiom ingest my-test-dataset -f json < sample.json

Streams a small local JSON payload into a dedicated test dataset for pipeline validation.

Strengths for Agents

  • + Fast Go binary with AXIOM_TOKEN env auth and -f json on resource listing commands.
  • + Supports fine-grained read-only API tokens for safe production log triage.
  • + Direct APL queries (axiom query) and stdin ingest streamline observability debugging.

Caveats & Pitfalls

  • ! axiom query does not take -f json itself (unlike dataset list), outputting tabular/structured APL results directly.
  • ! axiom stream is a continuous tail command that blocks unless bounded.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI