Skip to main content
Glama
WARNING

Ryde CLI is currently broken. The Ryde server now requires app attestation, which blocks CLI login (APP_ATTEST_REQUIRED). I have not yet figured out how to bypass it. See API compatibility for the findings so far.

Ryde CLI — Your rides. Your data.

Ryde CLI

PyPI CI Dependency audit CodeQL Python 3.11+ MIT license uv

An unofficial CLI, local map dashboard, and MCP server for your Ryde account. Export ride history, map recorded routes, inspect passes and payments, and compare RidePass costs.

Login uses SMS. Account commands are read only.

Quick start · Dashboard · Commands · MCP · Agent setup · Development

Quick start

Requires uv on macOS or Linux. Python 3.11+ is required; uv can install a compatible interpreter. Windows is not currently supported because local secrets use Unix file permissions.

Run directly from PyPI, without cloning:

uvx --from ryde-cli ryde --help
uvx --from ryde-cli ryde login
uvx --from ryde-cli ryde stats

Or clone it for local use and development:

git clone https://github.com/HelgeSverre/ryde-cli.git
cd ryde-cli
uv sync --locked
uv run ryde --help
uv run ryde login
uv run ryde stats

The examples below use uv run from a checkout. To run them anywhere, replace uv run with uvx --from ryde-cli. For a persistent installation, see distribution.

Related MCP server: h1-hacker-mcp

Login

Ryde currently requires Android reCAPTCHA and device verification for SMS login. The CLI detects the reCAPTCHA requirement and stops before requesting an SMS. A browser CAPTCHA cannot use the Android app's key; support for this login flow is still in progress. See API compatibility.

# Prompts for your phone number, asks before sending an SMS, then asks for the code.
uv run ryde login

# Supply your number and optional location explicitly.
uv run ryde login --phone '<your E.164 phone number>' --latitude 60.39 --longitude 5.32

# Non-interactive login: request one SMS, then complete that request separately.
uv run ryde login --phone '<your E.164 phone number>' --send-sms
uv run ryde login --phone '<your E.164 phone number>' --sms-code '<code>'

Local numbers default to country code +47; set --country-code for another country. For an international number, supply the matching country code too. A second SMS request is refused for 60 seconds unless --force is supplied. Image challenges are also unsupported. Logging into the official app does not sign the CLI in.

The token, stable device ID, and client profile are saved to ~/.config/ryde-cli/config.json with owner-only permissions (0600). Login does not print the token. Use RYDE_CONFIG or --config FILE to select a different config file. Never commit that file.

Map your rides

After authentication, one command fetches completed rides and opens the bundled dashboard:

uv run ryde stats

# Include precise stored GPS route traces; default uses ride start/end points.
uv run ryde stats --include-location

# Agent / headless use: fetch, start the local server, and return its URL.
uv run ryde stats --include-location --no-open

# Reopen cached data without API calls, or fetch without starting a server.
uv run ryde stats --no-fetch
uv run ryde stats --include-location --fetch-only

# Stop a running dashboard; it also expires after one hour by default.
uv run ryde stats --stop '<dashboard-url>'

No Node installation or separate webapp is needed. The dashboard links an interactive map with filters, charts, raw ride details, and pass-independent ride metrics. It centres on your rides rather than a fixed city. Failed or missing traces fall back to start/end arcs; completed route requests are cached so an interrupted export can resume.

Data is saved outside the repo in a private, login-scoped directory under ~/.local/share/ryde-cli/stats/ (or XDG_DATA_HOME). Standard ride records include endpoint coordinates; --include-location also fetches the full recorded route.

The server uses a random 127.0.0.1 URL and serves only its dataset and bundled UI. Treat the URL as private. OpenFreeMap supplies public map tiles; no Ryde token or ride records are sent to it, but tile requests reveal the viewed area. Remote agents cannot expose their loopback URL on a user's laptop automatically. See dashboard storage and automation.

Dashboard preview

Ryde Stats showing a ride map, filters, and charts with 180 generated demo rides

180 generated demo rides, including 135 route traces.

All commands

Every row below is prefixed with uv run ryde. The full command reference includes every flag and help screen.

Command

Purpose / command-specific arguments

--help

Show help; also available for every command and group

--version

Show package version

login

SMS login; --phone, --country-code, --send-sms, --sms-code, --force, --device, --phone-info, --latitude, --longitude

account profile

Your account/profile record

account active-ride

Current ride status

cities [QUERY]

Look up city names and IDs; optional case-insensitive name filter

rides list

Completed rides; --start YYYY-MM-DD, --end YYYY-MM-DD

rides detail USE_ID

