[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [USCG PSIX vessel register](https://spiral.ai/integrations/codex/uscg-psix-vessel-register)

# How to Use USCG PSIX vessel register in Codex

Returns vessel records for a selected segment of the PSIX register across successive pages. Use it to collect a fleet by flag and vessel service rather than find one named ship.

|  |  |
| --- | --- |
| Model | USCG PSIX vessel register |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with USCG PSIX vessel register in Codex

- Use USCG PSIX vessel register to collect Panama-flagged tank ships and build a paginated import for our fleet table.
- Use USCG PSIX vessel register to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from USCG PSIX vessel register and tell me what changed since last week.
- Check USCG PSIX vessel register and summarize what you find in three bullet points.
- Pull the newest data from USCG PSIX vessel register and give me the result as a table.

## How to set up USCG PSIX vessel register in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 USCG PSIX vessel register**: 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": "cgmix-uscg-mil/maritime-safety/records_list",
    "input": {
      "flag": "<flag>"
    }
  }'
```

Then paste one of the prompts above: Codex finds USCG PSIX vessel register on Spiral, shows the price and runs it.

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

## USCG PSIX vessel register tools and prices

- [USCG CGMIX Port State Information Exchange (PSIX) · Records list](https://spiral.ai/tools/alexandria/cgmix-uscg-mil/maritime-safety/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| flag |  | — | Flag state as PSIX spells CountryLookupName (case-insensitive), e.g. UNITED STATES, PANAMA, MARSHALL ISLANDS. |
| cursor |  | — | next_cursor of the previous page; carries the segment, so flag and service may be omitted with it. |
| service |  | — | Service type, exact PSIX spelling (case-insensitive), e.g. Freight Ship, Tank Ship, Towing Vessel, Passenger (Inspected), Commercial Fishing Vessel. |
| page_size | 1 to 5000 | — | Records per page (default 1000). |
| build_year | 1800 to 2100 | — | Construction completed year; needed to split large US segments under the 32 MiB response cap. |

## What can you do with USCG PSIX vessel register in Codex?

Build a commercial fleet register that connects vessel identities with public Coast Guard records. Use PSIX's weekly publication cycle and case activity IDs to structure refreshes and detailed history views.

### Reconcile a fleet register

Check a fleet segment for changes, collect its vessel records, resolve uncertain ship matches and compare selected vessel details with an existing commercial fleet register.

### Review fleet certificates

Refresh a selected fleet segment when its source status changes, then examine recorded certificate types, issuing agencies and expiration dates for vessels requiring review.

### Prepare a tanker shortlist

Collect a flag's tank ships, match named candidates and examine their public Coast Guard histories. Check the segment again during subsequent shortlist reviews.

### Compare inspection histories

Maintain a defined vessel cohort, resolve the ships being compared and retrieve their published cases and deficiencies. Use segment status checks to guide later cohort refreshes.

### Measure a register segment

Collect a defined flag and service segment, summarize the vessel records returned and repeat the collection when its source status changes.

### Build a public maritime research dataset

Maintain a repeatable vessel cohort, resolve named ships and add selected certificate and case records. Describe the dataset as PSIX coverage of U.S.-flag vessels and foreign vessels operating in U.S. waters.

## Overview

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

## USCG PSIX vessel register in other agents

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

## More Codex guides

- [USCG PSIX vessel details](https://spiral.ai/integrations/codex/uscg-psix-vessel-details)
- [USCG PSIX vessel search](https://spiral.ai/integrations/codex/uscg-psix-vessel-search)
- [USCG PSIX register status](https://spiral.ai/integrations/codex/uscg-psix-register-status)
- [USDA food categories](https://spiral.ai/integrations/codex/usda-food-categories)
- [UN Tourism statistical files](https://spiral.ai/integrations/codex/un-tourism-statistical-files)
- [USDA food nutrition details](https://spiral.ai/integrations/codex/usda-food-nutrition-details)

## Questions about USCG PSIX vessel register in Codex

**Can Codex use USCG PSIX vessel register?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run USCG PSIX vessel register like any built-in tool.

**How much does USCG PSIX vessel register cost in Codex?**

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

**Do I need an Alexandria account to use USCG PSIX vessel register in Codex?**

No. Spiral runs USCG PSIX vessel register on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up USCG PSIX vessel register in Codex?**

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

**Does Codex wait while USCG PSIX vessel register runs?**

USCG PSIX vessel register runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Does PSIX cover ships worldwide?**

Its stated coverage is U.S.-flag vessels, foreign vessels operating in U.S. waters, and Coast Guard contacts with those vessels. It should not be used as a complete world fleet register.

**How fresh is PSIX data?**

PSIX is a weekly snapshot of MISLE data. Inspection results also depend on the responsible Coast Guard unit reviewing and closing the activity before publication.

**How far back does PSIX history go?**

The Coast Guard describes PSIX vessel information as dating from December 21, 2001, when MISLE came online. That starting point does not promise a record for every vessel on every date.

**Are pending inspections and investigations public?**

PSIX excludes unclosed cases and cases pending further action. A vessel's public history therefore cannot establish whether a pending case exists.

**Can a broad vessel search miss results?**

The official PSIX vessel search interface returns a maximum of 500 records. The Coast Guard recommends narrowing searches that exceed that limit.

