SuperAPI AI Directory

NanoResearch

NanoResearch is an end-to-end autonomous AI research engine that starts from a research idea and automatically completes literature search, experimental design, code generation, GPU training, result analysis, paper figures, and LaTeX paper writing. Its core feature is that it truly runs computational experiments: the data, tables, and figures in the paper all come from actual training logs and experimental results, rather than being fabricated by an LLM. The project supports multiple entry points such as command-line TUI/streaming logs, Claude Code, Codex, and Feishu bots, and can be configured with stage-based model routing, SLURM cluster execution, resumable runs, and more.

Open website

About this tool

NanoResearch is an end-to-end autonomous AI research engine open-sourced by OpenRaiser, with the goal of letting AI automatically advance from a research idea all the way to a complete paper. It is not just an auxiliary tool that generates code; it truly runs computational experiments: submitting code to a GPU cluster to execute training, collecting real experimental results, generating paper figures, and ultimately outputting a complete LaTeX paper supported by experimental data. Every piece of data, every table, and every figure in the paper comes from actually run experimental results, rather than being fabricated by an LLM.

Main Uses

  • Research prototype validation: quickly turn a research idea into a complete experimental and paper workspace.
  • Autonomous experimentation: the system automatically generates code, submits GPU training, and analyzes results.
  • Batch benchmark generation: run multiple topics in batches to generate reproducible experimental results.
  • Paper draft assistance: produce LaTeX drafts based on real experimental data to accelerate writing.
  • Research process auditing: a complete workspace, intermediate artifacts, and logs make every step traceable.

Main Capabilities

NanoResearch's pipeline contains 9 stages: IDEATION -> PLANNING -> SETUP -> CODING -> EXECUTION -> ANALYSIS -> FIGURE_GEN -> WRITING -> REVIEW. The EXECUTION stage is the core differentiating capability:

  • Automatic SLURM job submission: generate sbatch scripts, submit them to the cluster, and monitor job status.
  • Local GPU execution: automatically detect available GPUs and manage training processes.
  • Automatic debugging and retry: when training fails, automatically analyze error logs, fix the code, and re-execute.
  • Real-time log monitoring: track training progress and metric changes.
  • Hybrid execution mode: automatically switch between local and cluster based on task complexity.

The CLI provides two presentation modes: traditional streaming logs (non-TUI) for easy redirection and script integration; the TUI full-screen panel is suitable for interactive monitoring.

Evo is a self-evolving pipeline that operates around skill evolution, memory evolution, and feedback-driven planner/router adaptation, allowing the system to reuse experience across multiple rounds of research and gradually align with user preferences. It still runs the above 9 stages, but continuously updates and reuses the user profile, skill library, project memory, and feedback routing. Key machine-checkable artifacts are usually located in the corresponding directories; the writing stage only reads real execution results, analysis reports, and figure artifacts. If some type of experiment or metric has no real artifact, the system reduces the scope of evidence or writes it into limitation / future work, and does not add synthetic values. Literature search can use OpenAlex anonymously; if a higher rate is needed, you can configure OPENALEX_API_KEY yourself.

SDPO adapter training: the complete (x, y, feedback) triples produced by Evo/RAM runs are saved in ~/.nanoresearch/ram_data/. After installing the optional training dependencies, you can train or continue training a RAM LoRA adapter; after training is complete, point ram_checkpoint_path in the configuration to the output directory to load that adapter in subsequent Evo runs.

How to use

Quick start takes about 5 minutes from installation to the first run. You need to create ~/.nanoresearch/config.json and replace base_url and api_key with an OpenAI-compatible API endpoint. They can also be overridden via environment variables: NANORESEARCH_BASE_URL / NANORESEARCH_API_KEY / NANORESEARCH_TIMEOUT. After completing the pipeline, you will get paper figures and LaTeX source code containing real experimental data.

The system is built on OpenAI-compatible endpoints and supports per-stage configuration overrides: ideation (literature search and ideas), planning (experimental design), experiment (experiment-related), code_gen (code generation), figure_prompt (figure description), figure_code (figure code), figure_gen (image generation).

In Claude Code integration mode, no API Key needs to be configured: Claude Code itself is the research engine, using WebSearch instead of external APIs for literature search (arXiv, Semantic Scholar, Google Scholar), using Bash to execute experiment code, submit SLURM jobs, and compile LaTeX, and using file read/write to generate experiment code, papers, and structured artifacts. For architecture diagrams, it is recommended to use the Nano Banana seriesimage models for generation. For LaTeX compilation, tectonic is recommended instead of pdflatex; the installation command is conda install -c conda-forge tectonic. The artifacts of all stages are saved in manifest.json, and recovery from any stage is supported; the workspace generated in Claude Code mode is fully compatible with the Python CLI and can be used in a mixed manner.

Codex Integration: In addition to Claude Code, NanoResearch also provides a project-level entry point for Codex. Codex does not need a second pipeline or an additional --mode codex parameter; it should directly reuse the repository's existing CLI, workspace, manifest, and PaperMode logic. The entry document is AGENTS.md. Codex uses the same topic prefix conventions as the CLI: original: Topic, survey:short: Topic, survey:standard: Topic, survey:long: Topic. These prefixes enter the repository's existing PaperMode parsing logic.

Feishu bot: NanoResearch has a built-in Feishu (Lark) bot, which can trigger the pipeline, check progress, and receive papers in Feishu chats. You need to create a custom app at open.feishu.cn and obtain the App ID and App Secret, or write them into ~/.nanoresearch/config.json. The bot communicates through a WebSocket long connection (no public server or Webhook URL is required); press Ctrl+C to stop. It also supports direct natural language chat; the bot acts as an AI research assistant, supports conversation memory, and automatically sends paper.pdf after the pipeline is completed.

Official examples and advanced usage: To generate only the paper (skip experiments), you can set "skip_stages": ["SETUP", "CODING", "EXECUTION", "ANALYSIS"] in config. Templates are automatically discovered from nanoresearch/templates/, with built-in templates for multiple conference papers (NeurIPS / ICML / arXiv). Literature search API Keys Optional: In the IDEATION stage, OpenAlex and Semantic Scholar are used; it can still run without configuration (anonymous access), but the rate limit is lower.

Applicable Scenarios and Limitations

Suitable for researchers and developers who want to automate the research workflow, generate reproducible experiments in batches, and quickly produce draft papers. Papers should be regarded as high-quality drafts rather than final submission versions; manual review and revision are still necessary. Running requires an OpenAI-compatible API endpoint (for the text model stages), optional access to an image model (for some figure generation), and tectonic or pdflatex (for PDF compilation); tectonic is recommended because a Conda-installed texlive may lack pdflatex.fmt, causing compilation to fail and making it difficult to fix. The execution environment supports local GPUs + SLURM clusters. The project welcomes developers and researchers to contribute code and ideas, and provides a WeChat group for communication.