Veto/docs

Installation

Install the Veto SDK for TypeScript or Python.

TypeScript

npm install veto-sdk

Or with your preferred package manager:

pnpm add veto-sdk
yarn add veto-sdk

Python

pip install veto

With LLM provider support:

pip install veto[openai]      # OpenAI support
pip install veto[anthropic]   # Anthropic support
pip install veto[gemini]      # Google Gemini support
pip install veto[all]         # All providers

Initialize configuration

After installing, run the init command to create your Veto config directory:

# TypeScript
npx veto init

# Python
veto init

This creates a veto/ directory in your project root:

veto/
├── veto.config.yaml    # Main configuration
└── rules/
    └── defaults.yaml   # Default rule file

The generated config defaults to local mode — rules are evaluated in-process with zero network calls. No API key or account needed.

To switch to cloud mode later, set VETO_API_KEY or pass apiKey to Veto.init(). See SDK Modes for details.