[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [ClassPass supported cities](https://spiral.ai/integrations/opencode/classpass-supported-cities)

# How to Use ClassPass supported cities in opencode

Returns ClassPass markets and starting coordinates. Use it to check city coverage before looking for studios or classes near a specific address.

|  |  |
| --- | --- |
| Model | ClassPass supported cities |
| 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 ClassPass supported cities in opencode

- Use ClassPass supported cities to retrieve the markets in the United Kingdom and add a city picker to my personal travel planner.
- Use ClassPass supported cities to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ClassPass supported cities and tell me what changed since last week.
- Check ClassPass supported cities and summarize what you find in three bullet points.
- Pull the newest data from ClassPass supported cities and give me the result as a table.

## How to set up ClassPass supported cities in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

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

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 ClassPass supported cities**: 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": "classpass-com/fitness-classes/markets",
    "input": {
      "country_code": "<country_code>"
    }
  }'
```

Then paste one of the prompts above: opencode finds ClassPass supported cities on Spiral, shows the price and runs it.

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

## ClassPass supported cities tools and prices

- [ClassPass · Markets](https://spiral.ai/tools/alexandria/classpass-com/fitness-classes/markets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| country_code |  | — | ISO 3166-1 alpha-2 filter (e.g. `GB`). Pattern: ^[A-Za-z]{2}$. |

## What can you do with ClassPass supported cities in opencode?

Build a personal workout planner that moves from ClassPass city coverage to nearby studios and individual sessions. Use place coordinates, venue details, and timetables to organize choices around a trip or neighborhood.

### Plan workouts during a city trip

Check whether the destination has ClassPass coverage, locate the hotel neighborhood, shortlist studios, and inspect their timetables and individual sessions to find workouts between travel plans.

### Find a workout near a conference

Confirm the host city's coverage, center discovery on the conference venue, and compare nearby studios and session times against the event agenda.

### Choose a studio after moving

Check the destination market, locate the new neighborhood, and compare listed studios, class types, daily timetables, and specific sessions before choosing where to try a workout.

### Keep a workout routine while traveling

Check coverage in each destination, locate the areas you will visit, and find studios and sessions that match your preferred activity and available hours.

## Overview

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

## ClassPass supported cities in other agents

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

## More opencode guides

- [ClassPass studio timetable](https://spiral.ai/integrations/opencode/classpass-studio-timetable)
- [Domino's Canada delivery fees](https://spiral.ai/integrations/opencode/domino-s-canada-delivery-fees)
- [ClassPass studio details](https://spiral.ai/integrations/opencode/classpass-studio-details)
- [Domino's Canada menu categories](https://spiral.ai/integrations/opencode/domino-s-canada-menu-categories)
- [ClassPass nearby studios](https://spiral.ai/integrations/opencode/classpass-nearby-studios)
- [Domino's Canada menu category products](https://spiral.ai/integrations/opencode/domino-s-canada-menu-category-products)

## Questions about ClassPass supported cities in opencode

**Can opencode use ClassPass supported cities?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run ClassPass supported cities like any built-in tool.

**How much does ClassPass supported cities cost in opencode?**

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

**Do I need an Alexandria account to use ClassPass supported cities in opencode?**

No. Spiral runs ClassPass supported cities on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up ClassPass supported cities in opencode?**

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

**Does opencode wait while ClassPass supported cities runs?**

ClassPass supported cities runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How broad is ClassPass coverage?**

ClassPass reported more than 88,000 listed businesses in 643 cities and 31 countries as of January 2026. That describes its platform footprint, not the number of studios or sessions returned by a search.

**Does ClassPass include every class a studio offers?**

No. Some studios reserve certain classes for their direct customers, so a ClassPass timetable can omit sessions offered elsewhere by the studio.

**Why can a class appear after an earlier search found nothing?**

ClassPass says a cancellation can reopen a spot. Its Fitness Classes search shows sessions with open spots, so an absent result does not establish that the studio has no scheduled class.

**How far ahead do reservations usually open?**

For most businesses, reservations open at noon local time one week before the session date. This booking window does not establish an endpoint's maximum search horizon.

**What session information is publicly visible?**

Public ClassPass studio pages can show a daily timetable with class names, start times, UTC offsets, and durations. GROUNDUP Studio's public page provides an example.

