Skip to main content
MapX exposes its agent-callable surface through the mapx command-line client. Third-party platforms (WorkBuddy, local LLM tool loops, automation scripts) can run the single binary to control projects, upload data, change map styles, and save reports without embedding the product UI. The API calls each project a session internally; the CLI command names (such as mapx session create) keep that technical name.

Install and configure

Download the binary for your platform from OSS (the latest alias points to the newest release). Unix (Linux/macOS):
Windows (PowerShell):
Then configure the API key:
Every command accepts --api-key and --url overrides. The key is scoped to your account, and project ownership is enforced by the backend.

Typical workflow

  1. mapx session create --title "analysis" (or mapx session list) to get a session_id (the project id).
  2. mapx view live --session <id> — open the live map as soon as the project exists. The command returns a live_view_url (an SSE-synced live view). If the agent platform can render web pages, load that URL in the agent UI so the user can watch the map update in real time (for example, WorkBuddy). If the agent cannot render web pages, use mapx view live --session <id> --open to open the live map in the user’s default browser instead.
  3. mapx upload ./data.geojson --session <id> — upload local data directly. The command accepts only GeoJSON (vector) and GeoTIFF (raster) files. For CSV/Excel sources, identify the latitude/longitude columns, convert the data to GeoJSON, then upload the resulting .geojson file.
  4. mapx layers list --session <id> then mapx layers get <layer_id> --session <id> to inspect geometry, fields, and the current style.
  5. mapx layers style <layer_id> --session <id> --file style.json — apply incremental style changes.
  6. mapx report save ./report.html --session <id> — save an HTML report.

Command reference

Every command accepts --json for machine-readable output.

Output contract

With --json, stdout contains a single JSON object ({"ok":true,...} or {"ok":false,"error":"..."}); progress goes to stderr. Exit codes: 0 success, 1 business failure, 2 usage error.

Skills

Before complex tasks, print the command manual with mapx skill. The full skill index is stored in source/skills.json. See Skills.