SDK
The evigauge CLI
On this page
Installed with the package as the evigauge console script.
pip install evigauge-trace
# or: uv add evigauge-trace
usage: evigauge <command> [options]
Account
login sign in through the browser and store an API key locally
whoami show the signed-in account, workspace, project and plan
switch sign in again to pick a different workspace or project
logout forget the locally stored credentials
Getting data in
import ship existing local trace files into Evigauge
onboard map already-ingested traces into an estate ontology
Checks
shipcheck pre-merge check for prompt/model/config changes (no LLM, no re-run)
audit local, zero-egress security audit + relational map of an agentic app
live live terminal dashboard of pxcore token/$ savings (local, zero-egress)
Run `evigauge <command> --help` for its options.
Typical first run
evigauge login # authenticate
evigauge import --glob 'runs/*/spans.jsonl' # push traces you already have (optional)
evigauge onboard # map them into an estate ontology
evigauge whoami # confirm workspace, project and plan
login comes first because every command that talks to Evigauge reads the key it
stores. The three local commands — audit, live, and shipcheck when pointed
at a JSON policy — work without ever signing in.
Account
evigauge login
Signs in through the browser and stores an API key locally.
The key is minted by the CLI, not shown in the browser: the command runs an OAuth 2.0 device authorization flow, prints a short user code, opens the dashboard, and polls while you confirm the code and pick a workspace. Nothing secret crosses the browser, which is why there is no key to copy, paste or leak into a screenshot. See CLI Authorization for the exchange itself.
evigauge whoami
Prints the signed-in account, and the workspace, project and plan the stored key resolves to. The fastest way to answer "why did that land in the wrong project": the CLI reports the project the key is actually scoped to, not the one you meant.
evigauge switch
Signs in again to pick a different workspace or project. The same device flow as
login, so it replaces the stored key rather than adding a second one.
evigauge logout
Forgets the locally stored credentials. It does not revoke the key at the server — a key that may have been copied elsewhere is revoked from API keys or the dashboard.
Getting data in
evigauge import <path>
Ships trace files you already have on disk into Evigauge. OTLP/JSON and JSONL.
This is the answer to "we have months of logs and we are not re-running anything": the files go in as they are, and the engines run over them like any other traffic. No code change, no re-run, no SDK in the path.
| Flag | Purpose |
|---|---|
--glob | Match many files at once, e.g. --glob 'runs/*/spans.jsonl' |
--project | File the imported traces under a project |
--dry-run | Parse and report what would be sent, and send nothing |
Run --dry-run first on a sample. The wire contract is strict and violations
are dead-lettered silently at ingest, so a dry run is how you find out that a
field is wrong before pushing a month of history through it. See
Span attribute reference for the rules, and
Projects and attribution for why --project has to
name a project that already exists.
evigauge onboard
Runs enterprise-migration onboarding over traces already ingested, streaming live progress, and builds the estate ontology from them.
The run samples recent traces, infers the desks, workflows, agents, models, tools and data sources that actually appear in the traffic, and produces one cumulative set of cost and optimization findings for the estate. It is the same run as the dashboard's "Map estate" button, with the stages printed as they happen. The API behind it, including what each stage means and why two of its reads return 404 until their stage completes, is in Estate Migration & Ontology.
Pair it with import: bring the history in, then map it.
Checks
evigauge shipcheck
A pre-merge gate for prompt, model, and config changes. Runs no LLM and re-runs nothing — it compares the candidate against recorded baseline telemetry, so it is fast and deterministic enough for every pull request.
evigauge shipcheck --help
Policy is read from .evigauge/shipcheck.yml (needs the shipcheck extra for
YAML) or an equivalent JSON file, which needs no extra.
# .evigauge/shipcheck.yml
gates:
cost_increase_pct: 15 # fail if projected cost rises more than 15%
latency_increase_pct: 20
grade_regression: true # fail on any reliability grade regression
GitHub Actions:
name: Ship Check
on: pull_request
jobs:
shipcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: "3.12" }
- run: pip install 'evigauge-trace[shipcheck]'
- run: evigauge shipcheck
env:
EVIGAUGE_API_KEY: ${{ secrets.EVIGAUGE_API_KEY }}
Ship Check's Gate 3 runs evigauge audit automatically — see below.
The underlying REST endpoint is
POST /v1/observ/shipcheck/candidate.
evigauge audit
A local security audit and relational map of an agentic application.
100% local, zero egress. No network call, no LLM call, no process spawned — and nothing it finds ever leaves the machine. Findings are a disclosure, so they must not travel.
evigauge audit --help
evigauge audit --tree # terminal tree instead of the HTML map
It reads the repo's declarations — .mcp.json and other MCP configs,
.claude/agents, skills, hooks, in-code tool definitions — reconstructs the agent
topology plus a relational layer (capabilities, datastores, external endpoints,
secrets by name), and audits it against the NSA MCP Security Design
Considerations CSI.
What it checks:
- Tool-description injection, including hidden Unicode
- Blanket OAuth scopes
- Unpinned
npx/uvxboot-time code execution - Shell-spawning servers
- Tool-name collisions
- Cleartext credentials — shape only, the value is never emitted
- Source → sink exfiltration paths
The headline output is .evigauge/agentmap.lock — commit it. It turns a silent
capability change (a "rug pull") into a reviewable diff in a pull request.
It also renders a self-contained local HTML map that loads nothing from the network.
When run inside
shipcheck, only the verdict and finding categories reach the shared PR comment. Evidence stays on stdout and in the local run.
evigauge live
A live terminal dashboard of pxcore token and dollar savings. Local and
zero-egress by default, with an opt-in backend plane.
pip install 'evigauge-trace[live]'
evigauge live
Requires the live extra (rich). Falls back to ASCII on terminals without
Unicode box-drawing support.