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

# How to Use MarineCadastre daily AIS file in opencode

Returns one day's download URL, file size, checksums, modification details, and optional opening rows. Use it to inspect a file before downloading; the preview covers the beginning of the day.

|  |  |
| --- | --- |
| Model | MarineCadastre daily AIS file |
| 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 daily AIS file in opencode

- Use MarineCadastre daily AIS file for June 30, 2024, inspect the opening rows, and compare their structure with the CSV loader in this project.
- Use MarineCadastre daily AIS file for January 1, 2025, and add its download URL, size, checksum, and modification time to the project's import report.
- Use MarineCadastre daily AIS file to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from MarineCadastre daily AIS file and tell me what changed since last week.
- Check MarineCadastre daily AIS file and summarize what you find in three bullet points.

## How to set up MarineCadastre daily AIS file 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 daily AIS file**: 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/records_get",
    "input": {
      "date": "<date>"
    }
  }'
```

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

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

## MarineCadastre daily AIS file tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| preview |  | — | Decode the first rows from a 1 MiB Range read (default false). |
| preview_rows | 1 to 1000 | — | Rows to return with preview=true (default 100). |

## What can you do with MarineCadastre daily AIS file 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.

### Check files before a bulk import

Use the yearly manifest to select daily files, then inspect their metadata and opening rows before committing to a full download and parser run.

## Overview

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

## MarineCadastre daily AIS file in other agents

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

## More opencode guides

- [MarineCadastre AIS file list](https://spiral.ai/integrations/opencode/marinecadastre-ais-file-list)
- [Mass.gov agency details](https://spiral.ai/integrations/opencode/mass-gov-agency-details)
- [MarineCadastre AIS archive status](https://spiral.ai/integrations/opencode/marinecadastre-ais-archive-status)
- [Mass.gov application forms](https://spiral.ai/integrations/opencode/mass-gov-application-forms)
- [Legistar public office holders](https://spiral.ai/integrations/opencode/legistar-public-office-holders)
- [Mass.gov application instructions](https://spiral.ai/integrations/opencode/mass-gov-application-instructions)

## Questions about MarineCadastre daily AIS file in opencode

**Can opencode use MarineCadastre daily AIS file?**

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

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

No. Spiral runs MarineCadastre daily AIS file 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 daily AIS file in opencode?**

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

**Does opencode wait while MarineCadastre daily AIS file runs?**

MarineCadastre daily AIS file 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.

