Skip to main content

VALORDB

Veterans Appeals Library & Outcomes Research — in your terminal.

A sovereign, grounded CLI and Python client over every published Board of Veterans' Appeals (BVA) decision (1992–present, ~1.86 million) wired to the Title 38 statutes and regulations (38 U.S.C. + 38 CFR) that govern them.

pip install valordb
valordb

Why this is different: the model is never the source of a fact

Legal research tools that let an LLM free-text statistics and citations are a liability — the model will confidently invent a grant rate or a regulation that doesn't exist. VALORDB makes that structurally impossible:

  • Statistics are computed by the corpus, injected into the prompt as a locked VERIFIED_FACTS block, and any number the model emits that isn't traceable to that block is struck after generation.
  • Citations are verified against the actual Title 38 store — anything that doesn't resolve is flagged, and M21 manual cites outside the mirror are flagged (VALORDB mirrors only part of M21).
  • The model's job is reduced to explaining fixed facts. It may not compute, infer, rank, or invent a statistic or a citation.

The grounded analyst runs on your own Ollama — nothing leaves your machine.


Quick start

Interactive (a research workstation)

valordb
  ██╗   ██╗ █████╗ ██╗      ██████╗ ██████╗ ██████╗ ██████╗
  ██║   ██║██╔══██╗██║     ██╔═══██╗██╔══██╗██╔══██╗██╔══██╗
  ╚██╗ ██╔╝██╔══██║██║     ██║   ██║██╔══██╗██║  ██║██╔══██╗
   ╚════╝  ╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚═════╝ ╚═════╝
  VALORDB CLI — valordb.org

valordb> ask PTSD and sleep apnea claimed together, under Title 38
valordb> conditions sleep apnea
valordb> law usc-38-1110
valordb> upgrade

One-shot / scriptable

valordb ask "overview of Sleep Apnea + PTSD claims" --mode attorney
valordb kpi --json | jq .rates
valordb conditions "sleep apnea"
valordb dimension judge
valordb law cfr-38-3.310

As a Python library

from valordb import VALORDB

db = VALORDB(api_key="vk_firm_…")          # or set VALORDB_API_KEY
print(db.kpi()["rates"])                    # corpus headline rates
c = db.conditions()
print(c.rate("sleep apnea"))                # 0.4171  (any-grant)
print(c.together("PTSD", "sleep apnea"))    # real co-occurrence rate + N
print(db.law("usc-38-1110")["heading"])     # a Title 38 section (free)

Commands

Command What it does
ask <q> [--mode veteran|attorney] [--type case_assessment|brief_ready|distinguishing|memo_outline] [--judge NAME] Grounded analyst on your local Ollama — corpus-locked stats, verified cites. Attorney output types: case-take triage, a paste-ready brief paragraph, a distinguishing/rebuttal, or a memo-outline skeleton
kpi Headline outcome rates (any-grant / grant / remand / deny)
conditions [name] Per-condition any-grant + N, AMA-vs-Legacy split, co-occurrence
dimension <dim> Breakdown by judge, regional_office, condition, rep_type, …
law <id> A Title 38 section, verbatim — free, e.g. usc-38-1110, cfr-38-3.310
m21 <id> An M21 manual section — free (sub-regulatory; partial mirror)
search <q> Search Title 38 + M21 by keyword/citation — free (decision-corpus search is Firm+, coming)
setup Guided local-AI install — offers to install Ollama + pull a tiny model for ask
config Configure the AI engine — Ollama (localhost/LAN + any port), BYOK cloud, or Claude Code CLI (-p)
info Your key: tier + quota
key [<vk_…>] · login · logout Show / set / paste / remove your license key
upgrade Subscribe / upgrade — purchase through the CLI (Firm+ for the API)
site · help · quit Open the site · reference · exit

Tiers

The Title 38 & M21 law is free to read (here and on valordb.org). The analytics, decision search, grounded AI, and API/CLI are paid:

Tier Price Adds
Veteran Free Read the complete Title 38 + M21 (no key)
Professional $49/mo The web analytics dashboard + Attorney-grade AI
Firm $149/mo REST API + this CLI + bulk export + team (5 seats)
Enterprise $499/mo Full API + white-label + SLA + sovereign on-site appliance

valordb upgrade runs a Paddle checkout from the terminal and saves your key. Veterans and non-profits — discounts available; email joseph@resilientmindai.com.


Configuration

Precedence: environment variable → ~/.valordb/config.toml.

Setting Env Config Default
License key VALORDB_API_KEY [auth] api_key
API base VALORDB_URL https://valordb.org
Ollama host VALORDB_OLLAMA / OLLAMA_HOST [ai] ollama_host http://localhost:11434
Ollama model VALORDB_MODEL [ai] model first installed
export VALORDB_API_KEY=vk_firm_…
export VALORDB_OLLAMA=http://192.168.0.92:11434   # a LAN Ollama box works from the CLI

The key is stored at ~/.valordb/config.toml (chmod 600) and never logged.


For agents & automation

The CLI is a thin client over the keyed REST API (/api/v1, Firm+). Anything that can send an X-API-Key header — including an Ollama tool/agent or an MCP server — can call the same endpoints directly (JSON in, JSON out). Use --json for machine output. Endpoints: status, kpi, conditions, kpi/dimension/{dim}, law/{id}.


Sovereignty & privacy

  • The grounded ask runs entirely on your Ollama (local or LAN). Your question and the corpus context never leave your machine.
  • The optional httpx extra (pip install valordb[httpx]) uses httpx instead of urllib for API calls. The importable SDK only needs requests.

Legal

Legal information, not legal advice. VALORDB surfaces public decisions, statutes, and regulations and how the Board has historically ruled. It does not interpret your claim and is not a substitute for an accredited representative or attorney. VA claims carry hard deadlines and one-shot effective-date consequences — verify everything against the controlling law and accredited help (va.gov/ogc).

The BVA corpus is public record. Per-judge and per-office rates reflect docket and case mix, not a controlled measure of adjudicator favorability.


Created by Joseph C. McGinty Jr. · © 2026 ResilientMind AI LLC · valordb.org

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

valordb-0.7.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

valordb-0.7.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file valordb-0.7.0.tar.gz.

File metadata

  • Download URL: valordb-0.7.0.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for valordb-0.7.0.tar.gz
Algorithm Hash digest
SHA256 dfbe70444cfe50a2448ec30bd51a03199c754f5a2acbc85a1a4314c7094da95a
MD5 da5e10f981e941b804b02aa77d12e613
BLAKE2b-256 e8b4a2718df1c75928337fca3a975787d55ef32e652ea5a982572de2a6b03c58

See more details on using hashes here.

File details

Details for the file valordb-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: valordb-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 42.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for valordb-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a56fdee211965ad90c61637655e1c69a681b4182c25635b34c5a9671251e5a
MD5 ed024dd84bb197b3484ddb0f478844a1
BLAKE2b-256 bdc199fc261b3740b1545911184aa8a290077b38748970f3da3463f03a57e30b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

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