[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [OpenStreetMap map edits](https://spiral.ai/integrations/codex/openstreetmap-map-edits)

# How to Use OpenStreetMap map edits in Codex

Returns changeset records describing mapping sessions, including edit comments and editing software when supplied. Use it to investigate activity around an area; an overlapping changeset can include edits elsewhere.

|  |  |
| --- | --- |
| Model | OpenStreetMap map edits |
| 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 OpenStreetMap map edits in Codex

- Use OpenStreetMap map edits to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OpenStreetMap map edits and tell me what changed since last week.
- Check OpenStreetMap map edits and summarize what you find in three bullet points.
- Pull the newest data from OpenStreetMap map edits and give me the result as a table.
- Check OpenStreetMap map edits every morning and tell me only when something changed.

## How to set up OpenStreetMap map edits in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 OpenStreetMap map edits**: 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": "openstreetmap-org/places/changesets",
    "input": {
      "bbox": "<bbox>"
    }
  }'
```

Then paste one of the prompts above: Codex finds OpenStreetMap map edits on Spiral, shows the price and runs it.

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

## OpenStreetMap map edits tools and prices

- [OpenStreetMap · Changesets](https://spiral.ai/tools/alexandria/openstreetmap-org/places/changesets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| bbox |  | — | Bounding box `min_lon,min_lat,max_lon,max_lat` (left,bottom,right,top) in WGS84 decimal degrees, the OSM API convention. Pattern: ^\s*-?\d+(\.\d+)?\s*,\s*-?\d+(\.\d+)?\s*,\s*-?\d+(\.\d+)?\s*,\s*-?\d+(\.\d+)?\s*$. |
| limit | 1 to 100 | 20 | limit |
| closed_only |  | — | closed_only |
| display_name |  | — | Only changesets by this OSM user. |

## What can you do with OpenStreetMap map edits in Codex?

Build a reviewable map-data audit for a public district in your project. Use OpenStreetMap locations, feature records, or editing evidence to explain what the returned data supports.

### Investigate an unexpected map change

Compare a changed public feature with its earlier versions, surrounding map data, nearby edit sessions, and reported map problems.

### Check an administrative boundary

Locate a municipality, inspect its mapped boundary and nearby features, then review object history and edit sessions when the boundary changes.

### Refresh a public destination guide

Recheck mapped attractions in a district, refresh saved objects, label public locations, and review edit activity and map reports before revising the guide.

### Investigate a station map discrepancy

Compare saved station-area records with current objects, inspect the surrounding block, and use history, edit sessions, and issue reports to explain discrepancies.

## Overview

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

## OpenStreetMap map edits in other agents

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

## More Codex guides

- [OpenStreetMap local map data](https://spiral.ai/integrations/codex/openstreetmap-local-map-data)
- [OpenStreetMap map issue reports](https://spiral.ai/integrations/codex/openstreetmap-map-issue-reports)
- [OpenStreetMap feature search](https://spiral.ai/integrations/codex/openstreetmap-feature-search)
- [OpenStreetMap place search](https://spiral.ai/integrations/codex/openstreetmap-place-search)
- [OpenStreetMap element history](https://spiral.ai/integrations/codex/openstreetmap-element-history)
- [Pizza Hut Canada category products](https://spiral.ai/integrations/codex/pizza-hut-canada-category-products)

## Questions about OpenStreetMap map edits in Codex

**Can Codex use OpenStreetMap map edits?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run OpenStreetMap map edits like any built-in tool.

**How much does OpenStreetMap map edits cost in Codex?**

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

**Do I need an Alexandria account to use OpenStreetMap map edits in Codex?**

No. Spiral runs OpenStreetMap map edits on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up OpenStreetMap map edits in Codex?**

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

**Does Codex wait while OpenStreetMap map edits runs?**

OpenStreetMap map edits runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Which parts of the world does OpenStreetMap cover?**

OpenStreetMap has worldwide scope, including roads, trails, cafés, and railway stations. Its records come from a community of contributors.

**Does worldwide coverage mean every local feature is mapped?**

No. OpenStreetMap's accuracy documentation says basic map coverage is still being built in many areas, so a local result set cannot establish that every feature is present.

**How frequently are OpenStreetMap changes distributed?**

OpenStreetMap publishes minute, hourly, and daily change files. Those replication intervals do not establish one refresh schedule for every service that uses the data.

**Are these map images or underlying geographic records?**

OpenStreetMap's editing API exposes raw geographic data. Nodes, ways, and relations describe the underlying features rather than a rendered map image.

**Is an OpenStreetMap number enough to identify a feature?**

No. Nodes, ways, and relations have separate ID spaces, so retain the object type alongside the number.

