How to Use USCG PSIX vessel search in Codex
Returns matching vessel identities from the Coast Guard's PSIX records. Use it to resolve a ship's name, call sign or identification number before requesting its certificates or inspection history.
Prompts to try with USCG PSIX vessel search in Codex
Copy an example into Codex, or ask in your own words.
Use USCG PSIX vessel search to find MAERSK KENSINGTON, then add its returned vessel identity to this project's ship-matching fixtures.
Use USCG PSIX vessel search 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 search and tell me what changed since last week.
Check USCG PSIX vessel search and summarize what you find in three bullet points.
Pull the newest data from USCG PSIX vessel search and give me the result as a table.
How to set up USCG PSIX vessel search in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run USCG PSIX vessel search
One request; the result comes back by polling or a webhook.
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/search", "input": { "hin": "<hin>" } }'
Then paste one of the prompts above: Codex finds USCG PSIX vessel search on Spiral, shows the price and runs it.
USCG PSIX vessel search providers and prices
Spiral runs USCG PSIX vessel search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 500 | Results to return (default 50). | |
| Build year | 1800 to 2100 | Construction completed year; needed to split large US segments under the 32 MiB response cap. |
Every API field of USCG CGMIX Port State Information Exchange (PSIX) · Search is on its tool page: open its card above.
What can you do with USCG PSIX vessel search 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.
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.
Resolve similar ship names
Find ships sharing a name, compare identification numbers and inspect the selected vessel's particulars before attaching its public records to a report.
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.
Prepare a vessel case brief
Identify a named commercial ship and summarize its published Coast Guard cases, with the controls and deficiencies attached to each selected activity.
More on USCG PSIX vessel search and Codex
Overview
USCG PSIX vessel search in other agents
Questions about USCG PSIX vessel search in Codex
Can Codex use USCG PSIX vessel search?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run USCG PSIX vessel search like any built-in tool.
How much does USCG PSIX vessel search 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 search in Codex?
No. Spiral runs USCG PSIX vessel search 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 search in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while USCG PSIX vessel search runs?
USCG PSIX vessel search 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.
Start using USCG PSIX vessel search in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


