Skip to main content
The Sentrial CLI gives humans and agents terminal access to Sentrial. Install SDKs, scaffold integrations, inspect sessions and events, diagnose failures, and run CI gates without browser login. The published CLI ships with @sentrial/sdk 0.5.0 as the sentrial binary. This page describes that release. Start with the quickstart to send a real trace with the published TypeScript or Python SDK.
Guided setup and Doctor are prepared for a future SDK release. They are not in the currently published packages; use the commands below until publication.

Prerequisites

  • Node.js 18+
  • A Sentrial API key from organization settings

Installation

npm
Or use without installing:
npm
Set your API key:
Initialize from the root of your agent repository:
Installation creates examples; adapt and run them to send telemetry. For a complete first trace without a framework or model provider, use the quickstart. Python projects can follow that guide directly without installing Node.

Commands

install

Install the SDK and scaffold example integration files.
Version 0.5.0 does not accept install --json. Use --dry-run to inspect installation steps.

init

Scaffold examples without installing packages.

login

Save an API key for future CLI calls.

sessions list

List recent sessions.

sessions get

Fetch one session and its events.

events list

List events for a session.

signals list

List detected signals.

diagnose

Diagnose a failed session from its event timeline.

evaluate

Run an experiment quality gate in CI.
sentrial evaluate calls /api/v1/evaluate, which requires an API key carrying the metrics:read scope. Dashboard-generated keys include it; a manually-narrowed key without it fails the CI gate with a 403.

Common Workflows

Set Up A New Agent Repo

Debug A Failed Session

Inspect Tool Calls

Gate An Experiment In CI

Output

Commands print readable terminal output by default. Add --json for scripts and agents:

Environment Variables

Reserved Commands

These commands are intentionally present but guarded until the backing APIs are public: