![]() |
| A doctrail mascot, courtesy of DALL-E 3 |
Doctrail turns document collections into auditable, structured research data with LLMs.
It ingests files into an SQLite database, applies structured codebooks and prompts to selected rows, runs them through an LLM (OpenAI, Gemini, Anthropic, OpenRouter, or a self-hosted OpenAI-compatible server), and returns ordinary tables and views for iteration and analysis.
Doctrail is meant to be driven by both researchers and coding agents.
For researchers and users, the documentation is at https://doctrail.org.
For LLMs and coding agents, the complete operating manual is at https://doctrail.org/llms.txt.
Install the command line tool:
uv tool install doctrail
doctrail --helpOr run directly:
uvx doctrailFrom source:
git clone https://github.com/mpr1255/doctrail
cd doctrail
uv run doctrail --helpThe full documentation is at https://doctrail.org.
Inside the package, doctrail docs prints the reference documentation offline.
MIT
