[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Poly Haven asset downloads](https://spiral.ai/integrations/opencode/poly-haven-asset-downloads)

# 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.

|  |  |
| --- | --- |
| Model | Poly Haven asset downloads |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Poly Haven asset downloads in opencode

- Use Poly Haven asset downloads for brown_planks_03 and create a manifest in my project containing the available 4K PNG texture map URLs.
- 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
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.

```bash
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.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Poly Haven asset downloads tools and prices

- [Poly Haven · Get asset](https://spiral.ai/tools/alexandria/polyhaven-com/graphics-assets/get_asset) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| id |  | — | Asset slug, e.g. brick_wall_001. Pattern: ^[A-Za-z0-9_.-]+$. |
| url |  | — | Asset page (https://polyhaven.com/a/<id>) or /info or /files API URL; used when id is absent. |
| format |  | — | Keep files of this format only, e.g. jpg, png, exr, hdr, gltf, blend, fbx, usd. |
| resolution |  | — | Keep files of this resolution only, e.g. 1k, 4k, 16k. |

## 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Poly Haven asset downloads in other agents

- [Amp](https://spiral.ai/integrations/amp/poly-haven-asset-downloads)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/poly-haven-asset-downloads)
- [Claude](https://spiral.ai/integrations/claude-desktop/poly-haven-asset-downloads)
- [Claude Code](https://spiral.ai/integrations/claude-code/poly-haven-asset-downloads)
- [Cline](https://spiral.ai/integrations/cline/poly-haven-asset-downloads)
- [Codex](https://spiral.ai/integrations/codex/poly-haven-asset-downloads)
- [Cursor](https://spiral.ai/integrations/cursor/poly-haven-asset-downloads)
- [Devin](https://spiral.ai/integrations/devin/poly-haven-asset-downloads)
- [dots](https://spiral.ai/integrations/dots/poly-haven-asset-downloads)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/poly-haven-asset-downloads)
- [Gemini](https://spiral.ai/integrations/gemini/poly-haven-asset-downloads)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/poly-haven-asset-downloads)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/poly-haven-asset-downloads)
- [goose](https://spiral.ai/integrations/goose/poly-haven-asset-downloads)
- [Grok](https://spiral.ai/integrations/grok/poly-haven-asset-downloads)
- [Grok Build](https://spiral.ai/integrations/grok-build/poly-haven-asset-downloads)
- [Hermes](https://spiral.ai/integrations/hermes/poly-haven-asset-downloads)
- [Instinct](https://spiral.ai/integrations/instinct/poly-haven-asset-downloads)
- [Manus](https://spiral.ai/integrations/manus/poly-haven-asset-downloads)
- [Muse](https://spiral.ai/integrations/muse/poly-haven-asset-downloads)
- [Muse Code](https://spiral.ai/integrations/muse-code/poly-haven-asset-downloads)
- [n8n](https://spiral.ai/integrations/n8n/poly-haven-asset-downloads)
- [Notion](https://spiral.ai/integrations/notion/poly-haven-asset-downloads)
- [OpenClaw](https://spiral.ai/integrations/openclaw/poly-haven-asset-downloads)
- [Perplexity](https://spiral.ai/integrations/perplexity/poly-haven-asset-downloads)
- [Raycast](https://spiral.ai/integrations/raycast/poly-haven-asset-downloads)
- [VS Code](https://spiral.ai/integrations/vscode/poly-haven-asset-downloads)
- [Windsurf](https://spiral.ai/integrations/windsurf/poly-haven-asset-downloads)
- [Zapier](https://spiral.ai/integrations/zapier/poly-haven-asset-downloads)

## More opencode guides

- [Poly Haven asset categories](https://spiral.ai/integrations/opencode/poly-haven-asset-categories)
- [Poly Haven asset search](https://spiral.ai/integrations/opencode/poly-haven-asset-search)
- [Openverse related audio](https://spiral.ai/integrations/opencode/openverse-related-audio)
- [Sketchfab creator profile](https://spiral.ai/integrations/opencode/sketchfab-creator-profile)
- [Openverse audio sources](https://spiral.ai/integrations/opencode/openverse-audio-sources)
- [Sketchfab licenses and categories](https://spiral.ai/integrations/opencode/sketchfab-licenses-and-categories)

## 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.

