Metadata-Version: 2.4
Name: lobster-ai
Version: 1.3.2
Summary: Multi-Agent Bioinformatics Analysis System powered by LangGraph
Author-email: Omics-OS <info@omics-os.com>
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://www.omics-os.com
Project-URL: Bug Tracker, https://github.com/the-omics-os/lobster/issues
Project-URL: Documentation, https://docs.omics-os.com/docs
Project-URL: Source Code, https://github.com/the-omics-os/lobster
Keywords: bioinformatics,RNA-seq,single-cell,AI,machine-learning,data-analysis,genomics
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Healthcare Industry
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Environment :: Console
Classifier: Framework :: FastAPI
Requires-Python: <3.14,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=1.5.0
Requires-Dist: numpy>=2.2
Requires-Dist: scipy>=1.10.0
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: anndata>=0.12.7
Requires-Dist: mudata>=0.2.0
Requires-Dist: h5py>=3.9.0
Requires-Dist: langchain-core>=1.6.12
Requires-Dist: langchain-aws>=1.9.0
Requires-Dist: boto3>=1.43.64
Requires-Dist: langgraph>=1.0.5
Requires-Dist: rich>=12.0.0
Requires-Dist: typer>=0.7.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: prompt-toolkit>=3.0.52
Requires-Dist: plotly>=5.0.0
Requires-Dist: matplotlib>=3.7.0
Requires-Dist: kaleido>=0.2.0
Requires-Dist: biopython>=1.81
Requires-Dist: statsmodels>=0.14.0
Requires-Dist: gseapy>=1.1.0
Requires-Dist: GEOparse
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: pyreadr>=0.4.0
Requires-Dist: fsspec>=2026.6.0
Requires-Dist: xmltodict>=0.13.0
Requires-Dist: lxml>=6.1.0
Requires-Dist: requests>=2.31.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: cloudscraper>=1.2.71
Requires-Dist: pysradb>=2.5.1
Requires-Dist: nbformat>=5.9.0
Requires-Dist: papermill>=2.4.0
Requires-Dist: ipykernel>=6.0
Requires-Dist: jinja2>=3.1
Requires-Dist: packaging>=25.0
Requires-Dist: tabulate>=0.9.0
Requires-Dist: tomli_w>=1.0
Requires-Dist: psutil>=7.0.0
Requires-Dist: lobster-ai-tui~=1.3; platform_system != "Windows"
Provides-Extra: anthropic
Requires-Dist: langchain-anthropic>=1.7.6; extra == "anthropic"
Requires-Dist: httpx2>=2.0.0; extra == "anthropic"
Provides-Extra: bedrock
Requires-Dist: langchain-aws>=1.9.0; extra == "bedrock"
Requires-Dist: boto3>=1.43.64; extra == "bedrock"
Provides-Extra: ollama
Requires-Dist: langchain-ollama>=0.3.10; extra == "ollama"
Requires-Dist: ollama>=0.6.0; extra == "ollama"
Provides-Extra: gemini
Requires-Dist: langchain-google-genai>=4.1.2; extra == "gemini"
Provides-Extra: openai
Requires-Dist: langchain-openai>=1.7.2; extra == "openai"
Provides-Extra: openrouter
Requires-Dist: langchain-openai>=1.7.2; extra == "openrouter"
Provides-Extra: nebius
Requires-Dist: langchain-openai>=1.7.2; extra == "nebius"
Provides-Extra: all-providers
Requires-Dist: lobster-ai[anthropic,azure,bedrock,gemini,nebius,ollama,openai,openrouter]; extra == "all-providers"
Provides-Extra: docling
Requires-Dist: docling>=2.94.0; extra == "docling"
Requires-Dist: docling-core>=2.74.1; extra == "docling"
Provides-Extra: hdf5
Requires-Dist: tables>=3.8.0; extra == "hdf5"
Provides-Extra: server
Requires-Dist: fastapi>=0.100.0; extra == "server"
Requires-Dist: uvicorn>=0.23.0; extra == "server"
Requires-Dist: python-multipart>=0.0.30; extra == "server"
Provides-Extra: classic-tui
Requires-Dist: textual>=6.7.1; extra == "classic-tui"
Provides-Extra: vector-search
Requires-Dist: lobster-vector[chromadb,openai]~=1.3; extra == "vector-search"
Provides-Extra: observability
Requires-Dist: langfuse>=3.2.6; extra == "observability"
Requires-Dist: redis>=6.4.0; extra == "observability"
Provides-Extra: lamin
Requires-Dist: lamindb-core<2.13,>=2.12.2; extra == "lamin"
Requires-Dist: pandera>=0.24.0; extra == "lamin"
Provides-Extra: extended-data
Requires-Dist: polars>=1.32.3; extra == "extended-data"
Requires-Dist: rispy>=0.10.0; extra == "extended-data"
Provides-Extra: transcriptomics
Requires-Dist: lobster-transcriptomics[batch-integration]~=1.3; extra == "transcriptomics"
Requires-Dist: lobster-research~=1.3; extra == "transcriptomics"
Requires-Dist: lobster-visualization~=1.3; extra == "transcriptomics"
Provides-Extra: doublet-detection
Requires-Dist: lobster-transcriptomics[doublet-detection]~=1.3; extra == "doublet-detection"
Provides-Extra: genomics
Requires-Dist: lobster-genomics~=1.3; extra == "genomics"
Requires-Dist: lobster-research~=1.3; extra == "genomics"
Requires-Dist: lobster-visualization~=1.3; extra == "genomics"
Provides-Extra: proteomics
Requires-Dist: lobster-proteomics[network-analysis]~=1.3; extra == "proteomics"
Requires-Dist: lobster-research~=1.3; extra == "proteomics"
Requires-Dist: lobster-visualization~=1.3; extra == "proteomics"
Provides-Extra: research
Requires-Dist: lobster-research~=1.3; extra == "research"
Requires-Dist: lobster-visualization~=1.3; extra == "research"
Provides-Extra: plink
Requires-Dist: bed-reader>=0.2.0; extra == "plink"
Provides-Extra: azure
Requires-Dist: langchain-azure-ai>=0.1.0; extra == "azure"
Requires-Dist: azure-ai-inference>=1.0.0b1; extra == "azure"
Requires-Dist: azure-identity>=1.25.0; extra == "azure"
Provides-Extra: recommended
Requires-Dist: lobster-ai[anthropic,classic-tui,extended-data,transcriptomics]; extra == "recommended"
Provides-Extra: full
Requires-Dist: lobster-ai[genomics,proteomics,transcriptomics]; extra == "full"
Requires-Dist: lobster-ai[all-providers,classic-tui,docling,extended-data,hdf5]; extra == "full"
Requires-Dist: lobster-metadata~=1.3; extra == "full"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: pytest-xdist>=3.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-mock>=3.10.0; extra == "dev"
Requires-Dist: pytest-benchmark>=4.0.0; extra == "dev"
Requires-Dist: pytest-timeout>=2.1.0; extra == "dev"
Requires-Dist: pytest-html>=3.2.0; extra == "dev"
Requires-Dist: pytest-json-report>=1.5.0; extra == "dev"
Requires-Dist: jsonschema>=4.18.0; extra == "dev"
Requires-Dist: factory-boy>=3.2.0; extra == "dev"
Requires-Dist: responses>=0.25.8; extra == "dev"
Requires-Dist: httpretty>=1.1.4; extra == "dev"
Requires-Dist: freezegun>=1.2.0; extra == "dev"
Requires-Dist: faker>=19.0.0; extra == "dev"
Requires-Dist: moto>=4.1.0; extra == "dev"
Requires-Dist: fakeredis>=2.10.0; extra == "dev"
Requires-Dist: ftputil>=5.0.4; extra == "dev"
Requires-Dist: memory-profiler>=0.60.0; extra == "dev"
Requires-Dist: psutil>=5.9.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: pylint>=2.17.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Requires-Dist: bandit>=1.7.0; extra == "dev"
Requires-Dist: ruff>=0.0.300; extra == "dev"
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
Requires-Dist: bumpversion>=0.6.0; extra == "dev"
Requires-Dist: twine>=4.0.0; extra == "dev"
Requires-Dist: build>=0.10.0; extra == "dev"
Requires-Dist: mkdocs>=1.5.0; extra == "dev"
Requires-Dist: mkdocs-material>=9.0.0; extra == "dev"
Requires-Dist: langfuse>=2.0.0; extra == "dev"
Requires-Dist: tabulate>=0.9.0; extra == "dev"
Requires-Dist: import-linter>=2.1; extra == "dev"
Requires-Dist: pipdeptree>=2.25; extra == "dev"
Provides-Extra: all
Requires-Dist: lobster-ai[dev,full]; extra == "all"
Dynamic: license-file

