Glass CLI

Search, read and download Glass Bio's hosted, preprocessed single-cell data from a terminal or a coding agent. Noninteractive commands print one JSON envelope by default. Use --humanfor a terminal summary.

Single-cell RNA-seq quickstart for the demo · Markdown install guide for the demo

Install

Requires Python 3.11 or later on Linux or macOS.

curl -fsSL 'https://demo.glass.bio/api/scripts/install-glass.sh' | bash -s -- --api-base 'https://demo.glass.bio/api/v1'

Connect an agent

glass auth login
glass auth tokens create --name my-agent --scope read --scope submit
export GLASS_TOKEN=glass_pat_...
glass cli status

Tokens carry only the scopes you grant: read, submit (paid jobs) and delete. Give your agent the Glass skill by saving it as glass-toolkit/SKILL.md in its skills directory.

Commands

--output results.json saves the complete JSON envelope and prints a small json_file receipt. Read the saved file for the result. Binary downloads save the artifact itself.

Full CLI reference and migration guide

Read the Astral manifestglass astral get --representation manifest --organism human
Download Astral expressionglass astral get --organism human --genes IL7R CD3D --output expression.parquet
Score an Astral gene setglass astral score --input score.json
Search catalog datasetsglass datasets search --query "lung fibrosis"
List clinical filter valuesglass datasets values list --field material
Rank catalog clusters by genesglass datasets clusters search --genes-file genes.txt --organism Homo_sapiens
Find similar catalog clustersglass datasets clusters search --similar-to cluster.json --output hits.json
Compare a cluster with the atlasglass datasets clusters compare --from hits.json --rank 1
Prepare a donor cohortglass cohorts prepare --from hits.json --rank 1 --genes-file gene-ids.txt --atlas-version ATLAS_VERSION --output cohort.json
Bundle donor comparison evidenceglass cohorts bundle --from results.json --output evidence.zip
List datasetsglass datasets list --all --query lung
Show a datasetglass datasets get DATASET_ID
List clustersglass datasets clusters list DATASET_ID
Show a clusterglass datasets clusters get --from hits.json --rank 1 --include markers
Download an H5ADglass datasets get DATASET_ID --representation h5ad --output data.h5ad --wait
Upload an H5ADglass datasets upload data.h5ad --name sample --reference grch38-gencode-v32 --wait
Annotate cell typesglass datasets annotations create DATASET_ID --context "lung, IPF" --wait
Subset clustersglass datasets subset DATASET_ID --cluster 0 --cluster 4 --name t-cells --wait
Subset search hitsglass datasets subset --from hits.json --ranks 1,2,5 --name t-cells --wait
Merge datasetsglass datasets merge DATASET_A DATASET_B --name combined --wait
Find and wait for jobsglass jobs list

Commands that take a dataset ID use its latest version unless you pass --version. Run glass COMMAND --help for details. Read atlasVersion from the Astral manifest and use that value for ATLAS_VERSION.