OpenAI4S is an open-source hybrid scientific research agent that replicates the Code-as-Action paradigm of Claude Science, using JSON tool orchestration and persistent Python/R kernels at a very low monthly cost.

Stars

129

7-day growth

No data

Forks

17

Open issues

0

License

MIT

Last updated

2026-07-28

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a pure-standard-library core, a cheap ¥9.9/month provider option, and 34 bundled scientific Skills, making advanced AI-driven research accessible to individuals without expensive API keys.

Who it is for

  • Academic researchers and bioinformaticians
  • Data scientists and ML engineers
  • Open-source science enthusiasts
  • Students learning computational biology or cheminformatics

Use cases

  • Protein structure prediction and engineering (AlphaFold2, ESMFold2, etc.)
  • Reproducible data analysis and visualization with Python/R kernels
  • Automated literature mining and hypothesis generation
  • GPU-accelerated simulation and model inference via BYOC compute

Strengths

  • Hybrid action engine combining JSON orchestration with Code-as-Action for complex scientific tasks
  • Pure Python stdlib core (no dependencies) plus optional science extras
  • Extremely low cost (≈$1.4/month) via the Volcengine Ark small plan
  • 34 ready-to-use scientific Skills covering structural biology, single-cell omics, and more

Considerations

  • Prebuilt macOS app is not notarized, requiring manual Gatekeeper approval
  • R kernel is not bundled and requires a separate Conda environment setup
  • Some advanced features (e.g., stronger Linux isolation, additional BYOC providers) are still on the roadmap

README quick start

Open AI for Scientist

💸 Replicating Claude Science in two cuts or less

An open-source hybrid scientific research agent. JSON tools orchestrate; persistent Python/R kernels do the science.

English · 简体中文


[!TIP] Why "two cuts"? No pricey frontier-model key needed — OpenAI4S runs on Doubao (豆包) via the cheapest "Small" plan on Volcengine Ark (火山方舟): ¥9.9 / month (≈ US$1.4). Pick the ark provider in the UI and you get a Claude-Science-class agent for less than a cup of coffee.

Volcengine Ark · Agent Plan (Personal) — the entry Small tier is ¥9.9 / month.


🧬 JSON orchestration, Code-as-Action science

OpenAI4S deliberately has two action planes. Provider-native JSON tool calls handle deterministic orchestration, permissions, metadata, external services, and human approval. Python/R Code-as-Action handles computation, exploration, analysis, simulation, and long-running scientific work in persistent kernels. Python cells can synchronously call the in-kernel host API while they run; R is an independent persistent analysis channel.

This is not a choice between tools and code: each does the job it is good at. Tool-only and conversational work can finish through the Engine-owned, strictly structured finalize_response action. Scientific cells keep the important host.submit_output(...) completion contract, including structured artifacts and metrics. host.submit_output is the only completion signal that can fire inside a Cell; a later sole finalize_response may still close the Engine after earlier Cells have run.

JSON control planePython/R science plane Best forworkflow, permissions, metadata, servicescomputation, analysis, simulation Action unitOne ordered native-tool batchOne complete code cell Compositionauditable schemas and resource policyfor, if, libraries; Python also has mid-cell Host RPC Stateappend-only Action Ledgerkernel memory + versioned artifacts CompletionEngine-owned finalize_responsePython: host.submit_output(...); R: no in-cell completion Extendingnamed Tool subclassimport a library or load a Skill

# ReAct: ~14 round-trips (read → … → filter → sort → plot).   OpenAI4S: one code cell.
hits   = [f for f in files if pattern in host.read_file(f)]
top3   = sorted(hits, key=os.path.getsize, reverse=True)[:3]
frames

Description

9.9 元豆包API复刻 Claude Science

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482