[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Poly Haven asset categories](https://spiral.ai/integrations/vscode/poly-haven-asset-categories)

# How to Use Poly Haven asset categories in VS Code

Returns Poly Haven's category hierarchy for browsing the asset library. Use it to find the right branch for materials, environments, or props before searching for individual assets.

|  |  |
| --- | --- |
| Model | Poly Haven asset categories |
| 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 categories in VS Code

- Use Poly Haven asset categories to retrieve the wood hierarchy, then adapt my project's material browser to display the returned categories.
- Use Poly Haven asset categories 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 categories and tell me what changed since last week.
- Check Poly Haven asset categories and summarize what you find in three bullet points.
- Pull the newest data from Poly Haven asset categories and give me the result as a table.

## How to set up Poly Haven asset categories in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 categories**: 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/list_categories",
    "input": {
      "type": "hdris"
    }
  }'
```

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

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

## Poly Haven asset categories tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| levels | 1 to 6 | — | Levels below the top (or below parent) to include; default 2. |
| parent |  | — | Slug path of a category to list the subcategories of, e.g. wood or furniture. |

## What can you do with Poly Haven asset categories in VS Code?

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.

## Overview

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

## Poly Haven asset categories in other agents

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

## More VS Code guides

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

## Questions about Poly Haven asset categories in VS Code

**Can VS Code use Poly Haven asset categories?**

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

**How much does Poly Haven asset categories cost in VS Code?**

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

**Do I need an Alexandria account to use Poly Haven asset categories in VS Code?**

No. Spiral runs Poly Haven asset categories 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 categories in VS Code?**

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

**Does VS Code wait while Poly Haven asset categories runs?**

Poly Haven asset categories runs in the background. VS Code 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.

