Installation
Vibrant can be used without installation vianpx, or installed globally for faster access.
Prerequisites
Vibrant requires Node.js 18.0.0 or higher. Check your version with
node --version.Installation methods
- npx (recommended)
- npm
- Bun
The easiest way to use Vibrant is via This runs the latest version of Vibrant without any global installation.
npx - no installation needed:Verify installation
Check that Vibrant is installed correctly:AI provider setup (optional)
AI-powered analysis is optional. Vibrant works great with just static analysis (no API keys needed).
| Provider | Environment Variable | Free Tier | Recommended Model |
|---|---|---|---|
| OpenRouter | OPENROUTER_API_KEY | ✅ Free models | google/gemini-2.0-flash-lite-001 |
| Gemini | GOOGLE_GENERATIVE_AI_API_KEY | ✅ Free tier | gemini-2.0-flash-lite |
| OpenAI | OPENAI_API_KEY | ❌ Paid | gpt-4o-mini |
| Claude | ANTHROPIC_API_KEY | ❌ Paid | claude-3-haiku-20240307 |
| Ollama | OLLAMA_HOST | ✅ Local, free | llama3.2 |
Configure API keys
Choose one of these methods:Get API keys
OpenRouter
Free models available. Best for getting started.
Google Gemini
Generous free tier. No credit card required.
OpenAI
Paid service. GPT-4o-mini is cost-effective.
Anthropic Claude
Paid service. Claude 3 Haiku is fast and affordable.
Ollama (local AI)
For privacy-focused users, run AI analysis completely offline with Ollama:Install Ollama
Download and install Ollama from ollama.ai
Create a configuration file (optional)
Vibrant works with zero configuration. Only create a config file if you want to customize behavior.
vibrant.config.js file:
vibrant.config.js
Next steps
Quick start
Learn how to use Vibrant to analyze your code