[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [ambientCG asset collections](https://spiral.ai/integrations/opencode/ambientcg-asset-collections)

# How to Use ambientCG asset collections in opencode

Browse ambientCG collections with their titles and asset counts, including Kitchen and Industrial Manufacturing Facility. Use it to find scene themes before selecting individual assets.

|  |  |
| --- | --- |
| Model | ambientCG asset collections |
| 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 ambientCG asset collections in opencode

- Use ambientCG asset collections to retrieve collection titles and counts, then add a collection browser that makes Kitchen easy to find.
- Use ambientCG asset collections to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ambientCG asset collections and tell me what changed since last week.
- Check ambientCG asset collections and summarize what you find in three bullet points.
- Pull the newest data from ambientCG asset collections and give me the result as a table.

## How to set up ambientCG asset 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.

```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 ambientCG asset collections**: 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": "ambientcg-com/pbr-assets/list_collections",
    "input": {}
  }'
```

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

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

## ambientCG asset collections tools and prices

- [ambientCG CC0 materials, HDRIs and 3D models · List collections](https://spiral.ai/tools/alexandria/ambientcg-com/pbr-assets/list_collections) (Alexandria): $0.00873 per call.

## What can you do with ambientCG asset collections in opencode?

Build a scene asset picker with ambientCG categories, collection titles, and searchable asset records. Your coding agent can turn selected assets and their download choices into a manifest used by the project.

### Plan a kitchen visualization

Browse material categories and the Kitchen collection, search for surfaces that suit the scene, and inspect download options for the selected assets.

### Source an industrial game environment

Start with the Industrial Manufacturing Facility collection and relevant material categories. Find surfaces for the level, then check each selected asset's download options.

### Prepare assets for a rendering class

Build an exercise around a named collection, explain the available categories, and shortlist assets with download choices students can compare.

### Build a scene asset manifest

Use categories and collections to organize a scene brief. Search for candidates and attach the selected asset identifiers and download options to the production manifest.

### Add browsing to an asset picker

Present ambientCG category names, collection titles, and asset counts so artists can browse before searching for individual assets.

### Maintain a catalog browsing index

Periodically compare category and collection counts with previous results. Search the areas that changed to identify assets worth reviewing.

## Overview

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

## ambientCG asset collections in other agents

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

## More opencode guides

- [ambientCG asset categories](https://spiral.ai/integrations/opencode/ambientcg-asset-categories)
- [ambientCG asset details](https://spiral.ai/integrations/opencode/ambientcg-asset-details)
- [Zockify WoW Forever talent trees](https://spiral.ai/integrations/opencode/zockify-wow-forever-talent-trees)
- [ambientCG asset search](https://spiral.ai/integrations/opencode/ambientcg-asset-search)
- [Zockify WoW Forever stat weights](https://spiral.ai/integrations/opencode/zockify-wow-forever-stat-weights)
- [ccMixter music search](https://spiral.ai/integrations/opencode/ccmixter-music-search)

## Questions about ambientCG asset collections in opencode

**Can opencode use ambientCG asset collections?**

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

**How much does ambientCG asset 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 ambientCG asset collections in opencode?**

No. Spiral runs ambientCG asset 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 ambientCG asset collections in opencode?**

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

**Does opencode wait while ambientCG asset collections runs?**

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

**What is the difference between an ambientCG category and a collection?**

Categories organize assets by subjects and asset types, such as Metal materials. Collections organize named sets such as Kitchen and Industrial Manufacturing Facility, and both return asset counts.

**How much content is in an ambientCG collection?**

Collection sizes differ. The retrieved catalog response listed 116 assets in Kitchen and 110 in Industrial Manufacturing Facility.

**Does ambientCG provide different download resolutions?**

Yes. For example, Metal049A offers 1K, 2K, 4K, and 8K downloads in JPG and PNG ZIP packages, with a size shown for each download.

**Why can a descriptive ambientCG search return few results?**

ambientCG combines search keywords with AND, so every added keyword narrows the match. Search for a broad material first, then add the surface detail you need.