<div align="center">
  <img alt="Lobster AI: the self-evolving agentic framework for bioinformatics" src="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/banner.png" width="700">
</div>

<br/>

<div align="center">
  <table border="0" cellspacing="6" cellpadding="0" style="border: none; background: transparent;">
    <tr>
      <td style="border: none; background: transparent;"><a href="https://docs.omics-os.com"><img src="https://img.shields.io/badge/docs-omics--os.com-black?style=for-the-badge&logo=readthedocs" alt="Docs"></a></td>
      <td style="border: none; background: transparent;"><a href="https://app.omics-os.com"><img src="https://img.shields.io/badge/cloud-Omics--OS-black?style=for-the-badge&logo=googlecloud" alt="Cloud"></a></td>
      <td style="border: none; background: transparent;"><a href="https://pypi.org/project/lobster-ai/"><img src="https://img.shields.io/badge/PyPI-lobster--ai-black?style=for-the-badge&logo=pypi" alt="PyPI"></a></td>
    </tr>
  </table>
</div>

<br/>

**Lobster AI** is an open-source multi-agent system for bioinformatics. Describe an analysis in plain language: specialist agents for each omics domain find and load the data, run the analysis with scientific libraries such as Scanpy and PyDESeq2, and record the analysis steps, which you can export as a Jupyter notebook. It runs on your machine, in its own terminal chat or from your coding agent over MCP.