A completed ride

rides order ORDER_ID

A ride's linked charge/order

rides route USE_ID --include-location

Recorded GPS route; requires location acknowledgement

passes catalogue --city-id CITY_ID

Current RidePass products and prices

passes owned

Currently owned/active passes

passes history

Pass/recharge history; --page N or --all

payments vipps

Vipps order history; --page N or --all

payments recharge-detail RECHARGE_ID

One recharge/pass receipt

payments month-amount YYYY-MM

Monthly account amount data

payments recharge-month YYYY-MM

Monthly recharge data

fees --city-id CITY_ID

City fare rules

summary

Totals and monthly trends; --start, --end

optimize --city-id CITY_ID

Current-price pass comparison; --start, --end

stats

Fetch and open the map; --include-location, --fetch-only, --no-fetch, --no-open, --data-dir, --start, --end, --port, --ttl, --stop URL

skill --agent codex|claude

Install the workflow skill; --scope project|user (default project), --force

export RESOURCE

Save a resource; --start, --end, --city-id, --page, --all where applicable

export supports ten resources: cities, rides, profile, catalogue, owned-passes, recharges, vipps, fee-rule, summary, and recommendation. City-specific exports require --city-id. Look it up with uv run ryde cities. Page numbering starts at 0. Date ranges are inclusive and default to 2018-01-01 through today. Ride fetching starts with the requested start year's archive and includes the current partition when applicable. Future-year partitions are skipped. Available history depends on what Ryde retains.

Global options are --config FILE, --base-url URL, and --mobile-type TEXT. All commands support --format json|csv|tsv|table; all data commands also support --output FILE. Common options can appear before or after nested subcommands when supplied as separate arguments (--format csv).

Output and exports

JSON is the default. CSV/TSV flatten nested objects into dot-separated fields and encode nested arrays as JSON. Table output is a compact preview limited to eight columns and 48 characters per cell; use JSON for complete records.

uv run ryde account profile --format table
uv run ryde cities --format table
uv run ryde cities Bergen
uv run ryde rides list --start 2026-01-01 --end 2026-12-31 --format csv --output ryde-rides.csv
uv run ryde rides detail '<use-id>'
uv run ryde rides order '<order-id>'
uv run ryde rides route '<use-id>' --include-location --output ryde-route.json
uv run ryde passes catalogue --city-id '<city-id>' --format table
uv run ryde passes history --all --output ryde-passes.json
uv run ryde payments vipps --all --format tsv --output ryde-vipps.tsv
uv run ryde payments recharge-detail '<recharge-id>'
uv run ryde payments month-amount 2026-08
uv run ryde payments recharge-month 2026-08
uv run ryde fees --city-id '<city-id>'
uv run ryde export rides --format csv --output ryde-rides.csv
uv run ryde export recommendation --city-id '<city-id>' --output ryde-analysis.json

--output writes atomically with permissions 0600. export saves to ryde-RESOURCE.FORMAT if no path is supplied. Redirecting stdout uses your shell's file permissions instead. Exports can contain addresses, payment references, and account information; route exports include precise GPS history.

Summaries and RidePass analysis

uv run ryde summary --start 2026-08-01
uv run ryde optimize --city-id '<city-id>' --start 2026-08-01

summary reports paid and nominal amounts, distance, duration, averages, currency grouping, and monthly trends. API amounts are converted from minor units. Duration comes from a duration field or the ride's timestamps.

optimize compares your history with current city fares and pass prices. It returns single-product comparisons and a non-overlapping mixed purchase timeline. Included started minutes are consumed across rides inside each pass's validity window; a ride crossing the allowance pays metered overflow. Later rides in an exhausted pass window pay full PAYG.

The model assumes every ride is pass eligible. It does not reconstruct historic prices or unknown parking/geographic exclusions, and cannot guarantee future savings. Each result includes the assumptions used.

MCP server

The package also includes a stdio MCP server. Log in first using the same config path as your MCP client. Launch it through uv:

uvx --from ryde-cli ryde-mcp
# Or, from a local checkout:
uv run ryde-mcp

Register it with your agent (choose one):

# Claude Code
claude mcp add --transport stdio --scope user ryde -- uvx --from ryde-cli ryde-mcp

# Codex
codex mcp add ryde -- uvx --from ryde-cli ryde-mcp

# Gemini CLI
gemini mcp add --scope user ryde uvx -- --from ryde-cli ryde-mcp

# GitHub Copilot CLI
copilot mcp add ryde -- uvx --from ryde-cli ryde-mcp

# Amp
amp mcp add ryde -- uvx --from ryde-cli ryde-mcp

