Paper2Code
Multi-agent system that turns machine-learning papers into code repositories.
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).
| Tool | Editor score | Key Safety | Pricing | Providers | Open source | Local models | Key stays local |
|---|---|---|---|---|---|---|---|
| Paper2Code | 3.8 | 87 | Open source | 2 | |||
| DeerFlow | 4.6 | 78 | Open source | 7 | – | ||
| GPT Researcher | 4.3 | 100 | Open source | 9 | |||
| Khoj | 4.3 | 78 | Open source | 5 | – | ||
| Perplexica | 4.3 | 78 | Open source | 8 | – |
- Prioritising key safety? GPT Researcher scores 100/100.
How to use Paper2Code with your own API key
- 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
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
Install Paper2Code
Install Paper2Code from the command line using the instructions in its repository or docs.
- 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
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:
| Model | Light~5 messages a day | Regular~20 messages a day | Heavy~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
Grade A
Your key is stored on your device and requests go directly to the provider.
Category average: 85/100
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice4/10
2 provider options, which lets you pick the provider whose data terms you trust.
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.
Alternatives to Paper2Code
All research & search →DeerFlow
Research & Search
ByteDance's open-source super-agent that researches, codes and creates.
The AI Scientist
Research & Search
Sakana AI's system for fully automated, open-ended scientific discovery.
GPT Researcher
Research & Search
Autonomous agent that writes detailed, cited research reports.
Khoj
Research & Search
Your AI second brain for documents and the web, self-hostable.
AI-Researcher
Research & Search
Autonomous scientific innovation agent from HKU's data intelligence lab.
deep-research (dzhng)
Research & Search
Minimal open-source deep-research agent you can read in an afternoon.