Skip to main content

vera-ai

Code search for AI agents. Vera indexes your codebase using tree-sitter parsing and hybrid search (BM25 + vector similarity + optional cross-encoder reranking), then returns ranked code snippets as Markdown codeblocks by default, or JSON with --json.

This package downloads and wraps the native Vera binary for your platform. It downloads the exact package version, checks the release archive size and SHA-256, and stores a completed binary cache. Later runs use that cache without network access. Older caches are downloaded and verified once before they can be reused offline. On Linux without glibc (such as Alpine or NixOS), the wrapper selects the musl binary. Other native targets use their platform system libraries; optional ONNX backends have additional runtime requirements. Set VERA_TARGET to override target detection (e.g., VERA_TARGET=x86_64-unknown-linux-musl uvx vera-ai install).

The default local embedding model, minishlab/potion-code-16M-v2, runs on CPU and works offline after its first download. API mode is also available; Qwen/OpenRouter is recommended among API presets (paid usage). The benchmark report separates the full 1,251-task suite from smaller screening subsets, and the agent benchmark records context measurements and their sample limits.

Install

pip install vera-ai && vera-ai install

Quick Start

vera-ai setup --potion-code --index .
vera-ai search "authentication logic"

vera-ai setup runs the full wizard: configure a backend, optionally install agent skills, and optionally index. Local CPU is first and selected by default; API mode is second. Indexing defaults to Yes for local backends and No for API mode. vera-ai setup --api uses the shorter API configuration flow, with Qwen/OpenRouter first and recommended (one shared key). See the models guide for other providers and non-interactive setup.

The preferred agent integration is the CLI plus the Vera skill: vera-ai agent install installs it for supported coding agents and can add a short usage snippet to your project's AGENTS.md, CLAUDE.md, COPILOT.md, or editor rules file. The client selector uses Space to toggle and Enter to continue. Empty selection changes nothing; unselected installations remain intact. Vera also ships an optional MCP server (vera-ai mcp); see the MCP guide if your client is MCP-first.

Common Tasks

Task Command
Use the interactive setup wizard vera-ai setup
Use the default local model vera-ai setup --potion-code
Configure API mode vera-ai setup --api
Use a local NVIDIA backend vera-ai setup --onnx-jina-cuda
Search semantically vera-ai search "authentication middleware"
Search only changed files vera-ai search "authentication middleware" --changed
Common structural tasks vera-ai structural routes / vera-ai structural env DATABASE_URL / vera-ai structural impls Loader
Find callers or callees vera-ai references foo / vera-ai references foo --callees
Explain why a file is missing vera-ai explain-path path/to/file
Inspect index health vera-ai stats --json
Keep the index up to date vera-ai update .
Watch for file changes vera-ai watch .
Run local HTTP inference server vera-ai serve
Diagnose setup issues vera-ai doctor
Run the deeper local probe vera-ai doctor --probe
Repair missing local assets vera-ai repair
Inspect binary upgrades vera-ai upgrade
Install agent skills vera-ai agent install

For the full backend matrix, model options, Docker setup, and troubleshooting, see the main README and Installation Guide.

What you get

  • 65 languages (61 with tree-sitter AST parsing)
  • Hybrid search: BM25 keyword + vector similarity, fused with Reciprocal Rank Fusion
  • Opt-in cross-encoder reranking for precision, disabled by default
  • Git-aware scopes and index debugging: --changed / --since / --base, explain-path, and index health in vera-ai stats
  • Markdown codeblock output by default with file paths, line ranges, and optional symbol info (use --json for compact JSON; --raw works with vera-ai search, vera-ai grep, and vera-ai references; --timing works with vera-ai search and vera-ai grep, before or after the subcommand)

For full documentation, including local model options and manual install steps, see the GitHub repo.

Metadata

Release files for vera-ai 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vera-ai 2.1.0
File Size Uploaded
vera_ai-2.1.0.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vera-ai 2.1.0
File Interpreter ABI Platform
vera_ai-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / vera_ai-2.1.0.tar.gz

Download URL vera_ai-2.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
97e1ac13b889af34b1267516c3a54fe2b8e15c58caa5289c46c9c6c6dc6f4c79
BLAKE2b-256 checksum
How to use checksums
b38dad92c34d3992c87ef41abf5ef745108996ede6c5968209b0761060547b88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / vera_ai-2.1.0-py3-none-any.whl

Download URL vera_ai-2.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02c3b8c8ef27d3edab662dbbd3044fccde4e0cb949cfc7bd98a7085523a49e41
BLAKE2b-256 checksum
How to use checksums
c2032b1298aa22cc6c3ffa08a4e6644ee328a9388078d4d530c1d3c3faa56cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release history Release notifications | RSS feed

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

This release

2.1.0 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.12.9

2 release files

0.12.2

2 release files

0.12.0

2 release files

0.11.7

2 release files

0.11.6

2 release files

0.11.5

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.21

2 release files

0.9.20

2 release files

0.9.19

2 release files

0.9.18

2 release files

0.9.17

2 release files

0.9.16

2 release files

0.9.15

2 release files

0.9.14

2 release files

0.9.13

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page