SDK
Evigauge SDK Reference
Instrument your agents so Evigauge can reconstruct why they did what they did.
This document covers the Python SDK (evigauge-trace), the TypeScript /
OpenTelemetry route, framework adapters, and the evigauge CLI.
Companion documents: REST API Reference · MCP & Claude Code Plugin
Naming: Evigauge vs evigauge
The product is Evigauge (formerly Evigauge). The rename is a brand change only.
Every identifier in code stays evigauge. Renaming any of these breaks
installation, imports, auth, or span validation:
| Surface | Value — do not rename |
|---|---|
| PyPI package | evigauge-trace |
| Python import | import evigauge.trace |
| Console scripts | evigauge, pxcore-mcp, pxcore-proxy |
| Auth header | x-evigauge-api-key |
| Ingest host | ingest.evigauge.ai |
| Span attributes | evigauge.* |
| Env vars | EVIGAUGE_API_KEY, EVIGAUGE_TRANSPORT, … |
| Local WAL | .evigauge-wal/spans.jsonl |
| Config files | .evigauge/shipcheck.yml, .evigauge/agentmap.lock |
Language support at a glance
| Python | TypeScript / JavaScript | |
|---|---|---|
| Package | pip install evigauge-trace | No Evigauge npm package — use OpenTelemetry JS |
| Setup | evigauge.trace.init(...) | OTLP/JSON exporter + attribute helpers |
| Decorator / wrapper | @observe, ReasoningTrace | withEvigaugeTrace() |
| Auto-instrumentation | ✅ patches LLM clients | ➖ manual, or OTel auto-instrumentation |
| Crash-safe WAL | ✅ built in | ➖ rely on BatchSpanProcessor |
| CLI | ✅ | ✅ (the CLI is language-agnostic) |
There is no
@evigauge/tracenpm package, and none is planned — TypeScript instruments through native OpenTelemetry JS exporting OTLP/JSON. The helper module in TypeScript setup does the rest.