See agent setup for verification, removal, and Cursor, VS Code, Zed, and OpenCode configuration.

For clients that accept an mcpServers JSON configuration:

{
  "mcpServers": {
    "ryde": {
      "command": "uvx",
      "args": ["--from", "ryde-cli", "ryde-mcp"]
    }
  }
}

Use an absolute path to uvx if a desktop app cannot find it on PATH. For reproducible deployments, pin the package version (ryde-cli==0.1.1). The server uses stdout for MCP messages and stderr for diagnostics. The default CLI login is shared automatically. Set RYDE_CONFIG in the server's environment only if you used a custom config path.

Tools

Purpose

account_profile, current_ride

Account and current status

list_cities

Find city names and IDs before requesting passes, fares, or recommendations

list_rides, ride_detail, ride_order

Completed rides and charges

ride_route

GPS route; requires include_sensitive_location=true

pass_catalogue, owned_passes

Current products and owned passes

recharge_history, recharge_detail, vipps_payment_history

Purchase/payment history

account_month_amount, recharge_month, city_fee_rule

Monthly data and city fares

ride_summary, recommend_ridepass

Local summaries and cost comparisons

prepare_stats, open_stats

Start background export / fetch-and-open jobs

stats_job_status, close_stats

Poll a job / stop a dashboard

There are 21 tools. open_stats and prepare_stats return a job_id immediately; poll stats_job_status for completion. open_stats(refresh=false) opens an existing dataset immediately. This lets large exports complete without one long tool call.

Resources: ryde://account/summary and ryde://city/{city_id}/passes.

For MCP registration commands and the bundled workflow skill, see agent setup. From a checkout, explicit skill installation is:

uv run ryde skill --agent codex --scope user
uv run ryde skill --agent claude --scope user

Skill setup and MCP registration are separate steps.

Configuration

config.example.json documents non-secret config fields. Login creates the real config; copying the example does not authenticate you.

Setting

CLI / environment

Notes

Config path

--config, RYDE_CONFIG

Default: ~/.config/ryde-cli/config.json

Token

RYDE_TOKEN

Overrides saved token

API URL

--base-url, RYDE_BASE_URL

Overrides saved/default URL

Android descriptor

--mobile-type, RYDE_MOBILE_TYPE

Overrides saved/default descriptor

Device ID

Login --device, RYDE_DEVICE_ID

Generated if absent

Phone info

Login --phone-info, RYDE_PHONE_INFO

Android phone string

Country code

Login --country-code, RYDE_COUNTRY_CODE

Default: +47

Login location

--latitude, --longitude, RYDE_LATITUDE, RYDE_LONGITUDE

Defaults to 0, 0; used only for login

Use only an account you own or are authorized to access. Keep configs and exports out of version control. Data may contain private identifiers beyond GPS, so review output before sharing it with another person or an AI agent. See API compatibility for request signing and endpoint mapping.

Shell completion

For Bash in a local checkout, install the project environment and register completion:

uv sync --locked
eval "$(uv run register-python-argcomplete ryde)"

For Zsh, enable Bash-compatible completion first:

autoload -U bashcompinit
bashcompinit
eval "$(uv run register-python-argcomplete ryde)"

Troubleshooting

  • Authentication missing / 401: run uv run ryde login again. Check whether RYDE_TOKEN is overriding a newer saved token.

  • 403 / version or network error: the private API or compatible request profile may have changed. Check for updates; retry with the default profile.

  • Image challenge: complete login in the official app; this tool cannot bypass the challenge.

  • Duplicate SMS refused: wait one minute. Use --force only when you know the previous request did not reach Ryde.

  • Missing history: try --all for payment/pass history. For rides, set --start to include the years you want; the default starts in 2018.

  • Insecure config permissions: on macOS/Linux, run chmod 600 /path/to/config.json.

  • MCP authentication fails: check that login and the server use the same RYDE_CONFIG, then restart the MCP client.

Development and distribution

See CONTRIBUTING.md for uv setup, tests, linting, and packaging. CI tests Python 3.11–3.14 on Linux and Python 3.14 on macOS, checks generated docs, builds and smoke-tests distributions, and runs dependency audits and CodeQL.

See distribution and releases for installation options and the PyPI release workflow. Licensed under MIT.

Available Tools

20 tools
account_month_amountC
Read-onlyIdempotent

Return account amount data for YYYY-MM. Read-only.

Inputs: month (required). Returns: object

account_profileA
Read-onlyIdempotent

Return the signed-in owner's profile/account record. Read-only.

Inputs: no named parameters. Returns: object

city_fee_ruleC
Read-onlyIdempotent

