# Google Flights

Browser-automated Google Flights search via agent-browser.

- Repository: https://github.com/borski/travel-hacking-toolkit (839 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-26
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add borski/travel-hacking-toolkit --skill google-flights -g -a claude-code -y`
Codex: `npx skills add borski/travel-hacking-toolkit --skill google-flights -g -a codex -y`
Cursor: `npx skills add borski/travel-hacking-toolkit --skill google-flights -g -a cursor -y`
Gemini CLI: `npx skills add borski/travel-hacking-toolkit --skill google-flights -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add borski/travel-hacking-toolkit`

## Description

Browser-automated Google Flights search via agent-browser. All airlines including Southwest. Cash prices, schedules, economy/business comparison, market selection.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Google Flights Search

Search Google Flights via agent-browser to find flight prices, schedules, and availability.

## Prerequisites

Requires `agent-browser` CLI:
```bash
npm install -g agent-browser && agent-browser install
```

## When to Use

- User asks to search/find/compare flights or airfare
- User wants to know flight prices between cities
- User asks about flight schedules or availability
- User wants to find the cheapest flight for specific dates
- **Southwest flights**: Google Flights is one of the only sources for SW cash prices. No GDS or API returns Southwest.

## When NOT to Use

- **Completing purchases**: This skill finds flights and extracts booking links, but do not attempt to complete a purchase on a booking site.
- **Hotels/rental cars**: Use other tools for non-flight travel searches.
- **Historical price data**: Google Flights shows current prices, not historical.

## Session Convention

- **Economy + Business comparison** (default): `--session econ` and `--session biz`
- **Single cabin search**: `--session flights`
- **Interactive fallback**: `--session flights`

## Fast Path: URL-Based Search (Preferred)

Construct a URL with a natural language `?q=` parameter. Loads results directly. 3 commands total.

### URL Template

```
https://www.google.com/travel/flights?q=Flights+from+{ORIGIN}+to+{DEST}+on+{DATE}[+returning+{DATE}][+one+way][+business+class][+N+passengers][&gl=XX]
```

### Default: Economy + Business Comparison

Run two parallel sessions (economy and business) to show the price delta:

```bash
# Launch both in parallel
agent-browser --session econ open "https://www.google.com/travel/flights?q=Flights+from+BKK+to+NRT+on+2026-03-20+returning+2026-03-27" &
agent-browser --session biz open "https://www.google.com/travel/flights?q=Flights+from+BKK+to+NRT+on+2026-03-20+returning+2026-03-27+business+class" &
wait

The rest: https://github.com/borski/travel-hacking-toolkit/blob/HEAD/plugins/travel-hacking-toolkit/skills/google-flights/SKILL.md
