> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Chai-1

> First released in 2024, Chai-1 is [Chai Discovery](https://www.chaidiscovery.com/)'s multi-modal foundation model for molecular structure prediction, folding proteins together with small-molecule ligands and glycans. This toolkit runs Chai-1 to predict the joint 3D structure of protein, ligand, and glycan complexes from sequence, optionally conditioned on ESM embeddings and ColabFold multiple-sequence alignments.

![Chai-1](https://proto-bio.github.io/proto-assets/images/tool/chai1/hero.png)[![](https://mintcdn.com/bio-pro/_UGa2jUMKeVPCbLk/assets/images/cached/5182c572b1a6.png?fit=max\&auto=format\&n=_UGa2jUMKeVPCbLk\&q=85\&s=efb52734bb4f3d788f83f73eb9f73e89) Chai Discovery](https://proto.evodesign.org/docs/tools/organizations/chai-discovery.md)

> [!NOTE]
>
> **License:** Chai-1 is open source and free for academic and commercial use under an Apache-2.0 license. Please refer to [the license](https://github.com/chaidiscovery/chai-lab/blob/main/LICENSE) for full terms.

Proto is not affiliated with Chai Discovery. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.

***

&#x20;GitHub GitHub  Preprint Preprint  Cite Cite  Tool Source Tool Source  Open as Notebook Open as Notebook  Run on Modal Run on Modal

![chaidiscovery/chai-lab](https://opengraph.githubassets.com/1/chaidiscovery/chai-lab)

&#x20;chaidiscovery/chai-lab

&#x20;View repo

[Open](https://github.com/chaidiscovery/chai-lab)

Chai-1: Decoding the molecular interactions of lifeChai DiscoverybioRxiv (2024)

&#x20;Read preprint

[Open](https://doi.org/10.1101/2024.10.10.615955)

@articlechaidiscovery2024chai1

```bibtex theme={null}
@article{chaidiscovery2024chai1,
  title={Chai-1: Decoding the molecular interactions of life},
  author={{Chai Discovery}},
  journal={bioRxiv},
  year={2024},
  doi={10.1101/2024.10.10.615955},
  publisher={Cold Spring Harbor Laboratory}
}
```

&#x20;Copy citation

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-tools

&#x20;View source

[Open](https://github.com/evo-design/proto-tools/tree/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1)

Open Notebook

&#x20;Open notebook

[Open](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/examples/example.ipynb)



[Install MCP](https://proto.evodesign.org/docs/mcp/installation.md)
[Chai1 Structure Prediction](https://proto.evodesign.org/tools/chai1-prediction)

Toolkit contributors[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)[![](https://avatars.githubusercontent.com/u/46211285?v=4\&s=64)dguo8412](https://github.com/dguo8412)[![](https://avatars.githubusercontent.com/u/124846286?v=4\&s=64)leba01](https://github.com/leba01)[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)[![](https://avatars.githubusercontent.com/u/6365340?v=4\&s=64)brianhie](https://github.com/brianhie)

| Function | Description | |
| - | - | - |
| `run_chai1()` | Multi-modal structure prediction using Chai1 (GPU) | [ Docs](#api-run-chai1) [ Source](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/chai1.py#L274) |

## Background

Chai-1 ([Chai Discovery, 2024](https://doi.org/10.1101/2024.10.10.615955)) predicts the joint 3D structure of a biomolecular assembly from the sequences and chemical components it contains. It is a multi-modal foundation model that folds proteins together with small-molecule ligands, nucleic acids, glycans, and covalent modifications in a single model. Each protein chain can be conditioned on evolutionary signal, either through a multiple-sequence alignment (MSA) of related sequences or through embeddings from an ESM protein language model.

Internally, Chai-1 follows the all-atom co-folding approach popularized by AlphaFold3. It tokenizes the assembly the same way, with one token per amino-acid residue or nucleotide and one token per atom for ligands and modified residues. A trunk network then builds and refines token and pairwise representations, optionally conditioned on the MSA and ESM embeddings, and a diffusion module generates the all-atom coordinates by starting from noise and iteratively denoising into a structure. Several structures are sampled per input and ranked by an aggregate confidence score. Predicted confidence includes a per-atom predicted local distance difference test (pLDDT) for local reliability, a predicted aligned error (PAE) for the relative placement of any two tokens, and predicted template-modeling (pTM) and interface predicted template-modeling (ipTM) scores that summarize overall and interface accuracy.

The reference implementation is open-sourced by [Chai Discovery](https://www.chaidiscovery.com/) at [chaidiscovery/chai-lab](https://github.com/chaidiscovery/chai-lab), with both the code and the model weights released under the Apache-2.0 license for academic and commercial use, including drug discovery. Chai Discovery also runs the model as a hosted web platform at [lab.chaidiscovery.com](https://lab.chaidiscovery.com).

### Learning Resources

* [chaidiscovery/chai-lab](https://github.com/chaidiscovery/chai-lab) (Chai Discovery) - the official repository and inference code, linking the technical report and the hosted [Chai Discovery web platform](https://lab.chaidiscovery.com) for running predictions in the browser.

## Tools

### Chai-1 Structure Prediction (`chai1-prediction`)

Predicts the 3D structure of a biomolecular complex. Each input complex can combine protein, ligand, and glycan chains; the assembly is folded by Chai-1 and returned as a predicted `Structure` per complex with confidence metrics: average pLDDT, pTM, interface pTM, predicted aligned error, and an overall confidence score.

#### API Reference

[ Source](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/chai1.py#L43)

> [accordion] Input: Chai1Input
>
> **complexes** `List[Complex]` *required*
>
> List of complexes to predict structures for. Inherited from `StructurePredictionInput`. Each complex can contain multiple chains of proteins, ligands, and/or glycans. Total token count per complex must not exceed 2,048 (see `Note` below).
>
> **Complex**
>
> **chains** `List[Chain | Fragment]` *required*
>
> Chains in the complex, in input order.
>
> **msas** `array`
>
> Pre-computed MSAs, one entry per complex. Each entry is a `ComplexMSAs` (per-chain MSAs keyed by chain index); `paired=True` marks rows taxonomy-aligned across chains. Populated by preprocess() or supplied directly.

[ Source](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/chai1.py#L129)

> [accordion] Config: Chai1Config
>
> **use\_esm\_embeddings** `boolean` (default: True)
>
> Whether to use ESM (Evolutionary Scale Modeling) embeddings for improved predictions. ESM embeddings provide evolutionary context from large-scale protein language models, typically improving prediction quality. Independent of `use_msa`; both can be enabled together and Chai-1 conditions on the ESM embeddings and the MSA simultaneously. Default: `True`.
>
> **num\_trunk\_recycles** `integer` (default: 3)
>
> Number of iterative refinement passes through the trunk network. Higher values produce more refined structures but increase computation time. Typical range: 0-10. Must be at least 0.
>
> **num\_diffn\_timesteps** `integer` (default: 200)
>
> Number of denoising steps in the diffusion process. Higher values produce more refined structures but are slower. Typical
>
> **num\_diffn\_samples** `integer` (default: 5)
>
> Number of independent structure samples to generate per complex via the diffusion process. Only the best sample (by confidence) is returned. Higher values explore more conformational space but increase computation time. Must be at least 1. Default: 5.
>
> **num\_trunk\_samples** `integer` (default: 1)
>
> Number of independent trunk forward passes per diffusion sample. Increases diversity in structure generation. Must be at least 1. Default: 1.
>
> **low\_memory** `boolean` (default: True)
>
> Stream MSA + template features per sample to reduce peak GPU memory at the cost of speed. Default: True.
>
> **recycle\_msa\_subsample** `integer` (default: 0)
>
> Stochastically subsample MSA across recycles for diversity. 0 disables (default).
>
> **verbose** `integer` (default: 0)
>
> Whether to print status messages during execution. Inherited from `StructurePredictionConfig`. Default: `False`.
>
> **device** `string` (default: cuda)
>
> Device to run the model on (`"cuda"`, `"cpu"`). Inherited from `StructurePredictionConfig`. Default: `"cuda"`.
>
> **timeout** `integer` (default: 1200)
>
> Maximum execution time in seconds. `None` waits indefinitely. Default: 1200.
>
> **seed** `integer`
>
> Random seed. When set, tools run reproducibly up to small GPU float noise (see `BaseToolOutput.approx_equal`), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.
>
> **include\_pae\_matrix** `boolean` (default: False)
>
> Inherited. Default: `False`.
>
> **use\_msa** `boolean` (default: True)
>
> Whether to generate and use Multiple Sequence Alignments (MSAs) for protein chains using MMseqs2 homology search. Supplied MSAs are always used and override `use_msa=False`. Inherited from `MSAStructurePredictionConfig`. Default: `True`.
>
> **msa\_search\_config** `Mmseqs2HomologySearchConfig`
>
> Configuration for MMseqs2 homology search (MSA generation). Only used when `use_msa=True`. Inherited from `MSAStructurePredictionConfig`. Default: `None`.
>
> **pair\_heterocomplex\_msas** `boolean` (default: True)
>
> Whether heterocomplex protein chains should use taxonomy-paired MSA generation. Inherited from `MSAStructurePredictionConfig`. Default: `True`.

[ Source](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/chai1.py#L119)

> [accordion] Output: Chai1Output
>
> **structures** `List[Structure]` *required*
>
> Predicted structures, each carrying a :class:`Chai1Metrics` instance on `.metrics`.
>
> **Structure**
>
> **structure** `string` *required*
>
> Raw structure content in PDB or CIF format.
>
> **structure\_format** `string`
>
> Format of the content string (auto-detected if omitted).
>
> **b\_factor\_type** `BFactorType`
>
> What the B-factor column represents.
>
> **source** `string`
>
> Optional source identifier (filepath or tool name).
>
> **metrics** `Metrics`
>
> Associated metrics (e.g., pLDDT, pTM scores, per-chain lists, pairwise matrices). None values are stripped at construction.
>
> **Metrics** (one set per `structures` item)
>
> | Metric | Type | Range | Availability |
> | - | - | - | - |
> | `avg_plddt` | float | 0.0 to 1.0 | always |
> | `ptm` | float | 0.0 to 1.0 | always |
> | `iptm` | float | 0.0 to 1.0 | always |
> | `avg_pae` | float | ≥ 0.0 | always |
> | `pae` | list\[list\[float]] | ≥ 0.0 | when include\_pae\_matrix=True |
> | `confidence_score` | float | 0.0 to 1.0 | always |

#### Applications

This tool predicts the structure of multi-component assemblies such as protein-ligand binding poses and glycosylated proteins, which makes it well suited to drug-discovery screening and modeling carbohydrate-decorated targets. For a multi-chain complex it also reports how confidently the chains are placed relative to one another: interface pTM (ipTM) gives a single 0-to-1 score for the overall inter-chain arrangement, and the cross-chain blocks of the PAE matrix show which inter-chain regions are positioned confidently versus uncertainly, so you can rank or filter predicted complexes before trusting a pose downstream.

#### Usage Tips

* **Total length is capped at 2,048 tokens per complex** (1 per amino-acid residue, 1 per heavy atom for ligands and glycans); longer inputs are rejected.
* **`use_esm_embeddings` defaults to `True`.** Chai-1 conditions on embeddings from an ESM protein language model; they are used with or without an MSA.
* **`use_msa` defaults to `True`.** A ColabFold search generates an MSA for each protein chain; set it `False` for single-sequence prediction, or attach precomputed MSAs to the input.
* **Sampling and refinement are configurable.** `num_diffn_samples` (default `5`) independent samples are drawn per complex and the best is kept by `confidence_score`; `num_diffn_timesteps` (default `200`) sets the denoising steps and `num_trunk_recycles` (default `3`) trades accuracy for runtime.
* **Confidence is reported as pLDDT, pTM, ipTM, PAE, and a confidence score.** `avg_plddt`, the primary metric, is on a 0 to 1 scale; ipTM is meaningful only for multi-chain complexes. Set `include_pae_matrix` to attach the full per-token PAE matrix.

## Toolkit Notes

These apply to every Chai-1 tool in this toolkit (`chai1-prediction`).

* **Requires a GPU.** Chai-1 runs through a PyTorch backend and needs an NVIDIA GPU; CPU execution is not practical. `low_memory` (default `True`) streams features per sample to reduce peak GPU memory at some cost in speed.
* **Protein, ligand, and glycan only** The Chai-1 model additionally supports DNA, RNA, and covalent modifications; this toolkit currently wraps protein, ligand, and glycan prediction. Use AlphaFold3, Boltz-2, or Protenix for nucleic-acid complexes.
* **Predictions are stochastic.** Structures come from a diffusion process; set `seed` for reproducible sampling. `recycle_msa_subsample` and unseeded runs are intentionally non-deterministic.

> [!TIP]
>
> **Example notebook:** See the [full working example](https://github.com/evo-design/proto-tools/blob/227cc79a2cac070aa69c91f60660e353d7f84a53/proto_tools/tools/structure_prediction/chai1/examples/example.ipynb) for a copy-paste-ready walkthrough.

## Infrastructure Guides

The following guides cover how to run tools efficiently and at scale.

> [card] [Tool Persistence](https://proto.evodesign.org/docs/tools/guides/tool-persistence.md)
>
> Keep a tool's model warm across calls instead of reloading it every invocation.

> [card] [Device Management](https://proto.evodesign.org/docs/tools/guides/device-management.md)
>
> How GPUs are allocated to tools and how to target specific devices.

> [card] [Parallel Execution](https://proto.evodesign.org/docs/tools/guides/parallel-execution.md)
>
> Fan a batch of inputs out across multiple GPUs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.