Spiral gives your agent every tool with one account. Browse the tools →

opencode · Industry Data

How to Use NIH 3D collections in opencode

Returns the curated collections available in NIH 3D, including subject libraries such as the Heart Library and Human Reference Atlas. Use it to find a focused collection before looking for individual models.

Prompts to try with NIH 3D collections in opencode

Copy an example into opencode, or ask in your own words.

Use NIH 3D collections to find the Human Reference Atlas collection, then propose where its reference organs would fit in this project's anatomy lesson structure.

NIH 3D collectionsopencode
Try asking
  • Use NIH 3D collections to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NIH 3D collections and tell me what changed since last week.

  • Check NIH 3D collections and summarize what you find in three bullet points.

  • Pull the newest data from NIH 3D collections and give me the result as a table.

How to set up NIH 3D collections in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run NIH 3D collections

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "threed-nih-gov/models-3d/list_collections",
        "input": {}
      }'

Then paste one of the prompts above: opencode finds NIH 3D collections on Spiral, shows the price and runs it.

NIH 3D collections providers and prices

Spiral runs NIH 3D collections through Alexandria. Open a card for today's price, with every fee included.

AlexandriaIndustry Data
NIH 3D · List collections
threed-nih-gov/models-3d/list_collections

What can you do with NIH 3D collections in opencode?

Build a biomedical asset shortlist for your project's anatomy viewer or teaching app. An agent can use NIH 3D collection discovery, model results, or entry details to turn available source material into a reviewable asset plan.

Plan an anatomy lesson

Find an anatomy collection, shortlist models for the lesson, and inspect the chosen entries' files and licenses before preparing teaching materials.

Choose models for a classroom print session

Browse subject collections, find candidates, and compare available formats, polygon counts, and watertight flags before testing files in a slicer.

Source assets for a biomedical web viewer

Discover relevant collections, locate models for the viewer's subject, and inspect file sizes and download formats before selecting assets.

Prepare a science museum exhibit

Explore curated subject libraries, assemble candidate models, and check entry descriptions and reuse terms for an educational exhibit.

Maintain a course resource list

Revisit relevant collections, look for newly published teaching models, and inspect selected entries before adding them to a course reading and asset list.

Review assets before adapting teaching materials

Locate relevant collections and models, then inspect each selected entry's license and source references before proposing an adaptation.

Questions about NIH 3D collections in opencode

Can opencode use NIH 3D collections?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NIH 3D collections like any built-in tool.

How much does NIH 3D collections cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use NIH 3D collections in opencode?

No. Spiral runs NIH 3D collections on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up NIH 3D collections in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while NIH 3D collections runs?

NIH 3D collections runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What scientific subjects does NIH 3D cover?

NIH 3D covers biomedical structures and equipment, including proteins, DNA, cells, bacteria, viruses, anatomy, prosthetics, and laboratory hardware. Its scope extends beyond printable organs to molecular and cellular visualization.

Where do NIH 3D molecular models come from?

NIH 3D can generate models from four external databases: PDB, AlphaFold, PubChem, and EMDB. These sources cover different kinds of molecular structure data, so inspect an entry's provenance when selecting it.

Can published models change?

Yes. Replacing a published entry's files creates a major version change, such as 1.0 to 2.0, while the previous files remain available in the earlier version.

Why might a model lack a download format?

NIH 3D omits some output formats for large meshes. Its documented thresholds are 3 million polygons for 3MF and 5 million polygons for WRL/X3D.

Does every NIH 3D file have the same reuse terms?

No. Reuse depends on the license associated with each file, and NIH 3D requires users to comply with those terms before using it.

Get started

Start using NIH 3D collections in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options