# Rise for terminals and agents

The terminal app and MCP server use the same search engine, account allowance, airport selection, cabin coverage, and private search history as [rise.aero](https://rise.aero). No supplier credentials are needed on your computer. Node.js 22 or later is required.

## Install

```sh
npm install --global https://rise.aero/downloads/rise-cli-1.0.0.tgz
rise tui --demo
```

Setup page: https://rise.aero/developers. The package is hosted by Rise; it is not published to the npm registry.

### Build from a source checkout

```sh
npm ci
npm run build:clients
npm install --global ./dist/cli
rise --help
rise tui --demo
```

The CLI is not published to the npm registry. `npm run pack:clients` produces a portable npm tarball in `dist/`, which can be installed on another computer with `npm install --global /path/to/rise-aero-cli-1.0.0.tgz`.

## Connect your account

1. Sign in at **https://rise.aero/account**. Under **Agents & terminal**, create a key. It is shown once, expires after 90 days, and can be revoked immediately.
2. Run `rise login` and paste the key into the masked prompt. The CLI verifies it before saving it with owner-only file permissions in `~/.config/rise/credentials.json` (or `$XDG_CONFIG_HOME/rise/credentials.json`).
3. Run `rise` to start the terminal app, or `rise account` to inspect your allowance.

For automation, supply `RISE_API_KEY` through your client's secret environment settings. Never put the key in a URL, prompt, shared config, or source control. `rise logout` removes the saved credential; revoke the key on the website to invalidate it everywhere. The key can search and read account usage/saved trips; it cannot change billing, mint keys, delete data, or manage your account.

## Terminal controls

Enter addresses, dates, traveler count, and driving radius. Confirm the resolved addresses before the flight search starts. All four cabins are searched together. Up to nine travelers are supported, including children ages 2–11.

| Key                 | Action                                                                        |
| ------------------- | ----------------------------------------------------------------------------- |
| Tab / Enter         | Next form field; Enter on the last field starts address resolution            |
| Ctrl+S              | Start address resolution from any field                                       |
| Ctrl+P / Ctrl+L     | Toggle TSA PreCheck / CLEAR planning preferences                              |
| ↑ / ↓               | Choose a place, flight, or seller                                             |
| Enter on a flight   | Compatible returns for round trips; seller quotes for one way/selected return |
| s / c / 0           | Cycle sort / cabin filter / nonstop only                                      |
| p                   | Pin or unpin a fare; up to three                                              |
| d                   | Show each segment and its duration                                            |
| z / [ / ]           | Toggle 16-hour focus vs full range / pan left / pan right                     |
| h / l               | Session history / saved trips (opens for review before searching)             |
| r / o / n           | Refresh fares / open Rise in browser / new search                             |
| Escape / q / Ctrl+C | Back / quit results / exit anywhere                                           |

Every timeline uses the same clock and scale. Ruler times use the departure location's zone; row arrival times use the destination zone. The detailed breakdown uses the ruler zone. Colored blocks match the website: green drive, textured gray airport/baggage/exit, pale blue security, blue flight, and amber layover. A swatch legend stays below the results. Very short segments may occupy less than one terminal cell; press `d` for every segment's exact duration.

Booking opens a browser, which must be signed in to the same Rise account. It never submits a ticket purchase. On a headless machine, use the returned search/seller links on a computer with a browser.

## Hosted MCP: connect your agent

Use [Connect your agent](https://rise.aero/connect) for setup guides for Claude, ChatGPT, Instinct, Muse, Codex, Claude Code, Cursor, GitHub Copilot in VS Code, Gemini CLI, and Devin Desktop. Add `https://rise.aero/mcp` using **Streamable HTTP** and **OAuth**, then sign in to Rise and approve access. Client availability depends on the app and workspace; Instinct custom connector support varies by version. These are custom connections, not directory listings. Each guide includes the relevant command or configuration and a free allowance check.

- Authorization code + PKCE (S256), Client ID Metadata Documents (CIMD), and dynamic client registration (DCR).
- Resource: `https://rise.aero/mcp`. Scopes: `rise:travel`, `offline_access`.
- Resource metadata: `https://rise.aero/.well-known/oauth-protected-resource/mcp`.
- Authorization-server metadata: `https://rise.aero/.well-known/oauth-authorization-server/api/auth`.
- Access tokens expire after 15 minutes. Refresh credentials last up to 30 days; replay protection is strict.
- Disconnect under **Connected agents** in your account. This blocks new calls immediately and invalidates refresh tokens. Information already shared remains with the agent.
- Agents can read account email/allowance and saved trips, use private addresses for trip searches, and retrieve booking quotes. They cannot change billing or purchase tickets. New searches use the same account allowance.
- Verify a connection by calling `rise_account`; it consumes no search credit.

## Local MCP setup

After `rise login`, add this stdio server to an MCP host such as Claude Desktop or Codex:

```json
{
  "mcpServers": {
    "rise": {
      "command": "rise",
      "args": ["mcp"]
    }
  }
}
```

GUI apps may not inherit your terminal PATH. In that case use the full path returned by `which rise`, or use `"command": "/absolute/path/to/node"` with `"args": ["/absolute/path/to/rise/dist/cli/index.js", "mcp"]`. The server reads the same local credentials. For Codex CLI: `codex mcp add rise -- /absolute/path/to/rise mcp`. Restart/reload the MCP host after adding it.

Local stdio remains available alongside hosted OAuth MCP. Remote API requests go securely to Rise over HTTPS. MCP stdout contains only protocol messages.

| Tool                   | Purpose                                                              |
| ---------------------- | -------------------------------------------------------------------- |
| `rise_account`         | Current allowance; no search charge                                  |
| `rise_resolve_place`   | Address candidates; choose a resolved Place before searching         |
| `rise_nearby_airports` | Driving estimates and candidate airports                             |
| `rise_search_trips`    | All-airport, all-cabin search; normally consumes one search          |
| `rise_compare_trips`   | Free restore/filter/sort/paging of an owned search; find cabin deals |
| `rise_return_flights`  | Compatible return fares for a selected outbound                      |
| `rise_booking_options` | Fresh seller quotes and handoff links; never purchases               |
| `rise_saved_trips`     | Read your saved trips and places                                     |

The `rise://methodology` resource explains coverage, costs, timezone handling, fare expiry, and planning assumptions. Tools return JSON both as text and structured content, with explicit tool errors. Searches return the best 20 fares initially; comparisons support a limit up to 50 and an offset. IDs belong to your account, including searches created on the website.

## JSON commands and HTTP API

```sh
rise places "Ocean Springs, MS"
rise places "Holden, MA"
rise search --file query.json
rise show --id YOUR_SEARCH_UUID --json
rise tui --id YOUR_SEARCH_UUID
rise saved
```

A search takes the actual Place objects returned by `rise places`:

```json
{
  "origin": {
    "id": "returned-id",
    "label": "returned label",
    "shortLabel": "Ocean Springs",
    "latitude": 30.41,
    "longitude": -88.83,
    "timezone": "America/Chicago"
  },
  "destination": {
    "id": "returned-id",
    "label": "returned label",
    "shortLabel": "Holden",
    "latitude": 42.35,
    "longitude": -71.86,
    "timezone": "America/New_York"
  },
  "departureDate": "2026-12-13",
  "adults": 1,
  "children": 0,
  "maxDriveMinutes": 180,
  "departureBuffer": 90,
  "arrivalBuffer": 30,
  "security": { "precheck": true, "clear": false, "waits": {} }
}
```

Use future dates and real resolved Places; the coordinates above only illustrate the schema. Optional `returnDate` makes it a round trip. `originAirports` and `destinationAirports` can each restrict the search to 1–7 IATA codes. Maximum nine travelers, driving radius 30–300 minutes, departure buffer 60–240, arrival buffer 15–120. Wait overrides use keys such as `GPT:precheck:regular`; these are planning assumptions.

Authenticated REST endpoints use `Authorization: Bearer <key>`:

| Method | Path                         | Body                                         |
| ------ | ---------------------------- | -------------------------------------------- |
| GET    | `/api/v1/account`            | —                                            |
| GET    | `/api/v1/saved`              | —                                            |
| POST   | `/api/v1/places`             | `{ "q": "address or city" }`                 |
| POST   | `/api/v1/airports`           | SearchInput                                  |
| POST   | `/api/v1/search`             | SearchInput                                  |
| GET    | `/api/v1/search/:id`         | —                                            |
| POST   | `/api/v1/search/:id/returns` | `{ "outboundId": "..." }`                    |
| POST   | `/api/v1/search/:id/booking` | `{ "outboundId": "...", "returnId": "..." }` |

Browser API routes remain session/Origin protected. Versioned routes require a valid key, respect ownership, and reuse the same search reservations, refunds, and supplier budgets. There is a 120 requests/minute account API limit plus existing search/provider limits. Responses use `{ "error": "message", "code": "CODE" }` with 401 invalid key, 402 exhausted allowance, 404 unavailable/private search, 410 expired fare, or 429 rate limit. Do not retry billable requests in a loop. A timed-out search may still finish; repeating the same search within one hour reuses it.

Prices are USD for the whole party. Round-trip outbound fares are preliminary round-trip totals; return and booking prices are also totals, **not amounts to add**. All results carry fare expiry and cabin coverage warnings. Missing inventory is not proof a cabin is unavailable. Security and driving times are planning estimates, not forecasts. Seller terms and final price govern the booking.

For local development set `RISE_URL=http://localhost:3100` and a local key. Remote URLs must use HTTPS. Changing the host never forwards a stored credential to a different service; supply the matching key explicitly. The CLI does not follow API redirects with credentials.
