Documentation

Everything needed to run your first agent, then operate it in production. SDKs for Python, TypeScript, Go and Java; a REST API for everything else.

Quickstart

Five minutes from install to a traced run. You need Python 3.10+ and an API key from the console.

1. Install the SDK

terminal
pip install veltrix
export VELTRIX_API_KEY="vx_live_..."
veltrix login --verify

2. Define an agent

agent.py
from veltrix import Agent, tool

@tool(scopes=["kb:read"])
def search_kb(query: str) -> list[dict]:
    # Your implementation; Veltrix handles retries and audit
    return kb.search(query, limit=5)

agent = Agent(
    name="docs-helper",
    model="claude-sonnet",
    tools=[search_kb],
    instructions="Answer from the knowledge base only.",
)

3. Run it locally, then deploy

terminal
# Local run with full trace output
veltrix run agent.py "How do I rotate an API key?" --trace

# Promote through evals to production
veltrix eval run --suite docs-golden --agent docs-helper
veltrix deploy --agent docs-helper --env production
Tip: veltrix dev starts a local inspector with replay, cost breakdown and policy simulation against recorded traces.
Core concepts

Four objects, no magic

Agent

A versioned definition: model, tools, instructions and policy reference.

Tool

A typed function with declared scopes, timeouts and an idempotency contract.

Run

One execution with a durable step log, cost, latency and outcome.

Policy

Versioned rules that decide whether a tool call is allowed, denied or paused.

API reference

REST over HTTPS, JSON everywhere

Base URL https://api.veltrix.com/v1. Authentication uses a bearer key; all endpoints are scoped to a workspace.

MethodEndpointPurpose
POST/runsStart a run for an agent version
GET/runs/{id}Fetch status, steps and cost
POST/runs/{id}/approveGrant or deny a paused action
POST/runs/{id}/cancelStop a run, refund unused budget
GET/agentsList agents and their deployed versions
POST/agents/{id}/deployPromote a version to an environment
POST/evalsRun an evaluation suite against a version
GET/audit/eventsCursor-paginated audit stream
GET/usageSteps, tokens and spend by dimension
curl
curl -X POST https://api.veltrix.com/v1/runs \
  -H "Authorization: Bearer $VELTRIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent": "docs-helper",
    "version": "2026-11-04",
    "input": "How do I rotate an API key?",
    "idempotency_key": "req_8f21c"
  }'
Evaluation gates

Block the merge, not the incident

Suites run in CI on every prompt or tool change. Each case is scored on task success, groundedness, cost and latency; thresholds are per suite, not global.

  • Golden datasets versioned alongside the agent
  • LLM judges with calibration against human labels
  • Paired comparison against the currently deployed version
  • Failures attached to the pull request with replay links
.github/workflows/eval.yml
- name: Agent eval gate
  run: veltrix eval run --suite support-golden
       --min-success 0.94
       --max-cost 0.35
       --compare deployed
  env:
    VELTRIX_API_KEY: ${{ secrets.VELTRIX_API_KEY }}
CLI

The commands you will actually type

CommandWhat it does
veltrix initScaffold an agent project with CI and policy files
veltrix devLocal inspector with replay and trace search
veltrix runExecute a single run, optionally with a trace
veltrix eval runScore a suite and compare to deployed
veltrix deployPromote a version through environments
veltrix logsStream run events in the terminal
veltrix policy testSimulate a policy against recorded runs
veltrix rollbackRestore the previous deployed version
Changelog

Recent releases

  • 2026-11-06 · v4.2

    Approval delegation, per-tool cost ceilings, and Go SDK 1.0.

  • 2026-09-18 · v4.1

    EU region GA, customer-managed keys, audit export to Splunk.

  • 2026-07-29 · v4.0

    New runtime with durable checkpoints; 3x throughput on parallel tools.

  • 2026-05-12 · v3.8

    Eval gates in GitHub Actions, human review queues, TypeScript SDK 2.0.