Skip to main content

Local-first multi-model AI developer CLI — council-based agents, persistent memory, repository cognition

Project description

Velune

Local-first multi-model AI developer CLI. Council-based agents, persistent memory, repository cognition. No cloud required. No quota. No lock-in.

PyPI Python License: Apache 2.0 CI


What it does

Velune is a terminal-first AI coding assistant that runs a council of specialized agents (Planner, Coder, Reviewer, Challenger, Synthesizer) on your local machine using Ollama, or on free cloud tiers via Groq, OpenRouter, and others.

Unlike Copilot or Cursor, Velune:

  • Runs 100% locally with Ollama — no API key needed
  • Remembers your codebase across sessions (persistent 5-tier memory)
  • Reviews its own code using multiple specialized agents
  • Works in any terminal on any project — no IDE required

60-second quickstart

Option A — Local (Ollama, free, no key)

# 1. Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# 2. Pull a model
ollama pull qwen2.5-coder:7b

# 3. Install Velune
pip install velune-cli

# 4. Initialize in your project
cd your-project
velune init

# 5. Start
velune

Option B — Cloud free tier (Groq, fastest, no GPU needed)

pip install velune-cli
velune init --provider groq
velune setup        # enter your free Groq key
velune

Get a free Groq key at https://console.groq.com/keys — no credit card.


Hardware requirements

RAM GPU Can run local LLM? Recommended setup
< 8 GB any ✗ No Use Groq free tier
8 GB integrated ⚠ 3B models only Groq + phi3-mini local
16 GB integrated ⚠ Slow (CPU only) Groq + 3B local
16 GB 6–8 GB VRAM ✓ 7B comfortable qwen2.5-coder:7b
32 GB 12+ GB VRAM ✓ 13B comfortable Full council local
36 GB Apple Silicon ✓ 27B comfortable Full council, Metal accel
64 GB 24 GB VRAM ✓ 70B capable Max power mode

Velune detects your hardware on startup and prints tier, GPU, and recommendations. On underpowered machines it routes tasks to cloud providers automatically.


Interface

Velune features a modern, clean terminal interface designed for productivity:

  • Startup banner shows your hardware tier, active model, and available providers
  • Responsive prompt with intelligent context indicators (only displays when relevant)
  • Sophisticated color palette using restrained styling for clarity
  • Intuitive command structure with tab-completion for all slash commands
  • Session modes for balancing speed vs. quality (Optimus / Normal / Godly)

Providers

Provider Type Cost Models Setup
Ollama Local Free Any pulled model Install Ollama, pull a model
Groq Cloud Free tier Llama 3.3 70B, Mixtral, Gemma2 velune setup → enter key
OpenRouter Cloud Pay-per-token 100+ models velune setup → enter key
OpenAI Cloud Pay-per-token GPT-4o, GPT-4o Mini velune setup → enter key
Anthropic Cloud Pay-per-token Claude Opus, Sonnet, Haiku velune setup → enter key
xAI (Grok) Cloud Pay-per-token Grok 2, Grok 2 Mini velune setup → enter key
Google Gemini Cloud Free quota Gemini 2.0 Flash, 1.5 Pro/Flash velune setup → enter key

Keys are stored in your OS keyring — never in files, never in git.


Commands

CLI (before the REPL starts)

velune              # Start the persistent REPL session
velune init         # Initialize Velune in a project
velune setup        # Configure API keys securely (stored in OS keyring)
velune doctor       # Check hardware, providers, dependencies
velune models scan  # Discover all available local and cloud models

Inside the REPL

/run <task>              Execute a task through the council
/run --bg <task>         Submit task to background — prompt returns immediately
/jobs                    List all background jobs (ID, status, phase, elapsed)
/jobs cancel <id>        Cancel a running background job
/dashboard               Live progress dashboard (jobs + alerts + provider health)
/model                   Switch active model (arrow-key picker)
/models                  List all available models
/optimus                 Speed mode — instant tier, smallest model
/godly                   Max power — full council, largest model
/normal                  Return to balanced mode
/mode                    Show current mode settings
/memory                  Inspect memory tiers
/session save            Save current session
/session list            List saved sessions
/session resume <id>     Resume a session
/usage                   Token count and cost for this session
/context                 Context window usage indicator
/diff                    Show pending file changes
/doctor                  Run health checks
/help                    Show all commands
/clear                   Clear screen and context
/exit                    Exit Velune

Tab-completion is active for all / commands and for model IDs (type /model then space to trigger).

The status bar shows ⚙ N bg for active background jobs and ⚠ N for unread proactive alerts. Alerts drain automatically after each prompt input and are printed as Rich panels above the input line.


Architecture overview