Return fee/fare rules for a city. Read-only.

Inputs: city_id (required). Returns: object

close_statsA

Stop a local dashboard using its exact returned URL; never sends account credentials.

Inputs: url (required). Returns: object

current_rideA
Read-onlyIdempotent

Return current ride status only; this never starts, ends, or alters a ride.

Inputs: no named parameters. Returns: object

list_ridesA
Read-onlyIdempotent

List completed rides. Dates are inclusive YYYY-MM-DD; omit for all available history.

Inputs: end, start. Returns: result

open_statsA

Start a background fetch-and-open job; poll stats_job_status for its URL. refresh=false opens cached data immediately. Browser opens on the MCP host only.

Inputs: end, ttl, start, refresh, +2 more. Returns: object

owned_passesA
Read-onlyIdempotent

Return active/current passes owned by the signed-in account.

Inputs: no named parameters. Returns: object

pass_catalogueB
Read-onlyIdempotent

Return current RidePass products, prices, allowances and validity for a city.

Inputs: city_id (required). Returns: object

prepare_statsA

Start a resumable background export; poll stats_job_status with the returned job_id. Route GPS requires explicit consent.

Inputs: end, start, include_sensitive_location. Returns: object

recharge_detailB
Read-onlyIdempotent

Return one recharge/pass receipt by its recharge ID. Read-only.

Inputs: recharge_id (required). Returns: object

recharge_historyB
Read-onlyIdempotent

Return pass/recharge purchase history. all_pages may make multiple read-only requests.

Inputs: page, all_pages.

recharge_monthC
Read-onlyIdempotent

Return recharge data for YYYY-MM. Read-only.

Inputs: month (required). Returns: object

recommend_ridepassC
Read-onlyIdempotent

Compare current city RidePasses against observed rides with stated conservative assumptions.

Inputs: city_id (required), end, start. Returns: object

ride_detailA
Read-onlyIdempotent

Fetch detail for one completed ride ID. Read-only.

Inputs: use_id (required). Returns: object

ride_orderB
Read-onlyIdempotent

Fetch linked order/charge detail for a completed ride. Read-only.

Inputs: order_id (required). Returns: object

ride_routeC
Read-onlyIdempotent

Fetch stored route GPS only after explicit sensitive-location acknowledgement.

Inputs: use_id (required), include_sensitive_location. Returns: object

ride_summaryC
Read-onlyIdempotent

Compute local ride totals, distance, duration, discounts, monthly trend and averages.

Inputs: end, start. Returns: object

stats_job_statusA
Read-onlyIdempotent

Poll a background stats job. completed results contain counts and, for open_stats, a local dashboard URL.

Inputs: job_id (required). Returns: object

vipps_payment_historyC
Read-onlyIdempotent

Return read-only Vipps payment-order history for the signed-in account.

Inputs: page, all_pages.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have clearly distinct resource+action targets (list_rides vs ride_detail vs ride_order vs ride_route). The main overlap is among aggregate/period tools: ride_summary, account_month_amount, and recharge_month all return computed monetary/statistical data and could be confused, as could recharge_history vs recharge_month. Descriptions mitigate this reasonably well.

    Naming Consistency3/5

    All names use snake_case, which is consistent, but the convention mixes verb-first (list_rides, prepare_stats, recommend_ridepass, open_stats) with noun-phrase forms (account_profile, current_ride, ride_summary, pass_catalogue). Readable, but no single predictable pattern.

    Tool Count4/5

    20 tools is at the high end but justified by the breadth of the domain (account, rides, routes, passes, recharges, payments, stats jobs, city rules). Slightly heavy, with a small cluster of stats-job tools, but each earns its place.

    Completeness4/5

    Broad read coverage: list/detail/summary across rides, recharges, passes, payments, account, plus analytics and city rules. The surface is essentially read-only, so action operations (booking a ride, buying a pass, topping up) are absent, but this appears to be an intentional analytics/read scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides safe, read-only CRM access for AI assistants with per-key scopes, field masking, rate limits, and a full audit log of allowed and blocked actions.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A read-only MCP server that lets an agent browse the HackerOne Hacker API using an authenticated hacker account, exposing programs, policies, scope, reports, and payments. It cannot create, update, or submit reports.
      15
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides read-only access to a Mailfact tenant, letting users list domains, sending sources, and aggregate reports, and query DMARC alignment, reporter coverage, and record-level data through MCP tools. It returns counts and rows only, without recommending policies or scoring domains.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables authenticated, read-only access to stored account, options, and monitoring data for bounded research. It also permits pausing/resuming monitoring, with no brokerage write or proxy capabilities.
      MIT