Skip to main content

CLI to connect local agents to the Veris backend

Project description

veris-cli

PyPI version Tests Python

Veris CLI connects a local agent to the Veris simulation backend so you can generate scenarios and run end-to-end evaluations.

Quickstart

Before you start

  • Python 3.11+
  • uv installed

If you want to run simulationa against you local agent you need ngrok setup: Follow: https://ngrok.com/docs/getting-started/

You need to have an API key and Agent ID from the Veris team.

Installation

uv add tool veris-cli

Initialize (one time only)

IMPORTANT: Get your VERIS_API_KEY and VERIS_AGENT_ID if you don't have it already. Ask us on Slack or email developers@veris.ai if need help.

veris init --veris-api-key YOUR_API_KEY --veris-agent-id YOUR_AGENT_ID

This creates .veris/config.yaml with your credentials.

Commands

Local Setup

If you're running a local agent, use ngrok to create a public tunnel:

# Start tunnel in background (default)
veris setup-local start --local-url http://localhost:8000

# Run in foreground (blocks until Ctrl+C)
veris setup-local start --local-url http://localhost:8000 --foreground

# Stop all tunnels
veris setup-local stop

This saves the public URL to .veris/config.yaml under PUBLIC_AGENT_URL.

Agent Management

# Show agent information
veris agent show

# Or specify a different agent
veris agent show --agent-id AGENT_ID

Scenario Management

# List scenario sets for your agent
veris scenario list

# Or specify a different agent
veris scenario list --agent-id AGENT_ID

Simulation

# Launch simulation
veris simulation launch --scenario-set-id SET_ID --max-turns 20 --watch

# Launch with custom agent connection settings
veris simulation launch \
  --scenario-set-id SET_ID \
  --max-turns 20 \
  --agent-url https://your-agent.com \
  --agent-transport http \
  --agent-timeout 300 \
  --watch

# Get simulation status
veris simulation status --run-id RUN_ID

# Get sessions
veris simulation sessions --run-id RUN_ID

# Get logs (all sessions or specific session)
veris simulation logs --run-id RUN_ID
veris simulation logs --run-id RUN_ID --session-id SESSION_ID

# Get results
veris simulation results --run-id RUN_ID

# Kill running simulation
veris simulation kill --run-id RUN_ID

Configuration

Credentials and settings are stored in .veris/config.yaml:

VERIS_API_KEY: your_api_key
VERIS_AGENT_ID: your_agent_id
VERIS_API_URL: https://simulator.api.veris.ai/
PUBLIC_AGENT_URL: https://xxxx.ngrok.io  # Set by setup-local

Development

# Install dependencies
uv sync

# Run tests
uv run pytest

# Format code
uv run ruff format

# Lint
uv run ruff check --fix

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veris_cli-1.12.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veris_cli-1.12.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file veris_cli-1.12.0.tar.gz.

File metadata

  • Download URL: veris_cli-1.12.0.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for veris_cli-1.12.0.tar.gz
Algorithm Hash digest
SHA256 d6f6b8086a5df654bb171c8cd2b11305ab88c89fc59b33170a42716c3a50f41b
MD5 a4be18316ac59aecc8601968452e0820
BLAKE2b-256 c3d443584c9cda0b9cbb2502b57861efe106ba3d7a8c55c0263f73847401ca17

See more details on using hashes here.

File details

Details for the file veris_cli-1.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for veris_cli-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cbf2c48512ebb70e95b4714a94b1e35ee272fd9417d807b42e4d75ab31196aa
MD5 8ae6ce5db75072640c7b6e82801a43af
BLAKE2b-256 0d8b2e2ccfbcd0a14101ee4e3e3c86217ac10ede119b9253607cbf99a494396f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page