Every Vagaro discovery feature, plus the marketplace-wide availability search, price comparison, and local database no Vagaro tool has.
Vagaro's website is a per-business click-through funnel with no way to ask a question across the whole marketplace. This CLI syncs businesses, services, providers, reviews, and availability into a local SQLite store, so you can find any open slot matching your constraints (find), compare businesses head to head (compare), check whether a price is fair (price-check), and rebook your usual with the same provider (me rebook) — all with agent-native --json output.
Learn more at Vagaro.
Created by @tmchow (Trevin Chow).
Authentication
Public discovery (search, business detail, services, reviews, classes) needs no auth. For your own bookings and profile, run 'vagaro-pp-cli auth login --chrome' to import your logged-in Vagaro session from Chrome (a JWT plus session cookies). Booking is a real action: vagaro-pp-cli book <slug> --confirm places the appointment, while book on its own prints what it would do by default.
Quick Start
# Health check — confirms the CLI is wired up before any network calls.
vagaro-pp-cli doctor --dry-run
# Look up a business by its vagaro.com/<slug> handle.
vagaro-pp-cli business get centralbarber
# See that business's service menu with prices as JSON.
vagaro-pp-cli business services centralbarber --json
# Browse upcoming livestream classes.
vagaro-pp-cli classes --page-size 10 --json
Unique Features
These capabilities aren't available in any other tool for this API.
Local state that compounds
-
find — Find nearby businesses with a service open soonest, filtered by price, rating, and a date/time window.
Reach for this when a user wants any open slot matching constraints across many businesses, not a specific known place.
vagaro-pp-cli find massage --max-price 120 --min-rating 4.5 --from thu --to sat --agent
-
compare — Compare named businesses side by side: rating, review count, price range, matching-service price, and next-available.
Use when the user already has 2-3 businesses in mind and wants a decision table.
vagaro-pp-cli compare centralbarber rudysbarbershop --agent
-
price-check — Show the price spread (min/median/max) for a service across a metro and flag who's below median.
Use to judge whether a quoted price is fair or to find below-median providers.
vagaro-pp-cli price-check haircut --city seattle --agent
-
market — One-shot landscape of a metro: business count, rating distribution, and price ranges by category.
Use when someone is new to an area and wants the lay of the land before picking a regular spot.
vagaro-pp-cli market seattle --agent
-
menu-diff — Diff a business's service menu across synced snapshots to catch price changes and added/removed services.
Use to detect silent price hikes or menu changes at a business you follow.
vagaro-pp-cli menu-diff centralbarber --agent
Booking that remembers you
-
me rebook — Re-run your usual: reads your past appointment (business + service + provider) and lists that provider's open slots in a window so you can pick and book.
Use to quickly rebook the same service with the same provider at a place you've been; picks a time from what's open.
vagaro-pp-cli me rebook --last --from thu --to sat --agent
-
watch — Check one business/provider's next-available against a stored baseline and report if a slot opened up sooner.
Use when waiting on a booked-out provider to open a sooner slot.
vagaro-pp-cli watch centralbarber --service haircut --before 2026-07-05 --agent
Recipes
Find an open massage this weekend under budget
vagaro-pp-cli find massage --max-price 120 --min-rating 4.5 --from sat --to sun --agent
Fans out across nearby businesses and ranks those with an open slot in the window under your price and rating floor.
Compare two barbers before committing
vagaro-pp-cli compare centralbarber rudysbarbershop --agent --select name,rating,priceRange,nextAvailable
Side-by-side decision table narrowed to the fields an agent needs, avoiding the verbose full payload.
Rebook your usual haircut in a window
vagaro-pp-cli me rebook --last --from thu --to sat --agent
Reads your last appointment's business/service/provider and lists that provider's open times so you can pick one.
Check if a haircut price is fair in your city
vagaro-pp-cli price-check haircut --city seattle --agent
Shows the metro price distribution and flags below-median providers.
Usage
Run vagaro-pp-cli --help for the full command reference and flag list.
Paths & environment variables
This CLI separates local files into four path kinds:
| Kind | Contents |
|---|
config | User-editable settings such as config.toml and saved profiles |
data | Durable local data: credentials.toml, data.db, cookies, browser-session proof files, and other auth sidecars |
state | Runtime state such as persisted queries, jobs, and teach.log |
cache | Regenerable HTTP/cache files |
Each kind resolves independently. The ladder is:
- Per-kind env var:
VAGARO_CONFIG_DIR, VAGARO_DATA_DIR, VAGARO_STATE_DIR, or VAGARO_CACHE_DIR
--home <dir> for this invocation
VAGARO_HOME for a flat relocated root
- XDG env vars:
XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME
- Platform defaults matching existing installs
For containers and agent sandboxes, prefer a single relocated root:
export VAGARO_HOME=/srv/vagaro
vagaro-pp-cli doctor
Under VAGARO_HOME=/srv/vagaro, the four dirs resolve to /srv/vagaro/config, /srv/vagaro/data, /srv/vagaro/state, and /srv/vagaro/cache.
MCP servers do not receive CLI flags from the host. Put relocation in the host env block:
{
"mcpServers": {
"vagaro": {
"command": "vagaro-pp-mcp",
"env": {
"VAGARO_HOME": "/srv/vagaro"
}
}
}
}
Precedence matters in fleets: an ambient per-kind variable such as VAGARO_DATA_DIR overrides an explicit --home for that kind. Use VAGARO_HOME or the per-kind variables for durable fleet relocation; treat --home as the weaker per-invocation lever.
Relocation is one-way. Unsetting VAGARO_HOME does not move files back to platform defaults, and doctor cannot find credentials left under a former root. Move the files manually before unsetting relocation variables.
Existing installs keep working because the platform-default rung matches the legacy layout. On the first auth write, stored secrets leave config.toml and are consolidated into credentials.toml under the data directory. Run vagaro-pp-cli doctor --fail-on warn to check path and credential-location warnings in automation.
Commands
business
Look up a Vagaro business (salon/spa/barber/fitness) by its slug
vagaro-pp-cli business availability - Get a business's next-available booking summary
vagaro-pp-cli business get - Get a business profile (name, rating, address, categories)
vagaro-pp-cli business services - List a business's services with prices and durations
classes
Browse upcoming livestream classes
vagaro-pp-cli classes - List upcoming livestream classes
listings
Browse businesses by service and location (live JSON-LD listings)
vagaro-pp-cli listings <service> <location> - List businesses for a service in a city (city--state slug)
me
Your own Vagaro account (requires auth login --chrome)
vagaro-pp-cli me - List your appointments (upcoming or past)
Output Formats
# Human-readable table (default in terminal, JSON when piped)
vagaro-pp-cli business get mock-value
# JSON for scripting and agents
vagaro-pp-cli business get mock-value --json
# Filter to specific fields
vagaro-pp-cli business get mock-value --json --select id,name,status
# Dry run — show the request without sending
vagaro-pp-cli business get mock-value --dry-run
# Agent mode — JSON + compact + no prompts in one flag
vagaro-pp-cli business get mock-value --agent
Agent Usage
This CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--json output to stdout, errors to stderr
- Filterable -
--select id,name returns only fields you need
- Previewable -
--dry-run shows the request without sending
- Explicit retries - add
--idempotent to create retries when a no-op success is acceptable
- Confirmable -
--yes for explicit confirmation of destructive actions
- Piped input - write commands can accept structured input when their help lists
--stdin
- Offline-friendly - sync/search commands can use the local SQLite store when available
- Agent-safe by default - no colors or formatting unless
--human-friendly is set
Exit codes: 0 success, 2 usage error, 3 not found, 4 auth error, 5 API error, 7 rate limited, 10 config error.
Health Check
vagaro-pp-cli doctor
Verifies configuration, credentials, and connectivity to the API.
Configuration
Run vagaro-pp-cli doctor to see the resolved config, data, state, and cache directories. The platform-default config path is ~/.config/vagaro/config.toml; --home, VAGARO_HOME, and per-kind env vars can relocate it.
Static request headers can be configured under headers; per-command header overrides take precedence.
Troubleshooting
Authentication errors (exit code 4)
- Run
vagaro-pp-cli doctor to check credentials
Not found errors (exit code 3)
- Check the resource ID is correct
- Run the
list command to see available items
API-specific
- Search always returns businesses from the wrong city — Vagaro geo-scopes by your IP; pass an explicit location slug like 'search listings barber seattle--washington' or use 'find --city '.
- me appointments / book returns unauthorized — Run 'vagaro-pp-cli auth login --chrome' to import your Vagaro session; the token expires after ~30 days, so re-run it if it lapses.
- book says the business requires prepayment — That business takes payment up front; complete it at the printed book-now URL (payment is out of scope for the CLI).
Known Gaps
booking-link --confirm does not place appointments programmatically (Vagaro has no booking-submit API — the checkout is a JavaScript widget). Instead it verifies the slot is open and returns a one-click-away handoff: the tightest booking URL (/{slug}/services) plus numbered steps naming the exact service, provider, and time to select, so finishing in the browser takes as few clicks as possible. The code has a placeBooking() seam for wiring a real submit if the endpoint is ever captured.
favorites may be unavailable. Vagaro serves saved businesses through a signed endpoint this CLI intentionally avoids; the command attempts an authenticated read and reports honestly if no open endpoint is reachable.
me commands need a session. Run vagaro-pp-cli auth login --chrome to import your Vagaro login; me appointments and me rebook require it.
- Location is IP-based. Search scopes to your machine's metro; the
--city argument is advisory (Vagaro geolocates by IP).