Installation
- pip (Python)
- npm (Node.js)
- curl (no install)
vrin command globally.Authentication
Set your API key as an environment variable:Quick start
Output modes
The CLI automatically detects its environment:| Context | Output format | Example |
|---|---|---|
| Interactive terminal (TTY) | Human-readable | vrin query "..." |
| Piped / non-TTY | JSON | vrin query "..." | jq . |
--json flag | JSON (forced) | vrin query "..." --json |
VRIN_OUTPUT=json env var | JSON (forced) | For agent environments |
For AI agents
VRIN is built to be called by AI agents. Key patterns: 1. Auto-discovery: Runvrin --describe to get a machine-readable JSON schema of all commands, arguments, and flags. Point your agent here first.
--json when invoking programmatically:
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Authentication failed |
| 3 | Rate limited |
| 4 | Validation error |
| 5 | Job failed |
| 6 | Timeout |
| 7 | Service unavailable |
Next steps
- Query commands — modes, depth levels, streaming, conversations
- Knowledge commands — insert, upload, bulk-insert, async jobs
- Admin commands — health, limits, specialization, graph
- Auth commands — login, register, API key management
- Python SDK — programmatic access from Python code
- MCP Server — connect VRIN to Claude, Cursor, or any MCP-compatible agent