velune/
├── cli/              REPL, slash commands, banner, autocomplete, session manager
│   └── display/      Live dashboards (ProgressDashboard)
├── providers/        Ollama, Groq, OpenAI, Anthropic, xAI, Google, OpenRouter
├── cognition/        Council: Planner + Coder + Reviewer + Challenger + Synthesizer
├── memory/           5-tier: working → episodic → semantic → graph → lineage
├── proactive/        Alert store + watcher (CognitiveBus event subscriptions)
├── repository/       AST indexing, dependency graph, .veluneignore
├── execution/        Managed execution (allowlist + limits), diff preview, rollback
├── hardware/         Hardware detection, tier classification, GPU probe
├── telemetry/        Token tracking, cost estimation, latency profiling
├── models/           Model registry, capability scoring, specializations
├── context/          Context window tracking, extractive compression
├── core/             Loop detector, retry policy, task/job registry, error types
├── kernel/           Bootstrap, lifecycle coordinator, service container
└── plugins/          Plugin loader & hook registry (experimental; unsandboxed, off by default)

Memory system

Velune maintains five memory tiers across sessions:

  1. Working — current conversation turns (in-process, TTL-evicted)
  2. Episodic — session history (SQLite, persisted to ~/.velune/)
  3. Semantic — vector search over past interactions (local LanceDB and Qdrant)
  4. Graph — repository structure and symbol relationships
  5. Lineage — decision history, what was tried and why

This means "fix the auth issue from yesterday" actually works — Velune retrieves recent sessions, git changes, and related context to reconstruct intent without you explaining it again.


Session modes

Mode Command Council tier Model Context cap
Normal /normal auto current 16 k tokens
Optimus /optimus instant smallest 4 k tokens
Godly /godly full largest 128 k tokens

Switch modes at any time mid-session. The prompt badge updates immediately.


MCP integration

Velune exposes an MCP server so that Claude Desktop and VS Code can call Velune's local model council as a tool — giving cloud-based editors access to local hardware without sending your code to a third party.

Run velune mcp --help for the server commands. Outbound connections to external MCP servers are trust-gated — see the MCP trust gating section of the security policy.


Windows

Velune runs natively on Windows (supporting native command execution sandboxing, local Ollama integration, and keyring credentials). It can also run via WSL2 if preferred.

See WINDOWS.md for the complete native Windows and WSL2 setup guides.


Project docs

Doc What's inside
docs/ARCHITECTURE.md Layering and import-boundary rules
SECURITY.md / docs/THREAT_MODEL.md Security posture, trust boundaries, reporting
CONTRIBUTING.md Dev setup and contribution workflow

Optional extras

Extra Installs Notes
[gguf] gguf library GGUF file metadata reading — safe, no transitive risk
[llamacpp] llama-cpp-python In-process GGUF inference. Security advisory: pulls in diskcache ≤ 5.6.3 (unsafe pickle deserialization, no patched version). Only install in trusted, single-user environments.
[docker] docker Docker sandbox for isolated code execution
[all] [gguf,docker] Full install — deliberately excludes [llamacpp] due to the advisory above
[dev] Test/lint tools For contributors
pip install velune-cli           # base install (Ollama, cloud providers)
pip install 'velune-cli[gguf]'   # + GGUF metadata reading
pip install 'velune-cli[all]'    # + GGUF + Docker sandbox
pip install 'velune-cli[llamacpp]'  # + in-process GGUF inference (see advisory)

Contributing

See CONTRIBUTING.md.

Before opening a PR:

pip install -e ".[dev]"
ruff check velune/
pytest tests/ -q

Report security issues via GitHub Security Advisories — not public issues.


License

Apache 2.0 — see LICENSE.

Copyright 2026 Surya HA

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

velune_cli-0.9.1.tar.gz (571.1 kB view details)

Uploaded Source

Built Distribution

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

velune_cli-0.9.1-py3-none-any.whl (745.8 kB view details)

Uploaded Python 3

File details

Details for the file velune_cli-0.9.1.tar.gz.

File metadata

  • Download URL: velune_cli-0.9.1.tar.gz
  • Upload date:
  • Size: 571.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for velune_cli-0.9.1.tar.gz
Algorithm Hash digest
SHA256 a249f765ca248dd0a92ad1691d977f9e736c021ce5c7eff5587b4f1cd78641ec
MD5 cf5a2804c7f3cfa8934e562e2f69d9c3
BLAKE2b-256 7ecb49d87249242d76b8bd5fa44e421db85a571eb35b94e3d9cb5b3f3427f4a0

See more details on using hashes here.

File details

Details for the file velune_cli-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: velune_cli-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 745.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for velune_cli-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e56ad5ac78e3983fd7f1c77d801033a3a0012efe745de4aa586f748a2cb73a17
MD5 14d882fce640ccf361eaf79e6146d6c5
BLAKE2b-256 d365e4b0800c52873c978e8d8ff0a3f7ead0007659e9637e503d4193b4a4ce62

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