[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [GO Transit station departures](https://spiral.ai/integrations/codex/go-transit-station-departures)

# How to Use GO Transit station departures in Codex

Returns station departure information with expected times and tracks. Use it to check the next trains at a GO station; GO Transit Union departures provides the dedicated Union Station board.

|  |  |
| --- | --- |
| Model | GO Transit station departures |
| 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 GO Transit station departures in Codex

- Use GO Transit station departures for Oakville and GO Transit station alerts for current notices, then add a commute panel showing expected departures, tracks, and station messages.
- Use GO Transit station departures to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from GO Transit station departures and tell me what changed since last week.
- Check GO Transit station departures and summarize what you find in three bullet points.
- Pull the newest data from GO Transit station departures and give me the result as a table.

## How to set up GO Transit station departures 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 GO Transit station departures**: 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": "gotracker-ca/transit-realtime/station_departures",
    "input": {
      "station": "<station>"
    }
  }'
```

Then paste one of the prompts above: Codex finds GO Transit station departures on Spiral, shows the price and runs it.

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

## GO Transit station departures tools and prices

- [GO Tracker (GO Transit) · Station departures](https://spiral.ai/tools/alexandria/gotracker-ca/transit-realtime/station_departures) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| line |  | — | Line code or name: BR Barrie, GT Kitchener, LE Lakeshore East, LW Lakeshore West, MI Milton, RH Richmond Hill, ST Stouffville. |

## What can you do with GO Transit station departures in Codex?

Build a GO rail board that combines line names, station notices, and current train information. Your coding agent can turn the returned data into departure tables, train maps, and trip views in your project.

### Morning commute briefing

Prepare an Oakville-to-Union briefing with the line and stations, current station notices, expected departures, train locations, and the selected trip's stop times.

### Event exit planning

Help attendees leaving an event near Union compare outbound departures and platforms, inspect stopping patterns, locate trains, and check station notices for their destination.

### Hotel transit concierge

Answer guests' GO rail questions using station names, departure estimates, platforms, notices, train locations, and stop-by-stop information for the service they select.

### Station information display

Build a public departure display with recognizable line and station names, expected times, boarding platforms, and a separate area for station service messages.

### Rail disruption desk

Give a transit support team a current view of affected stations, departure estimates, Union platforms, train positions, and individual trip progress.

## Overview

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

## GO Transit station departures in other agents

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

## More Codex guides

- [GO Transit station alerts](https://spiral.ai/integrations/codex/go-transit-station-alerts)
- [GO Transit train positions](https://spiral.ai/integrations/codex/go-transit-train-positions)
- [GO Transit lines and stations](https://spiral.ai/integrations/codex/go-transit-lines-and-stations)
- [GO Transit trip details](https://spiral.ai/integrations/codex/go-transit-trip-details)
- [GO Transit Union departures](https://spiral.ai/integrations/codex/go-transit-union-departures)
- [Gartner conference calendar](https://spiral.ai/integrations/codex/gartner-conference-calendar)

## Questions about GO Transit station departures in Codex

**Can Codex use GO Transit station departures?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run GO Transit station departures like any built-in tool.

**How much does GO Transit station departures 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 GO Transit station departures in Codex?**

No. Spiral runs GO Transit station departures on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GO Transit station departures in Codex?**

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

**Does Codex wait while GO Transit station departures runs?**

GO Transit station departures runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**What area and transport services does GO Tracker cover?**

The provider documents GO Transit rail data for the Toronto region, covering seven rail lines and their stations.

**How fresh is GO Tracker information?**

Metrolinx describes GO Tracker information as updated in real time. Its description does not specify a fixed refresh interval in seconds.

**Are the departure times guaranteed?**

Metrolinx calls GO Tracker departure times estimates based on actual train activity. A displayed expected departure is therefore an estimate that can change.

**What time period do the trip details cover?**

The provider documents today's stop-by-stop trip times. That documented scope does not establish access to previous days' trip records.

**Does every train stop at every station on its line?**

GO Tracker distinguishes express trips from all-stops trips. Check the individual trip's stopping pattern before choosing a train for an intermediate station.

