Skip to content
Agentmart
Submit a tool

chai

Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the…

Skill by lamm-mit

IndexedApache-2.0★ 250
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lamm-mit-chai

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

Use cases: backend, ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/chai

What's inside

Skill name
chai
Description
Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.
License
Apache-2.0
Instructions
151 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Agent Skills spec issues

  • metadata: must be a key/value mapping

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Chai-1 Structure Prediction

Use when the user needs to predict molecular structures — proteins, nucleic acids, small molecules, or multi-chain complexes — using the Chai-1 foundation model. Supports both local GPU inference and the Chai Discovery API for remote execution.

## Requirements

- Python 3.10+
- 16 GB GPU VRAM (A10G sufficient; A100 for large complexes)
- Or: use Chai Discovery API (no local GPU needed)

## Installation

```bash
pip install chai-lab
```

## Local Usage

### Python API

```python
from chai_lab.chai1 import run_inference
import torch
from pathlib import Path

# Single protein
results = run_inference(
    fasta_file=Path("input.fasta"),
    output_dir=Path("results/"),
    num_trunk_recycles=3,
    num_diffn_timesteps=200,
    seed=42,
    device=torch.device("cuda:0"),
    use_esm_embeddings=True,
)

# Access results
for i, result in enumerate(results):
    print(f"Model {i}: pTM={result.ptm:.3f}, ipTM={result.iptm:.3f}")
```

### FASTA Input Format

```fasta
# Single chain
>protein|A
MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPT

# Complex: separate chains with different headers
>protein|A
EVQLVESGGGLVQPGGSLRLSCAASGFTFSDYYMSWVRQAP
>protein|B
MTEYKLVVVGAGGVGKSALTIQLIQNHFVDE

# With small molecule (SMILES)
>protein|A
MTEYKLVVVGAGGVGKS...
>ligand|L
CC1=CC=C(C=C1)NC(=O)C2=CC=C(C=C2)CN3CCN(CC3)C

# RNA
>rna|R
GCGGAUUUAGCUCAGUUGGGAGAGCGCCAGACUGAAGAUCUGGAGGUCCUGUGUUCGAUCCACAGAAUUCGCACCA
```

## Chai Discovery API (No Local GPU)

```python
import requests

# Submit prediction job
response = requests.post(
    "https://api.chaidiscovery.com/v1/predictions",
    headers={"Authorization": f"Bearer {CHAI_API_KEY}"},
    json={
        "sequences": [
            {"type": "protein", "chain_id": "A", "sequence": "MTEYKLVV..."},
            {"type": "protein", "chain_id": "B", "sequence": "EVQLVES..."}
        ],
        "num_diffn_timesteps": 200,
        "num_trunk_recycles": 3,
    }
)
job_id = response.json()["job_id"]

# Poll for results
import time
while True:
    status = requests.get(
        f"https://api.chaidiscovery.com/v1/predictions/{job_id}",
        headers={"Authorization": f"Bearer {CHAI_API_KEY}"}
    ).json()
    if status["status"] == "completed":
        break
    time.sleep(30)

# Download structure
structure_url = status["results"]["structure_url"]
```

## Output Files

| File | Contents |
|------|----------|
| `pred.model_idx_0.cif` | Top-ranked structure (CIF format) |
| `pred.model_idx_0.npz` | Confidence arrays (pLDDT, PAE, pDE) |
| `scores.json` | Aggregate scores per model |

## Parsing Confidence Scores

```python
import numpy as np

data = np.load("pred.model_idx_0.npz")
plddt = data["plddt"]                    # Per-residue, shape (N,)
pae = data["pae"]                        # N×N matrix, Angstroms
pde = data.get("pde")                    # Predicted Distance Error

# Interface residues (chain A = target, chain B = binder)

From lamm-mit/scienceclaw, Apache-2.0.

More from lamm-mit/scienceclaw

Signals

Stars
250
Forks
47
Open issues
1
Last commit (this folder)
Mar 26, 2026 (7 months ago)
Last release
Jun 23, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lamm-mit

Cite this page

chai skill. Agent Mart. https://agentmart.dev/skills/lamm-mit-chai (last updated 2026-10-24)