Our goal is provide thorough and detailed reviews to help researchers conduct the best research. See more examples here.
uv venv && uv pip install openaireview
# or: pip install openaireviewFor fast PDF processing (requires MISTRAL_API_KEY):
uv pip install "openaireview[mistral]"For development:
git clone https://github.com/ChicagoHAI/OpenAIReview.git
cd OpenAIReview
uv venv && uv pip install -e .
# or: pip install -e .--max-pagesand--max-tokensto limit input size and save OCR cost- Mistral OCR and DeepSeek OCR as optional PDF engines (
pip install "openaireview[mistral]") openaireview extractsubcommand for two-stage OCR + review workflow- Multi-provider routing: OpenRouter, OpenAI, Anthropic, Gemini, Mistral (
--provider) - Table and figure extraction from arXiv HTML (tables as markdown)
- pymupdf4llm + GNN layout as default PDF fallback (replaces raw PyMuPDF)
- Mobile-responsive visualization UI
- Collapsible resolved comments in viz
- Claude Code skill (
/openaireview) with multi-agent pipeline
PDF extraction quality matters — math symbols, tables, and reading order all affect review quality. Four engines are supported, tried in order:
| Engine | Install | Best for | Notes |
|---|---|---|---|
| Mistral OCR | pip install "openaireview[mistral]" + set MISTRAL_API_KEY |
Best overall quality, math, tables | Cloud API, ~$0.001/page |
| DeepSeek OCR | pip install "openaireview[deepseek]" + local backend |
Privacy-sensitive docs | Local model via Ollama/vLLM |
| Marker | uv tool install marker-pdf --with psutil |
Math-heavy PDFs (offline) | Slow without GPU |
| pymupdf4llm | (included) | Fallback, always available | No math symbol support |
The engine is auto-detected: if MISTRAL_API_KEY is set, Mistral OCR is tried first; then DeepSeek (if installed); then Marker (if on PATH); finally pymupdf4llm. You can force a specific engine with --ocr:
openaireview review paper.pdf --ocr mistral
openaireview review paper.pdf --ocr markerFor papers with math, we recommend using .tex source, .md, or arXiv HTML URLs instead of PDF when possible — these always produce correct output without needing an OCR engine.
First, set an API key for any supported provider:
export OPENROUTER_API_KEY=your_key_here # OpenRouter (supports all models)
# or
export OPENAI_API_KEY=your_key_here # OpenAI native
# or
export ANTHROPIC_API_KEY=your_key_here # Anthropic native
# or
export GEMINI_API_KEY=your_key_here # Google Gemini native
# or
export MISTRAL_API_KEY=your_key_here # Mistral native (also enables Mistral OCR)Or create a .env file in your working directory (see .env.example).
Then review a paper and visualize results:
# Review a local file
openaireview review paper.pdf
# Or review directly from an arXiv URL
openaireview review https://arxiv.org/html/2602.18458v1
# Visualize results
openaireview serve
# Open http://localhost:8080Review an academic paper for technical and logical issues. Accepts a local file path or an arXiv URL.
| Option | Default | Description |
|---|---|---|
--method |
progressive |
Review method: zero_shot, local, progressive, progressive_full |
--model |
anthropic/claude-opus-5.5 |
Model to use |
--provider |
(auto) | LLM provider: openrouter, openai, anthropic, gemini, mistral |
--reasoning-effort |
(adaptive) | Reasoning effort: none, low, medium, high |
--ocr |
(auto) | PDF OCR engine: mistral, deepseek, marker, pymupdf |
--max-pages |
(all) | Only process first N pages of a PDF (saves OCR cost) |
--max-tokens |
(all) | Truncate input text to first N tokens before review |
--output-dir |
./review_results |
Directory for output JSON files |
--name |
(from filename) | Paper slug name |
Run OCR extraction only and save as markdown with metadata frontmatter. Useful for a two-stage workflow: extract first, then review the markdown.
| Option | Default | Description |
|---|---|---|
-o, --output |
<file>.md |
Output markdown path |
--ocr |
(auto) | PDF OCR engine: mistral, deepseek, marker, pymupdf |
Start a local visualization server to browse review results.
| Option | Default | Description |
|---|---|---|
--results-dir |
./review_results |
Directory containing result JSON files |
--port |
8080 |
Server port |
Inject seeded errors into a paper to test how well a reviewer catches them. Writes the perturbed paper and a manifest of the injected errors.
| Option | Default | Description |
|---|---|---|
--model |
anthropic/claude-opus-5.5 |
Model that generates the perturbations |
--category |
theoretical |
Paper category: theoretical, empirical |
--error-type |
all |
all, surface, claim_theoretical, logic, statement_empirical, experimental |
--n-total |
20 |
Target number of perturbations per paper |
--verifier-model |
anthropic/claude-sonnet-4-6 |
Model that checks each perturbation is a real, substantive error |
--skip-verifier |
off | Skip the verifier step |
--reasoning-effort |
(adaptive) | Reasoning effort for generation |
--output-dir |
./perturbation_results |
Directory for output files |
Run openaireview perturb --help for the remaining verifier options.
Score a review results JSON against a perturbation manifest (recall of the injected errors).
| Option | Default | Description |
|---|---|---|
--method |
llm |
Matching method: llm, fuzzy, semantic |
--model |
anthropic/claude-opus-5.5 |
LLM judge for explanation matching |
--threshold |
3 |
Minimum judge score (1–5) to count as detected (llm only) |
--substring-gate |
off | Skip the judge when the comment's quote doesn't overlap the perturbed text (llm only) |
--output-dir |
(manifest's directory) | Where to save the score JSON |
Install the /openaireview Claude Code skill (see Claude Code Skill). Pass --force to overwrite an existing install.
- PDF (
.pdf) — auto-selects best available engine (Mistral OCR > DeepSeek > Marker > pymupdf4llm); see PDF parsing engines - DOCX (
.docx) — via python-docx - LaTeX (
.tex) — plain text with title extraction from\title{} - Text/Markdown (
.txt,.md) — plain text - arXiv HTML — fetch and parse directly from
https://arxiv.org/html/<id>orhttps://arxiv.org/abs/<id>
| Variable | Default | Description |
|---|---|---|
OPENROUTER_API_KEY |
OpenRouter API key (supports all models) | |
OPENAI_API_KEY |
OpenAI native API key | |
ANTHROPIC_API_KEY |
Anthropic native API key | |
GEMINI_API_KEY |
Google Gemini native API key | |
MISTRAL_API_KEY |
Mistral API key (also used for Mistral OCR) | |
MODEL |
anthropic/claude-opus-5.5 |
Default model |
REVIEW_PROVIDER |
(auto) | Force a specific LLM provider |
Set one API key. The provider is auto-detected from whichever key is set (priority: OpenRouter > OpenAI > Anthropic > Gemini > Mistral). See .env.example for a template.
All models available on OpenRouter are supported — use any model ID via --model. The following models have built-in pricing for accurate cost tracking in the visualization:
| Vendor | Model | Input ($/1M tokens) | Output ($/1M tokens) |
|---|---|---|---|
| Anthropic | anthropic/claude-fable-5.2 |
$8.00 | $40.00 |
| Anthropic | anthropic/claude-opus-5.5 |
$4.00 | $20.00 |
| OpenAI | openai/gpt-6.2-astra |
$8.00 | $40.00 |
| OpenAI | openai/gpt-6.2-astra-pro |
$8.00 | $40.00 |
google/gemini-4-argon |
$2.00 | $10.00 | |
| Mistral | mistralai/mistral-large-4-0 |
$0.70 | $2.10 |
Prices are OpenRouter list prices as of November 2026. gpt-6.2-astra-pro costs the same per token as gpt-6.2-astra but uses many more reasoning tokens per request. Older models (Claude Opus 4.5/4.6, GPT-5.2 Pro, Gemini 3.1 Pro, and a few open-weight models) are also still priced; see COST_PER_1M in src/reviewer/evaluate.py. For models not listed, a default rate of $5.00/$25.00 per 1M tokens is used.
- zero_shot — single prompt asking the model to find all issues
- local — deep-checks each chunk with surrounding window context (no filtering)
- progressive — sequential processing with running summary, then consolidation
- progressive_full — same as progressive but returns all comments before consolidation
A deep-review skill is bundled with the package. It runs a multi-agent pipeline — one sub-agent per paper section plus cross-cutting agents — and produces severity-tiered findings (major / moderate / minor).
Install once:
pip install openaireview
openaireview install-skillThen in any Claude Code project:
/openaireview paper.pdf
/openaireview https://arxiv.org/abs/2602.18458
Finally, run openaireview serve to see results.
Install with dev dependencies (includes pytest):
uv pip install -e ".[dev]"Run tests:
pytest tests/Integration tests that call the API require OPENROUTER_API_KEY and are skipped automatically when it's not set.
Two end-to-end studies live in benchmarks/. Both expect the [benchmarks] extras and an OpenRouter key:
uv pip install -e ".[benchmarks]"
export OPENROUTER_API_KEY=...Run scripts from inside each benchmark's directory unless noted.
Compares OpenAIReview output on accepted vs. rejected conference submissions. Papers are sampled via the 4-pair SNOR signal matrix (top-cited vs. never-published, awarded vs. rejected, top vs. bottom scores, and a composed pair).
cd benchmarks/conference_study
# 1. Build manifests (manifests/v1/{pair_1..4,combined}.json)
python select_papers.py --venues iclr neurips --years 2021 2022
# 2. Download PDFs flat under papers/scaleup/, write pages back into the manifest
python download_papers.py --source snor
# 3. Optional cost preview (drops PDF parsing; estimate = pages × tokens_per_page × multipliers)
python estimate_cost.py --config configs/scaleup_progressive.yaml
# 4. Run OpenAIReview and/or competitor systems on the same paper × model grid
python run_study.py --config configs/scaleup_progressive.yaml
python run_competitors.py --config configs/coarse_v2.yaml
# 5. Aggregate
python analyses/report_scaleup.py results/scaleup_progressiverun_study.py and run_competitors.py are idempotent — rerunning skips paper × model combos already complete. Per-paper locks let multiple models share the same result JSON. See benchmarks/conference_study/README.md for the config schema, concurrency model, and result format.
Injects controlled errors (math edits, false claims, faulty reasoning, experimental flaws) into clean papers and measures per-comment recall by error type and domain.
Pipeline: extract → generate → validate → verify → inject → review → score. run_benchmark.py drives all stages from a single YAML.
cd benchmarks/perturbation
# One-shot: prepare papers, run reviews, score against the perturbation manifest
python run_benchmark.py configs/default.yaml
# Or run a subset of stages
python run_benchmark.py configs/default.yaml --stages prepare,review
python run_benchmark.py configs/default.yaml --stages score
# Multi-config sweep with parallel workers reused across configs
python run_benchmark.py --configs configs/full_*.yaml \
--parallel-openaireview 2 --parallel-coarse 8
# Aggregate recall tables across all (paper, model, method) cells
python generate_report.py results/The config picks the review system per run via system: openaireview | coarse | reviewer3; adapter setup for third-party systems is in systems/README.md. Scoring uses a two-stage filter: a fuzzy substring match on the perturbed text against the comment quote, then an LLM judge rating (≥3/5) on whether the explanation identifies the same error. See benchmarks/perturbation/README.md for error-type taxonomy, results layout, and known limitations.