简体中文：[README.zh.md](https://github.com/the-omics-os/lobster/blob/main/README.zh.md) · 命令行加上 `--lang zh`，或设置 `LOBSTER_LANG=zh`。

# Quickstart

**1. Install** (macOS and Linux):
```bash
curl -fsSL https://install.lobsterbio.com -o install.sh && bash install.sh
```
The installer asks a few questions, so download it first: a piped `curl | bash` cannot read the answers.

**Windows:** open PowerShell or Command Prompt, paste this line and press Enter. When it finishes, close the window, open a new one and type `lobster`.
```powershell
powershell -ExecutionPolicy ByPass -c "irm https://install.lobsterbio.com/windows | iex"
```
To install with `uv` or `pip`, add analysis packages later or upgrade, see the [installation guide](https://docs.omics-os.com/docs/getting-started/installation).

**2. Make a project:**
```bash
lobster init ~/my-study    # any folder below your home folder
cd ~/my-study
```
`lobster init` asks for your LLM provider and the analysis packages you need. The project keeps that setup next to your data and runs, so chats, runs and MCP calls in the folder use it: see [Lobster projects](https://docs.omics-os.com/docs/guides/lobster-projects). Setting up from an agent, CI or a script: [non-interactive setup](https://docs.omics-os.com/docs/getting-started/installation#non-interactive-setup-agents-ci-scripts).

**3. Ask in plain language:**
```bash
lobster chat
```
```text
> Load pbmc3k_raw.h5ad as pbmc3k and describe it.
> Filter cells with 200 to 2500 genes and under 5% mitochondrial counts, keep genes
  seen in at least 3 cells, then normalize to 10,000 counts per cell and log1p.
> Select 2000 highly variable genes, run PCA, cluster with Leiden, compute a UMAP
  and find marker genes for each cluster.
```

<div align="center">
  <img alt="A lobster chat session: loading, filtering and clustering the PBMC 3k dataset" src="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/recordings/lobster-chat.gif" width="720">
  <br/>
  <sub>A replay of a real <code>lobster chat</code> session with Lobster AI 1.3.0: load PBMC 3k, filter and normalize, then cluster. Waits between steps are shortened.</sub>
</div>

<br/>

# Use Lobster from your coding agent (MCP)

`lobster mcp --stdio` runs Lobster as an [MCP](https://modelcontextprotocol.io) server. Claude Code, Codex, pi, OpenCode, Cursor or Claude Desktop hands it an experimental question and gets back the result, a notebook and the files. Add it with one command, inside your project folder:
```bash
# Claude Code
claude mcp add --transport stdio lobster -- lobster mcp --stdio

# Codex
codex mcp add lobster -- lobster mcp --stdio

# pi, plus short readable rows for Lobster's tools
pi mcp add lobster --exposure direct -- lobster mcp --stdio
pi install npm:@omicsos/pi-lobster
```
In Claude Code you can install Lobster as a plugin instead, which also adds Lobster AI's skills: `claude plugin marketplace add the-omics-os/lobster`, then `claude plugin install lobster@omics-os`.

A Lobster run often takes longer than a minute. Codex and pi stop a tool call after 60 seconds unless you raise the limit, and their `mcp add` commands cannot raise it. The agent then has to ask again every minute. To let it wait for a whole run in one call, add `tool_timeout_sec = 3600` to the `lobster` entry in `~/.codex/config.toml`, or `"timeout": 3600` to the `lobster` entry in `~/.pi/agent/mcp.json`.

The configuration for OpenCode, Cursor and Claude Desktop, the nine tools and how you approve Lobster's plan are in the [MCP guide](https://docs.omics-os.com/docs/guides/lobster-mcp) and in [`lobster/integrations/`](lobster/integrations/).

<!-- mcp-name: io.github.the-omics-os/lobster -->

<div align="center">
  <img alt="Claude Code asks Lobster for public PBMC single-cell datasets on GEO" src="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/recordings/claude-code-mcp.gif" width="720">
  <br/>
  <sub>A replay of a real run: Claude Code 2.1.323 asks Lobster AI 1.3.0 for public PBMC datasets on GEO. Waits between steps are shortened.</sub>
</div>

<br/>

# Notebooks, replay and the catalog

* **Export:** in `lobster chat`, `/pipeline export` writes the recorded analysis steps as a Jupyter notebook.
* **Check:** `lobster replay --verify analysis.ipynb --input my_data.h5ad` runs the notebook again and compares what it writes with the files the session saved. It detects changes it can see; it does not prove how the outputs were computed. See [replay and verify](https://docs.omics-os.com/docs/guides/replay-verify).
* **Catalog (optional, off by default):** with `lobster init ~/my-study --lamin`, Lobster records sessions, the datasets you save (with versions and content hashes) and exported notebooks in a local [LaminDB](https://lamin.ai) catalog in your workspace. See the [LaminDB catalog guide](https://docs.omics-os.com/docs/guides/lamindb-catalog).

<br/>

# CLI reference

```bash
lobster chat                        # Interactive session
lobster query "your request"        # One request, no chat
lobster init [folder]               # Set up a provider; a folder makes a project
lobster projects list               # Projects Lobster knows about
lobster replay --verify nb.ipynb    # Re-run an exported notebook and compare its output
lobster mcp --stdio                 # MCP server for coding agents and desktop apps
lobster --help                      # Every command
```
The other commands and the slash commands inside `lobster chat`: [CLI commands](https://docs.omics-os.com/docs/guides/cli-commands).

<br/>

# Agents and LLM providers

**Agents:** ten agent packages cover transcriptomics (single-cell and bulk RNA-seq), genomics, proteomics, metabolomics, machine learning, drug discovery, structural visualization, visualization, metadata, and research (literature and dataset search). Install only the ones you need: [agent packages](https://docs.omics-os.com/docs/agents).

**LLM providers:** Omics-OS Cloud (the default), Anthropic, AWS Bedrock, Google Gemini, OpenAI, OpenRouter, Nebius AI Studio, Azure AI and Ollama Cloud, or a local Ollama, where no messages go to an LLM provider (online database searches still use the internet). See [configuration](https://docs.omics-os.com/docs/getting-started/configuration).

**Case studies:** [single-cell transcriptomics](https://docs.omics-os.com/docs/case-studies/transcriptomics/) · [CML drug resistance](https://docs.omics-os.com/docs/case-studies/cml-resistance/) · [drug discovery](https://docs.omics-os.com/docs/case-studies/drug-discovery/) · [clinical genomics](https://docs.omics-os.com/docs/case-studies/genomics/) · [mass-spec proteomics](https://docs.omics-os.com/docs/case-studies/proteomics/) · [literature mining](https://docs.omics-os.com/docs/case-studies/research/) · [multi-omics ML](https://docs.omics-os.com/docs/case-studies/machine-learning/)

<br/>

# Architecture

Lobster AI is a multi-agent system: specialist agents for each omics domain, orchestrated by a LangGraph supervisor.

* **Local execution:** Analysis runs on your machine. Your data files stay on your machine; messages and tool results are sent to the LLM provider you configure (with a local model such as Ollama, they stay on your machine too).
* **Scientific libraries:** Agents call Scanpy, PyDESeq2, Harmony and others through tool functions. Some agents also have a code tool for custom analysis, which you can switch off per agent.
* **Provenance:** Analysis steps are recorded and can be exported as a Jupyter notebook. Decisions Lobster asks you to make are recorded with the answer and who gave it (`human` or `model`).

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-topology.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-topology-light.svg">
    <img alt="How you call Lobster AI and what you get: from the terminal, an MCP host or another program; analysis runs on your machine, where data files stay; you get data files, plots, a notebook of the recorded steps and replay --verify; over the network: the LLM provider you choose and public databases such as GEO, SRA and PubMed" src="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-topology.svg" width="88%">
  </picture>
  <br/><br/>
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-core.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-core-light.svg">
    <img alt="Inside the Lobster AI engine, top to bottom: interfaces (terminal, MCP server, agent stdio); a LangGraph supervisor that routes requests to specialist agents; scientific tools such as Scanpy, PyDESeq2 and Harmony; the data manager that records tool steps for notebook export and replay --verify; projects and an optional LaminDB catalog; data access through file adapters and GEO, SRA, PubMed and MetaboLights" src="https://raw.githubusercontent.com/the-omics-os/lobster/main/docs/assets/architecture-core.svg" width="88%">
  </picture>
</div>

More in the [architecture overview](https://docs.omics-os.com/docs/architecture/overview).

<br/>

# Build your own agent

Agents are standalone Python packages that Lobster finds through entry points. `lobster scaffold agent` generates one with tool stubs, AQUADIF metadata and contract tests; `lobster validate-plugin` checks it. The `lobster-dev` skill gives your coding agent the package layout, the tool rules and the AQUADIF contract:
```bash
curl -fsSL https://skills.lobsterbio.com | bash    # also lobster-use, for analysis workflows
```
The same skills ship inside the package (`lobster skills list`, `lobster skills install`). Guide: [creating agents](https://docs.omics-os.com/docs/developer/creating-agents).

<br/>

# Acknowledgements

<table border="0" cellspacing="0" cellpadding="10" style="border: none; background: transparent;">
  <tr>
    <td style="border: none; background: transparent;">
      <a href="https://github.com/celltype/cli">
        <img src="https://img.shields.io/badge/celltype-cli-343a40?style=for-the-badge&logo=github&logoColor=white" alt="celltype/cli">
      </a>
    </td>
    <td style="border: none; background: transparent; vertical-align: middle;">
      Structural inspiration for the drug discovery agent package — CLI design patterns and domain decomposition.
    </td>
  </tr>
  <tr>
    <td style="border: none; background: transparent;">
      <a href="https://github.com/GPTomics/bioSkills">
        <img src="https://img.shields.io/badge/GPTomics-bioSkills-2d6a4f?style=for-the-badge&logo=github&logoColor=white" alt="bioSkills">
      </a>
    </td>
    <td style="border: none; background: transparent; vertical-align: middle;">
      Foundation for the <code>lobster-use</code> and <code>lobster-dev</code> skills — domain knowledge structure and skill distribution patterns.
    </td>
  </tr>
  <tr>
    <td style="border: none; background: transparent;">
      <a href="https://github.com/assistant-ui/assistant-ui">
        <img src="https://img.shields.io/badge/assistant--ui-assistant--ui-5c6bc0?style=for-the-badge&logo=react&logoColor=white" alt="assistant-ui">
      </a>
    </td>
    <td style="border: none; background: transparent; vertical-align: middle;">
      UI component architecture and streaming patterns used in the Omics-OS Cloud frontend.
    </td>
  </tr>
  <tr>
    <td style="border: none; background: transparent;">
      <a href="https://github.com/charmbracelet">
        <img src="https://img.shields.io/badge/Charm-Bracelet-e91e8c?style=for-the-badge&logo=go&logoColor=white" alt="charmbracelet">
      </a>
    </td>
    <td style="border: none; background: transparent; vertical-align: middle;">
      BubbleTea, Lipgloss, Glamour, and huh — the entire terminal UI stack powering <code>lobster chat</code>.
    </td>
  </tr>
  <tr>
    <td style="border: none; background: transparent;">
      <a href="https://github.com/laminlabs/lamindb">
        <img src="https://img.shields.io/badge/laminlabs-lamindb-343a40?style=for-the-badge&logo=github&logoColor=white" alt="laminlabs/lamindb">
      </a>
    </td>
    <td style="border: none; background: transparent; vertical-align: middle;">
      The optional local data catalog behind <code>lobster init --lamin</code>: sessions, saved datasets with versions and content hashes, and exported notebooks.
    </td>
  </tr>
</table>

<br/>

<div align="center">
  <b>Lobster AI is built by Omics-OS, The Operating System for Biology.</b><br/><br/>
  <a href="https://omics-os.com">Omics-OS</a> &nbsp;·&nbsp; <a href="https://lobsterbio.com">Lobster AI</a> &nbsp;·&nbsp; <a href="https://docs.omics-os.com">Docs</a>
</div>
