Skip to main content

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

Metadata

Release files for quoriv 1.7.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 quoriv 1.7.0
File Size Uploaded Provenance Actions
quoriv-1.7.0.tar.gz 257.8 kB With provenance Details for quoriv-1.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quoriv 1.7.0
File Interpreter ABI Platform Actions
quoriv-1.7.0-py3-none-any.whl Python 3 none any Details for quoriv-1.7.0-py3-none-any.whl

Total release size: 415.7 kB

Release files / quoriv-1.7.0.tar.gz

Download URL quoriv-1.7.0.tar.gz
Size 257.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f9a3ce9666fbb043d005e26beeef8adb2a4686e8701bc4a8be067b1f4ea392a6
BLAKE2b-256 checksum
How to use checksums
8e690d6272835ab4ee04333c4cecb32874d561659a40e99e859e0ada879a3c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release files / quoriv-1.7.0-py3-none-any.whl

Download URL quoriv-1.7.0-py3-none-any.whl
Size 158.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64d0232e65f34a69b22f9a1ed1d246b12350b69082ad56d27614a52e260041e1
BLAKE2b-256 checksum
How to use checksums
3762119ac2c0a53bde792783c21a791d62637cc8a95356fd05c05e185dc8fb73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Security for quoriv 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quoriv-1.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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