Skip to main content

Veritas

tests PyPI license: MIT python 3.12+

Made by Nyvø w/ love · Powered by Tavily

Veritas — Deep Research Agent

Veritas is a terminal app that turns a question into a sourced research report. It decomposes your query, searches the web iteratively (Tavily), reasons over findings with an LLM, and writes a Markdown report to your reports folder — all behind a quiet, keyboard-driven TUI.

Any OpenAI-compatible endpoint works as the research brain — there is no bundled provider. You supply the base URL, an API key, and a model id. The model list is auto-detected from the endpoint's /models.

Install

Requires Python 3.12+. The full TUI uses opentui, whose wheels cover CPython 3.12/3.13; on other Python versions Veritas runs its Rich CLI, which is the same program with the same features. Either way it is one install command.

pipx (recommended) — installs Veritas in its own environment and puts veritas on your PATH, on macOS, Linux and Windows:

pipx install veritas-research
veritas

No pipx yet? python3 -m pip install --user pipx && pipx ensurepath (or brew install pipx, apt install pipx, winget install pipx).

One-line install (no pipx required) — builds an isolated virtualenv and links the command:

curl -fsSL https://raw.githubusercontent.com/Nyvo2010/veritas/main/install.sh | sh
veritas

Check the installed version with veritas --version.

From source:

git clone https://github.com/Nyvo2010/veritas.git
cd veritas
python -m venv .venv && source .venv/bin/activate
pip install -e .
veritas

Running ./install.sh from a checkout builds that working tree instead of the published source and links the command for you.

First run

A setup wizard walks you through: AI endpoint URL → API key → model → Tavily key → reports folder → color theme. Re-run it anytime via Settings → Setup wizard.

Keys: ↑/↓ move · Enter select · Esc back · q quit (menu) · Ctrl+C quit (anywhere). Paste works in every input field.

Long lists scroll, with ↑ N more / ↓ N more markers so the highlighted row is always visible. Model pickers also accept typing: start typing to filter the /models list, or type an id that isn't listed and press Enter to use it.

While research runs

The run screen keeps three things on one screen: the query and current phase, a scrolling activity log where each phase and iteration is its own heading, and a braille progress bar — the left side fills as steps complete while particles drift in from the right.

Below the bar, the elapsed time, a rough ETA, and a time breakdown show how much of the run went to model inference versus web search, with call counts. That is the quickest way to tell whether a slow run is the model or the search API.

Every run keeps its activity log in memory: press l on the results screen, or pick Last run log from the menu, to scroll back through it.

Ctrl+C stops the run and writes whatever is finished (see below).

Settings vs environment variables

Everything can be configured in-app under Settings, stored in ~/.config/veritas/settings.json (mode 0600, keys masked on screen).

  • AI provider — endpoint, API key, model, and an optional fallback model
  • Search — Tavily API key and the default source categories
  • Research defaults — iterations and results per search

A .env file (see .env.example) is the alternative path for non-interactive use — local dev, containers, CI, headless servers — or for temporarily overriding the file without touching it. Precedence everywhere:

explicit argument > environment variable > settings file

Supported variables: LLM_API_KEY, LLM_BASE_URL, LLM_MODEL, LLM_FALLBACK_MODEL, TAVILY_API_KEY. VERITAS_REPORTS_DIR overrides the reports folder.

If the primary model exhausts its retries, the client switches to the fallback model once and keeps using it for the rest of the run. Leave it empty to disable.

Layout

src/
  cli.py           entry point (`veritas`), Rich fallback CLI
  tui_app.py       OpenTUI frontend: menu, wizards, settings, live run screen
  main.py          research orchestrator (agents + clients)
  settings.py      persistent settings, key resolution, legacy migration
  config.py        env-based defaults and tuning constants
  agents/          query analysis, search, synthesis, report generation
  utils/llm_client.py    any OpenAI-compatible chat API + /models discovery
  utils/tavily_client.py web search
  utils/filelog.py       detailed backend log (file only)
  utils/text.py          shared text helpers
  ui/              theme tokens, braille bar, live renderer, shared screens
  ui/timings.py    where a run spends its time (model vs search)

Reports

Reports are written to ~/Veritas/reports by default (override in Settings or with VERITAS_REPORTS_DIR) as research_report_<query>_<timestamp>.md; nothing is written into the repository.

If a run fails or is stopped early, Veritas still writes a clearly-labelled partial report from the findings collected so far rather than losing the work — so a file appears even when a run does not finish. The results screen shows the path, or exactly why the write did not happen.

Reports use proper Markdown headings and one stable citation namespace: [Source N] in the body always resolves to entry N under Sources. When a page appears in several searches it is merged instead of listed twice, and pages that carry no usable text (login walls, blocked fetches, search result pages) are dropped before analysis.

After a run, the results screen doubles as a small action menu: open the report in the default Markdown app, show it in Finder/Explorer, or jump to the activity log. The Rich CLI offers the same open/reveal choices after saving.

Logs

Nothing the backend logs ever reaches the screen: the TUI owns the terminal. Detail goes to a rolling file instead, ~/.config/veritas/logs/veritas.log (mode 0600, 2 MB per file, 3 files): every phase and iteration, every model call with its model id, prompt size, duration, token usage and finish reason, retries and backoff, fallback switches, and every search with its query, depth, result count and duration.

VERITAS_LOG_LEVEL=INFO veritas     # quieter file log (default: DEBUG)
VERITAS_LOG_CONSOLE=1 veritas      # also stream warnings to stderr

The log can contain the prompts and queries you typed. It stays on your machine and is never uploaded.

Development

python3 -m venv .venv && source .venv/bin/activate
pip install -e .                  # editable install of the app
python -m unittest discover -s tests

The suite runs with no API keys: it covers report writing, the UI primitives, and — when opentui is importable — a headless render of every screen.

See CONTRIBUTING.md for the workflow, RELEASING.md for cutting a release, and SECURITY.md for how to report a vulnerability.

Roadmap

  • an npm wrapper so npx veritas works for people without Python
  • test coverage beyond the UI primitives

License

MIT — see LICENSE. Release notes live in CHANGELOG.md.

Metadata

Release files for veritas-research 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for veritas-research 1.0.1
File Size Uploaded Provenance Actions
veritas_research-1.0.1.tar.gz 115.6 kB Without provenance Details for veritas_research-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for veritas-research 1.0.1
File Interpreter ABI Platform Actions
veritas_research-1.0.1-py3-none-any.whl Python 3 none any Details for veritas_research-1.0.1-py3-none-any.whl

Total release size: 219.5 kB

Release files / veritas_research-1.0.1.tar.gz

Download URL veritas_research-1.0.1.tar.gz
Size 115.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ac67a44d99b0a7b5498b03b7ba9a373d13e3fba39943c61e25a35ad625d4965
BLAKE2b-256 checksum
How to use checksums
938eb4b0b30ed82f61c97d44fe5304816bde33f415a3b8dfe3ba65274c5df5a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / veritas_research-1.0.1-py3-none-any.whl

Download URL veritas_research-1.0.1-py3-none-any.whl
Size 103.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8149b7353b085269413b9e3463dcd976b3c9e8cab44e3d191ecb946ca2b4bb57
BLAKE2b-256 checksum
How to use checksums
120f2f6a21888ebd281880e8fcb3da646f28f7a039a63c3df07c140f3cd49cb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for veritas-research 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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