Skip to main content
The VRIN CLI lets you interact with your knowledge base directly from the terminal. It’s designed for both humans and AI agents: human-readable output at a TTY, structured JSON when piped or called programmatically.

Installation

Requires Python 3.9+. Installs the vrin command globally.

Authentication

Set your API key as an environment variable:
Or pass it inline per command:
Get an API key at vrin.cloud, or create one from the CLI:

Quick start

Output modes

The CLI automatically detects its environment: JSON output format:

For AI agents

VRIN is built to be called by AI agents. Key patterns: 1. Auto-discovery: Run vrin --describe to get a machine-readable JSON schema of all commands, arguments, and flags. Point your agent here first.
2. Always use --json when invoking programmatically:
3. Exit codes map to error types: 4. Errors go to stderr, data goes to stdout. Your agent can parse stdout for results and stderr for errors independently.

Next steps