Skip to content
BYOK Tools

Paper2Code

Multi-agent system that turns machine-learning papers into code repositories.

3.8 editor score•Research & Search•Free & open source•Verified 22 Nov 2026

Best for

People who need cited, multi-source answers, especially if you want to keep your key on your own device and mix cloud and local models.

Skip it if

You use a provider other than OpenAI or OpenAI-compatible.

Rank in Research & Search

20th of 26 by editor score

Key Safety

87/100 (grade A), safer than 56% of its category

Overview

Paper2Code (PaperCoder) reads a scientific paper and produces a working code repository through planning, analysis and coding stages. It runs with OpenAI models on your key or with open models served through vLLM.

Key features

  • Paper to repository
  • Planning and analysis stages
  • OpenAI or vLLM backends
  • Evaluation scripts

Works with these providers

2 provider options, fewer than the 5.5 average for research & search. Usage is billed by the provider at its list price.

Our verdict

Paper2Code is ranked 20th of 26 research & search on BYOK Tools and sits mid-pack on key safety. Its standout strength: useful for reproducing research. The main trade-off: generated code needs verification.

What we like

  • Useful for reproducing research

Watch out for

  • Generated code needs verification

How Paper2Code compares

Against the highest-rated research & search on BYOK Tools. Scores are out of 5 (editor) and 100 (Key Safety).

Paper2Code compared with other research & search
ToolEditor scoreKey SafetyPricingProvidersOpen sourceLocal modelsKey stays local
Paper2Code3.887Open source2
DeerFlow4.678Open source7–
GPT Researcher4.3100Open source9
Khoj4.378Open source5–
Perplexica4.378Open source8–

How to use Paper2Code with your own API key

  1. 1

    Create an API key

    Get a key from your provider's console: OpenAI. Create a separate key just for Paper2Code so you can revoke it on its own.

  2. 2

    Set a spending limit

    Set a monthly budget or usage cap in the provider dashboard before you start. It is the simplest protection against a leaked key or a runaway agent.

  3. 3

    Install Paper2Code

    Install Paper2Code from the command line using the instructions in its repository or docs.

  4. 4

    Add your key

    Paste the key into Paper2Code's provider or model settings. Your key is stored on your device and requests go directly to the provider.

  5. 5

    Optional: add a local model

    Install Ollama or LM Studio and point Paper2Code at its local endpoint for private, offline work with no per-token cost.

What it costs to run Paper2Code

Pricing for Paper2Code itself: Open source (Free & open source). Model usage is billed by your provider. Estimated monthly API spend by usage level, using live list prices:

ModelLight~5 messages a dayRegular~20 messages a dayHeavy~80 messages a day
GPT-5.4 NanoOpenAI · Budget$0.072$0.53$5.98
GPT-6.2 Astra ProOpenAI · Flagship$2.48$19$222

Estimates assume typical chat-length messages with conversation history and no prompt caching. Prices from OpenRouter's public models API. Run your own numbers or use a local model for $0.

BYOK Key Safety Score

Key handling in Paper2Code

How we score
87/ 100

Grade A

Your key is stored on your device and requests go directly to the provider.

Category average: 85/100

  • Key storage

    Key stays on your device; requests go direct to the provider.

    40/40
  • Auditable code

    Open source: anyone can verify how keys are handled.

    25/25
  • Self-hosting

    Runs as a local app, but not as a self-hosted service.

    8/15
  • Offline option

    Supports local models, so no key is needed at all for private work.

    10/10
  • Provider choice

    2 provider options, which lets you pick the provider whose data terms you trust.

    4/10

Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.

Paper2Code FAQ

Does Paper2Code support bring your own key?
Yes. Paper2Code accepts your own API key from OpenAI and OpenAI-compatible. Usage is billed by the provider at its API rates.
Where does Paper2Code store my API key?
On your device. Requests go directly from Paper2Code to the provider. Its BYOK Tools Key Safety Score is 87/100.
Is Paper2Code free?
Open source: Free & open source. API usage is billed separately by your model provider.
How much does it cost to use Paper2Code with my own API key?
For regular use (about 20 messages a day), API costs run from roughly $0.53 to $19 a month depending on the model, based on current list prices. Local models cost nothing per token.
Is Paper2Code open source?
Yes. The source code is at https://github.com/going-doer/Paper2Code.
Can Paper2Code run local models?
Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
Which platforms does Paper2Code support?
CLI, Linux.
What are the best alternatives to Paper2Code?
Popular alternatives include DeerFlow, The AI Scientist, GPT Researcher and Khoj. See the comparison table above for pricing, providers and key safety side by side.

Community reviews

No reviews yet.