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

opencode · News & Media

How to Use Poly Haven asset downloads in opencode

Returns download URLs for a chosen Poly Haven asset, with its authors and license. Use it after choosing an asset to get the available texture maps, model files, or HDRI downloads.

Prompts to try with Poly Haven asset downloads in opencode

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

Use Poly Haven asset downloads for brown_planks_03 and create a manifest in my project containing the available 4K PNG texture map URLs.

Poly Haven asset downloadsopencode
Try asking
  • Use Poly Haven asset downloads for sunset_jhbcentral and add its available 4K HDR download URL to my project's environment asset manifest.

  • Use Poly Haven asset downloads to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Poly Haven asset downloads and tell me what changed since last week.

  • Check Poly Haven asset downloads and summarize what you find in three bullet points.

How to set up Poly Haven asset downloads 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 Poly Haven asset downloads

    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": "polyhaven-com/graphics-assets/get_asset",
        "input": {
          "id": "<id>"
        }
      }'

Then paste one of the prompts above: opencode finds Poly Haven asset downloads on Spiral, shows the price and runs it.

Poly Haven asset downloads providers and prices

Spiral runs Poly Haven asset downloads through Alexandria. Open a card for today's price, with every fee included.

AlexandriaNews & Media
Poly Haven · Get asset
polyhaven-com/graphics-assets/get_asset

What can you do with Poly Haven asset downloads in opencode?

Build a Poly Haven asset picker that turns category browsing into scene-ready file choices. A coding agent can use the taxonomy, asset metadata, and download links to add that workflow to your project.

Build an asset browser

Organize a browser around Poly Haven categories, show matching assets, and retrieve download links when an artist chooses one.

Prepare an architectural scene

Browse material and furniture categories, shortlist wood textures and props, and collect the files needed for an interior render.

Source assets for a game environment

Use categories to organize an environment's material and prop requirements, find candidates, and retrieve selected model and texture files.

Assemble a rendering research dataset

Select assets across category branches, collect their metadata, and retrieve file URLs for a dataset with documented material and object coverage.

Compare lighting environments

Find HDRIs for a rooftop sunset or overcast exterior, then retrieve their available files for lighting comparisons in the same scene.

Choose materials for a close-up

Compare candidate wood or concrete textures and inspect their available maps and resolutions before choosing files for a detailed render.

Questions about Poly Haven asset downloads in opencode

Can opencode use Poly Haven asset downloads?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Poly Haven asset downloads like any built-in tool.

How much does Poly Haven asset downloads 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 Poly Haven asset downloads in opencode?

No. Spiral runs Poly Haven asset downloads on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Poly Haven asset downloads in opencode?

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

Does opencode wait while Poly Haven asset downloads runs?

Poly Haven asset downloads runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What does Poly Haven cover?

Poly Haven covers three types of 3D assets: HDRIs, textures, and models. Asset metadata includes tags, categories, authors, and dimensions.

How often does Poly Haven add assets?

Poly Haven says it publishes about one new public asset per weekday. Vault collections are released separately when their funding goals are reached.

What resolution does Poly Haven offer?

Poly Haven describes its HDRIs as 16K or higher and unclipped, and its photoscanned PBR textures as at least 8K. The downloadable files are organized by resolution and format.

Does a broad category include its subcategories?

Yes. Poly Haven's taxonomy is a tree for each asset type, and filtering by a parent category includes assets nested beneath it.

Does Poly Haven guarantee the metadata is complete?

No. Its API terms explicitly disclaim warranties about accuracy, completeness, and reliability, including the data and assets.

Get started

Start using Poly Haven asset downloads 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