Installation
Install the Veto SDK for TypeScript or Python.
TypeScript
npm install veto-sdkOr with your preferred package manager:
pnpm add veto-sdk
yarn add veto-sdkPython
pip install vetoWith 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 providersInitialize configuration
After installing, run the init command to create your Veto config directory:
# TypeScript
npx veto init
# Python
veto initThis creates a veto/ directory in your project root:
veto/
├── veto.config.yaml # Main configuration
└── rules/
└── defaults.yaml # Default rule fileThe 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.