[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Earth Search Sentinel-2 image clip](https://spiral.ai/integrations/opencode/earth-search-sentinel-2-image-clip)

# How to Use Earth Search Sentinel-2 image clip in opencode

Returns a true-color or NDVI image clipped to your selected area from a Sentinel-2 scene. Use it to inspect visible conditions or illustrate vegetation differences on a specific acquisition date.

|  |  |
| --- | --- |
| Model | Earth Search Sentinel-2 image clip |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Earth Search Sentinel-2 image clip in opencode

- Use Earth Search Sentinel-2 image clip to render a true-color view of central Boulder for scene S2A_T13TDE_20260904T175741_L2A, within longitude -105.280 to -105.270 and latitude 40.010 to 40.020. Add the dated image to this project's map.
- Use Earth Search Sentinel-2 image clip to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Earth Search Sentinel-2 image clip and tell me what changed since last week.
- Check Earth Search Sentinel-2 image clip and summarize what you find in three bullet points.
- Pull the newest data from Earth Search Sentinel-2 image clip and give me the result as a table.

## How to set up Earth Search Sentinel-2 image clip 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 Earth Search Sentinel-2 image clip**: 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": "earth-search-aws-element84-com/satellite-imagery/render_clip",
    "input": {
      "geometry": {},
      "scene_id": "<scene_id>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Earth Search Sentinel-2 image clip on Spiral, shows the price and runs it.

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

## Earth Search Sentinel-2 image clip tools and prices

- [Element 84 Earth Search (Sentinel-2 L2A) · Render clip](https://spiral.ai/tools/alexandria/earth-search-aws-element84-com/satellite-imagery/render_clip) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| layer | true_colour, ndvi | — | `true_colour` (default) reads the visual asset; `ndvi` reads red and nir. |
| max_px | 16 to 1024 | 512 | Longest side of the PNG; the native clip is enlarged by the largest whole factor that fits. |
| collection | sentinel-2-c1-l2a, sentinel-2-l2a | — | Collection of the scene id; inferred from the id form when omitted. |

## What can you do with Earth Search Sentinel-2 image clip in opencode?

Build a map that connects dated Sentinel-2 imagery with vegetation comparisons for a public land boundary. A coding agent can add archive coverage and raster metadata to the project so users can inspect the evidence behind each comparison.

### Plan crop scouting

Check acquisition availability, choose suitable scenes, inspect their band metadata, and compare vegetation indices with image clips to decide where field inspection would help.

### Review restoration progress

Compare vegetation indices and dated images for a restoration boundary. Check archive density and source resolutions before selecting acquisitions for a progress report.

### Compare park vegetation across seasons

Find acquisitions from comparable seasonal windows, check their processing metadata, and pair vegetation calculations with clips. Use availability summaries to identify periods with too little imagery for a useful comparison.

### Document vegetation after a wildfire

Select acquisitions before and after a fire, verify source bands and resolutions, and present vegetation indices beside dated clips. Check imagery availability before committing to a reporting interval.

### Prepare a land condition report

Support a public or commercial land assessment with dated imagery and vegetation comparisons. Include the acquisition coverage and raster metadata so a reviewer can examine the underlying evidence.

### Build a satellite imagery lesson

Use a public park to demonstrate archive gaps, scene selection, band resolution, vegetation calculations, and image interpretation. Let students compare a numerical vegetation signal with the corresponding image.

## Overview

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

## Earth Search Sentinel-2 image clip in other agents

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

## More opencode guides

- [DataSF record count](https://spiral.ai/integrations/opencode/datasf-record-count)
- [Earth Search Sentinel-2 imagery availability](https://spiral.ai/integrations/opencode/earth-search-sentinel-2-imagery-availability)
- [DataSF dataset search](https://spiral.ai/integrations/opencode/datasf-dataset-search)
- [Earth Search Sentinel-2 scene details](https://spiral.ai/integrations/opencode/earth-search-sentinel-2-scene-details)
- [DataSF dataset records](https://spiral.ai/integrations/opencode/datasf-dataset-records)
- [Earth Search Sentinel-2 scene search](https://spiral.ai/integrations/opencode/earth-search-sentinel-2-scene-search)

## Questions about Earth Search Sentinel-2 image clip in opencode

**Can opencode use Earth Search Sentinel-2 image clip?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Earth Search Sentinel-2 image clip like any built-in tool.

**How much does Earth Search Sentinel-2 image clip 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 Earth Search Sentinel-2 image clip in opencode?**

No. Spiral runs Earth Search Sentinel-2 image clip on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Earth Search Sentinel-2 image clip in opencode?**

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

**Does opencode wait while Earth Search Sentinel-2 image clip runs?**

Earth Search Sentinel-2 image clip runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Where does Sentinel-2 provide systematic land coverage?**

Systematic continental land coverage, including inland waters, extends from 56 degrees south to 82.8 degrees north. Archive completeness at a particular location still depends on the catalog.

**How often can a location have new imagery?**

The nominal mission is designed for a five-day revisit at the equator. The AWS registry describes additions usually arriving within a few hours of upstream availability, rather than promising delivery within a fixed time after acquisition.

**How much detail can Sentinel-2 resolve?**

Level-2A bands and associated image products have resolutions of 10, 20, or 60 meters. These are atmospherically corrected surface reflectance products.

**Does the catalog cloud percentage describe my selected area?**

The STAC cloud-cover percentage describes the entire scene. A low scene percentage does not establish that a smaller park, field, or restoration site is clear.

**Does an empty search prove there was no imagery?**

No. Element 84 documents missing catalog items, so an empty result cannot prove that no acquisition occurred. Collection 1 also has a processing boundary: its COGs use baseline 5.0 or later.

