Skip to content

Quickstart

Install

npm install @axiom-infra/core

What this example demonstrates

  • Local-only transformation (no network calls)
  • Explicit boundary between raw input and output
  • Deterministic output structure

30-second example (standard tier)

import { Axiom } from "@axiom-infra/core";

const axiom = new Axiom({
  securityTier: "standard",
  enclave: "none",
  policyVersion: "v1",
});

const result = await axiom.reason({
  context: "John Doe signed a $50,000 contract with Acme Corp on 2026-01-15",
  task: "Analyze this business transaction",
});

console.log(result.transformedContext);

Attested preview (simulator fallback)

const axiom = new Axiom({
  securityTier: "attested",
  enclave: "auto",
  policyVersion: "v1",
  platform: {
    type: "sev-snp",
    verificationMode: "permissive",
  },
});

const result = await axiom.reason({
  context: "Alice paid Bob $100.",
  task: "Summarize the payment",
});

console.log(result.attestationEvidence);

What you get back

  • transformedContext — de-identified semantic structure
  • attestationEvidence — only in attested tier
  • verificationHint — expected measurement hint for verification

Next steps


Prev: User Guide Overview | Next: Configuration