Skip to main content

Bootstrap installer and wrapper for the Vera CLI

Project description

vera-ai

Code search for AI agents. Vera indexes your codebase using tree-sitter parsing and hybrid search (BM25 + vector similarity + cross-encoder reranking), then returns ranked code snippets as structured JSON.

This package downloads and wraps the native Vera binary for your platform. On musl-based Linux (Alpine, NixOS), the correct static binary is selected automatically. Set VERA_TARGET to override target detection (e.g., VERA_TARGET=x86_64-unknown-linux-musl uvx vera-ai install).

Current benchmark snapshot: on Vera's local 21-task, 4-repo release benchmark, v0.7.0 reaches 0.78 Recall@5, 0.83 Recall@10, 0.91 MRR@10, and 0.84 nDCG@10 with the local Jina CUDA ONNX stack. Full details live in the main repo docs.

Install

pip install vera-ai

vera-ai setup only configures the backend. Run vera-ai agent install to set up skill files for your agents (interactive by default, or pass --client and --scope for non-interactive use). The interactive flow can also update AGENTS.md / CLAUDE.md style project instructions for you.

Usage

# Optional: install skill files for your agents
vera-ai agent install

# Index a project
vera-ai index .

# Search
vera-ai search "authentication middleware"

# Local ONNX inference (no API keys needed. downloads models automatically)
vera-ai index . --onnx-jina-cpu
vera-ai search "error handling" --onnx-jina-cpu

# Optional local CodeRankEmbed preset
vera-ai setup --code-rank-embed --onnx-jina-cuda

# GPU acceleration (NVIDIA/AMD/DirectML/CoreML/OpenVINO)
vera-ai index . --onnx-jina-cuda

# Diagnose or repair local setup issues
vera-ai doctor
vera-ai doctor --probe
vera-ai repair
vera-ai upgrade

vera-ai doctor --probe runs a deeper read-only ONNX session check. vera-ai upgrade shows the binary update plan and can apply it when the install method is known.

On GPU backends, Vera uses a free-VRAM-aware batch ceiling and sequence-aware local micro-batching, and it reuses learned device-specific batch windows across runs.

What you get

  • 60+ languages via tree-sitter AST parsing
  • Hybrid search: BM25 keyword + vector similarity, fused with Reciprocal Rank Fusion
  • Cross-encoder reranking for precision
  • Markdown codeblock output by default with file paths, line ranges, and optional symbol info (use --json for compact JSON, --raw for verbose output, --timing for step durations)

For full documentation, including custom local ONNX embedding models and manual install steps, see the GitHub repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vera_ai-0.11.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vera_ai-0.11.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file vera_ai-0.11.6.tar.gz.

File metadata

  • Download URL: vera_ai-0.11.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for vera_ai-0.11.6.tar.gz
Algorithm Hash digest
SHA256 927bb3636e54054013b85c6a618e7a258d46e198b97695dd94fce02de7ea070a
MD5 45254fba438ed0d70a412d5b81491aee
BLAKE2b-256 b369fa2e6101a80517dc9f50f5caaae737aeede6593a3d9bcca2a96ed24c6a84

See more details on using hashes here.

File details

Details for the file vera_ai-0.11.6-py3-none-any.whl.

File metadata

  • Download URL: vera_ai-0.11.6-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for vera_ai-0.11.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0a39b3531479aa2bf2578c3ac8478c913c4fa086530b6d24759c2022c2358b
MD5 0c456f74b462a100d3d818c9084ecba0
BLAKE2b-256 924d6d4deb8647b4e3182cda0c32e4595f4da7c72901b3495e44ebe64914b584

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page