Skip to main content

Open-source terminal AI coding agent with multi-model support (OpenAI, Anthropic, Gemini, Ollama, vLLM).

Project description

Quoriv

An open-source, terminal-based AI coding agent. Model-agnostic. Locally-runnable. Fully extensible.

Quoriv is a Python-built coding agent that lives in your terminal and works directly inside your repository. It plans, reads and writes files, runs shell commands, executes tests, searches your codebase, and delegates work to specialized sub-agents — under a permission system you control. It is built on DeepAgents and LangGraph, and works with OpenAI, Anthropic Claude, Google Gemini, Ollama (local), and self-hosted vLLM endpoints.

Status: v1.0 released. pip install quoriv — see the docs site for usage.


Why Quoriv

Quality What it means
Model-agnostic One config flag swaps between OpenAI / Anthropic / Gemini / Ollama / vLLM. No vendor lock-in.
Local-first option Run entirely offline with Ollama or a private vLLM server. Nothing leaves your machine.
Repo-native Lives in your terminal, edits your real files, runs your real tests. No web upload, no copy-paste.
Permission-aware Multi-tier modes (read-only / ask / auto / yolo) so you choose the autonomy level.
Extensible Both MCP plugins (external) and a Python plugin API (internal).
Memory Per-project + per-user + per-session memory. The agent remembers across runs.
Cost-aware Per-task model routing: cheap fast model for trivial work, strong model for hard reasoning.
Open-source Apache 2.0. Yours to read, modify, fork, and self-host.

Installation

Note: Quoriv is not yet on PyPI. Once Phase 0 is complete, install with:

pip install quoriv

For development:

git clone https://github.com/BurhanHussain1/quoriv.git
cd quoriv
pip install -e ".[dev,ast]"

Quick start

# Configure your API key (stored in OS keychain, never on disk)
quoriv config set openai

# Start a session in the current repo
quoriv chat

# Run with a specific permission mode
quoriv chat --mode read-only        # investigation only
quoriv chat --mode ask              # default — prompts before each risky tool
quoriv chat --mode auto             # auto-runs safe tools, prompts for risky ones
quoriv chat --mode yolo             # autonomous (use with care)

# Switch model
quoriv chat --model openai:gpt-4.1
quoriv chat --model anthropic:claude-sonnet-4-6
quoriv chat --model ollama:qwen2.5-coder:32b

Configuration

Quoriv reads two TOML files (project config overrides global):

  • Global~/.quoriv/config.toml
  • Project.quoriv/config.toml in your repo

Example:

[model]
default = "openai:gpt-4.1"
fast    = "openai:gpt-4o-mini"      # used for trivial / routing
strong  = "openai:gpt-4.1"          # used for hard reasoning

[permissions]
mode = "ask"

[ui]
theme = "dark"

API keys live in the OS keychain via keyring — never in plaintext.


Architecture

Terminal (Rich + prompt_toolkit)
        |
   src/quoriv/cli.py
        |
   src/quoriv/app.py        <-- main loop
        |
   core/  (DeepAgents + LangGraph + routing + context)
        |
   models/  (OpenAI / Anthropic / Gemini / Ollama / vLLM)
        |
   tools/  +  permissions/  +  memory/  +  plugins/  +  repo/

See PROJECT_PLAN.md for the full architecture and phase-by-phase roadmap.


Built-in tools

Category Tools
Files read, write, edit, multi_edit, ls, glob, grep
Shell execute (with sandboxing + permission gating)
Code intel find_symbol, go_to_definition, find_references (tree-sitter)
Git status, diff, log, commit, branch, blame
Tests run_tests (language-aware: pytest / jest / cargo / go test)
Web web_search, web_fetch
Patch apply_diff (safe unified-diff apply)

Custom tools: write a Python plugin or connect any MCP server.


Permission modes

Mode Read Write Shell Use case
read-only auto blocked blocked Investigation, code review
ask auto prompt prompt Default — full control
auto auto auto-safe / prompt-risky prompt-risky Power-user productivity
yolo auto auto auto Trusted workflows only

Path protection (e.g., .env, ~/.ssh) is enforced in every mode.


Slash commands

Command Description
/help Show all commands
/clear Clear the conversation
/model <name> Switch active model
/mode <mode> Switch permission posture
/cost Show token usage and dollar cost
/tools List enabled tools
/undo Revert the last set of edits
/save <name> Save current session
/load <name> Resume a saved session
/memory Inspect / edit memory
/doctor Health check: API keys, model access, tool config

Development

# Set up
git clone https://github.com/BurhanHussain1/quoriv.git
cd quoriv
pip install -e ".[dev,ast]"
pre-commit install

# Run tests
pytest

# Lint + type-check
ruff check .
ruff format .
mypy

# Run the CLI from source
python -m quoriv chat

See CONTRIBUTING.md for contributor guidelines.


Roadmap

Phase Scope Status
0 Foundation: scaffold, config, OpenAI provider In progress
1 Core agent + tools + Rich TUI + permissions Planned
2 Memory, model routing, MCP + Python plugins Planned
3 Anthropic / Gemini / Ollama / vLLM, hooks, replay Planned
4 OSS release: PyPI, binaries, docs site, v1.0.0 Planned

See PROJECT_PLAN.md for the full plan.


Inspiration


License

Apache 2.0 © 2026 Burhan Hussain

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

quoriv-1.5.1.tar.gz (238.4 kB view details)

Uploaded Source

Built Distribution

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

quoriv-1.5.1-py3-none-any.whl (145.2 kB view details)

Uploaded Python 3

File details

Details for the file quoriv-1.5.1.tar.gz.

File metadata

  • Download URL: quoriv-1.5.1.tar.gz
  • Upload date:
  • Size: 238.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quoriv-1.5.1.tar.gz
Algorithm Hash digest
SHA256 1ba69ca6faca0934c4994bfa6dc7d15d04b20c88422a9f6a2207235431d02af7
MD5 ce3527889bbc287acdbf262498c4f86c
BLAKE2b-256 67edf9c5f1e473a068e58058055198e9d04ddcbd6800f8137178af682c7e4b67

See more details on using hashes here.

Provenance

The following attestation bundles were made for quoriv-1.5.1.tar.gz:

Publisher: release.yml on BurhanHussain1/quoriv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quoriv-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: quoriv-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 145.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quoriv-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6219493316a48e8be89a356b47e40709de45743c60bd86d839af8b8c14963cc9
MD5 f642f95bda6179587ef56e960009c19c
BLAKE2b-256 12b35e503beb005607f11a741835d3f5b85c24afe92ec75865ec547e1dbe7f6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for quoriv-1.5.1-py3-none-any.whl:

Publisher: release.yml on BurhanHussain1/quoriv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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