Axiom CLI
$ axiom Official Med RiskAxiom 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.
brew install --cask axiomhq/tap/axiom 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fast Go CLI supporting -f json on resource commands, piped stdin ingestion, and clean AXIOM_TOKEN env auth.
axiom dataset list -f jsonreturns structured JSON- Non-interactive
AXIOM_TOKENandAXIOM_ORG_IDsupport
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 deleteoringestabuse axiom queryreads telemetry without mutating production apps
Single static Go binary available via Homebrew tap cask, go install, Docker, and GitHub releases.
brew install --cask axiomhq/tap/axiomandgo install
High leverage for querying logs with APL and validating ingestion pipelines directly from the terminal.
- Direct APL query execution and stdin ingestion
Official Axiom repository (axiomhq/cli) maintained under MIT.
- Official Axiom GitHub organization
Documented in Axiom's official CLI reference and APL docs.
- Official docs at axiom.co/docs/reference/cli
Security, Auth & Guardrails
Stores profiles in ~/.axiom.toml or reads AXIOM_TOKEN and AXIOM_ORG_ID from environment variables.
CLI is free (MIT); Axiom includes a generous free tier (500 GB/month) with usage-based paid tiers.
# 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
axiom dataset list -f json
Lists all datasets, retention settings, and sizes in the active organization as JSON.
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
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_TOKENenv auth and-f jsonon resource listing commands. - + Supports fine-grained read-only API tokens for safe production log triage.
- + Direct APL queries (
axiom query) and stdiningeststreamline observability debugging.
Caveats & Pitfalls
- !
axiom querydoes not take-f jsonitself (unlikedataset list), outputting tabular/structured APL results directly. - !
axiom streamis a continuous tail command that blocks unless bounded.