# Feynman

> An open-source terminal research agent that searches papers and the web and answers with cited sources

- Category: AI Productivity & Writing / Research & Answer Engines
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/Companion-Inc/feynman
- Website: https://feynman.is
- Canonical page: https://ai-tldr.dev/tools/feynman/
- Updated: 2026-09-24

## In short

Feynman is an open-source AI research agent that runs in your terminal. It sits in the Research & Answer Engines category of the AI Productivity & Writing tools and is open-source, written in TypeScript and licensed MIT. To get started: install Feynman.

## Overview

Feynman is an open-source AI research agent that runs in your terminal. You ask it a question in plain language — or call one of its workflows, such as `feynman deepresearch "mechanistic interpretability"` or `feynman lit "RLHF alternatives"` — and it searches papers and the web, reads the sources and answers with citations that link directly to the papers, docs or repositories behind each claim.

The work is organised as research workflows exposed as slash commands: source-heavy deep research, literature reviews, research reviews with severity-graded feedback, audits that compare a paper's claims against its public codebase, replication plans, ranked ML training recipes, source-comparison matrices, paper-style drafts and a bounded autoresearch experiment loop. When a task benefits from decomposition, the workflows hand parts of it to four bundled agents — a Researcher, a Reviewer, a Writer and a Verifier that checks inline citations and cleans up dead links.

Under the hood Feynman runs on the stock Pi coding agent, loading its prompts, skills, agents and research tools as a Pi package. Paper search and Q&A go through alphaXiv; read-only literature databases (Semantic Scholar, OpenAlex, arXiv, PubMed, Europe PMC, bioRxiv/medRxiv, Crossref), the Hugging Face Hub, web search and local PDF/office parsing are built in, and Docker, Modal or RunPod can run replication experiments you explicitly approve. It works with hosted model providers via OAuth or API key and with local models through LM Studio, LiteLLM, Ollama or vLLM. The research skills can also be installed on their own into Codex, OpenCode or a repo's `.agents/skills` folder, without the terminal app.

## What it does

- Research workflows as slash commands: `/deepresearch`, `/lit`, `/review`, `/audit`, `/replicate`, `/recipe`, `/compare`, `/draft`, `/autoresearch` and `/summarize`
- Four bundled agents — Researcher, Reviewer, Writer and Verifier — with citation verification and dead-link cleanup
- Paper search and Q&A via alphaXiv plus read-only Semantic Scholar, OpenAlex, arXiv, PubMed, Europe PMC, bioRxiv/medRxiv and Crossref lookups
- Paper-vs-code audits and replication checks that only execute after you choose an environment (Docker, Modal or RunPod)
- Works with hosted providers (OAuth or API key), Amazon Bedrock, and local models via LM Studio, LiteLLM, Ollama or vLLM
- A skills-only install that adds the research skills to Codex, OpenCode or a repository without the terminal app

## Getting started

Feynman ships as a standalone installer that bundles its own Node.js runtime, or as an npm package if you already have Node.js 22.22.0 or newer.

1. Install Feynman

   The one-line installer downloads a tagged release as a standalone bundle and verifies its SHA-256. On Windows use `irm https://feynman.is/install.ps1 | iex` instead.

```bash
curl -fsSL https://feynman.is/install | bash

# or, with your own Node.js >= 22.22.0
npm install -g @companion-ai/feynman
```

2. Connect a model provider

   Setup offers OAuth login or an API key / custom provider (including LM Studio, LiteLLM, Ollama, vLLM and Amazon Bedrock), signs you in to alphaXiv and picks a recommended research model. You can change the model later.

```bash
feynman setup
feynman model list
feynman model set <provider/model>
```

3. Ask a question or run a workflow

   A plain question searches papers and the web and answers with cited sources; the workflow commands run deeper, multi-agent investigations.

```bash
feynman "what do we know about scaling laws"
feynman deepresearch "mechanistic interpretability"
feynman lit "RLHF alternatives"
feynman audit 2401.12345
```

4. Or install only the research skills

   To use the skill library inside another agent without the terminal app, run the skills installer. It defaults to `~/.codex/skills/feynman`; `--repo` and `--opencode` install into the repository you run it from instead.

```bash
curl -fsSL https://feynman.is/install-skills | bash -s -- --repo
```

## When to use it

- Reach for it when you need a literature review or deep-research brief where every claim links back to a paper, doc or repo
- Reach for it to check whether a paper's public code actually matches what the paper claims, or to plan a replication before spending compute
- Reach for it when you want ranked, implementable ML training recipes drawn from papers, datasets and code
- Reach for it to give Codex, OpenCode or another agent a research skill library without adopting a new app

## Version history

- 2026-09-24 v0.5.5: Feynman runs on Node.js 26 and drops its upper Node version limit, and failed alphaXiv calls now point the agent to arXiv / Semantic Scholar search or page fetching so a research run continues.
