[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [MarineCadastre AIS archive status](https://spiral.ai/integrations/opencode/marinecadastre-ais-archive-status)

# How to Use MarineCadastre AIS archive status in opencode

Reports available archive years and days and identifies the publication. Use it to choose an available study period or check for archive changes before collecting file details.

|  |  |
| --- | --- |
| Model | MarineCadastre AIS archive status |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MarineCadastre AIS archive status in opencode

- Use MarineCadastre AIS archive status to check 2024 availability for our Charleston Harbor study, then add the returned publication identifier and available date range to the project's ingestion manifest.
- Use MarineCadastre AIS archive status for 2025 and compare the returned publication with the value saved in our coastal planning pipeline.
- Use MarineCadastre AIS archive status to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from MarineCadastre AIS archive status and tell me what changed since last week.
- Check MarineCadastre AIS archive status and summarize what you find in three bullet points.

## How to set up MarineCadastre AIS archive status 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 MarineCadastre AIS archive status**: 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": "marinecadastre-gov/vessel-traffic/source_status",
    "input": {
      "year": 2015
    }
  }'
```

Then paste one of the prompts above: opencode finds MarineCadastre AIS archive status on Spiral, shows the price and runs it.

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

## MarineCadastre AIS archive status tools and prices

- [MarineCadastre AIS vessel traffic daily files · Source status](https://spiral.ai/tools/alexandria/marinecadastre-gov/vessel-traffic/source_status) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| year | 2015 to 2100 | — | Year of the listing (csv2/csv<year>/). Default: the newest year prefix in the container. |

## What can you do with MarineCadastre AIS archive status in opencode?

Build a checked download manifest for a coastal traffic study. A coding agent can compare archive publications, inspect daily file metadata, and adapt the project's loader using opening-row previews.

### Prepare a seasonal port traffic study

For a Charleston Harbor study, check the available study dates, collect the year's daily file descriptors, and inspect opening rows before downloading and filtering the full files.

### Collect inputs for offshore wind planning

For a Virginia offshore planning area, establish the available archive period, build the daily download manifest, and inspect selected files before a separate geographic analysis.

### Prepare a dredging traffic baseline

For a Savannah Harbor planning study, confirm historical dates, gather daily file URLs, and inspect file details before processing vessel observations around the proposed work area.

### Rebuild a study after an archive change

Compare the archive publication with the study's saved publication, refresh the daily manifest when it changes, and inspect affected file checksums before rebuilding derived planning results.

### Audit missing study dates

Compare available dates and daily file listings with the study calendar. Flag April 23, 2015 as a documented archive gap when preparing a 2015 coastal planning baseline.

## Overview

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

## MarineCadastre AIS archive status in other agents

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

## More opencode guides

- [Legistar public office holders](https://spiral.ai/integrations/opencode/legistar-public-office-holders)
- [MarineCadastre AIS file list](https://spiral.ai/integrations/opencode/marinecadastre-ais-file-list)
- [Legistar meeting calendar](https://spiral.ai/integrations/opencode/legistar-meeting-calendar)
- [MarineCadastre daily AIS file](https://spiral.ai/integrations/opencode/marinecadastre-daily-ais-file)
- [Legistar meeting agenda](https://spiral.ai/integrations/opencode/legistar-meeting-agenda)
- [Mass.gov agency details](https://spiral.ai/integrations/opencode/mass-gov-agency-details)

## Questions about MarineCadastre AIS archive status in opencode

**Can opencode use MarineCadastre AIS archive status?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run MarineCadastre AIS archive status like any built-in tool.

**How much does MarineCadastre AIS archive status 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 MarineCadastre AIS archive status in opencode?**

No. Spiral runs MarineCadastre AIS archive status on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up MarineCadastre AIS archive status in opencode?**

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

**Does opencode wait while MarineCadastre AIS archive status runs?**

MarineCadastre AIS archive status runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does MarineCadastre show where vessels are right now?**

No. MarineCadastre publishes historical AIS records and explicitly does not provide live vessel feeds.

**How detailed are the vessel observations?**

NOAA filters the original AIS records to a one-minute frequency. These files therefore do not preserve every broadcast received from a vessel.

**How far back does the daily CSV archive go?**

National daily CSV files begin in 2015. NOAA's earlier archive uses monthly geodatabases organized by UTM zone, so those years require a different loading approach.

**Does the 2024 archive include Alaska?**

No. NOAA's 2024 metadata says all Alaska records were removed, including observations collected by Coast Guard NAIS receivers.

**Are any entire days missing?**

Yes. NOAA explicitly identifies April 23, 2015 as missing from the archive. A study spanning that date needs to account for the gap.

