KosmoKrator

data

OpenStreetMap CLI for AI Agents

Use the OpenStreetMap CLI from KosmoKrator to call OpenStreetMap tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

OpenStreetMap CLI Setup

OpenStreetMap can be configured headlessly with `kosmokrator integrations:configure openstreetmap`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure openstreetmap --enable --read allow --write ask --json
kosmokrator integrations:doctor openstreetmap --json
kosmokrator integrations:status --json

Credentials

Authentication type: No credentials none. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

No credentials are required.

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_search '{}' --json
Provider shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_search '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs openstreetmap --json
kosmo integrations:docs openstreetmap.openstreetmap_nominatim_search --json
kosmo integrations:schema openstreetmap.openstreetmap_nominatim_search --json
kosmo integrations:search "OpenStreetMap" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

openstreetmap.openstreetmap_nominatim_search

Search for places by free-form or structured address query.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_search '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_search '{}' --json

openstreetmap.openstreetmap_nominatim_reverse

Reverse geocode latitude and longitude.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_reverse '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_reverse '{}' --json

openstreetmap.openstreetmap_nominatim_lookup

Look up address details by OSM object IDs.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_lookup '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_lookup '{}' --json

openstreetmap.openstreetmap_nominatim_details

Get detailed Nominatim place information.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_details '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_details '{}' --json

openstreetmap.openstreetmap_nominatim_status

Check Nominatim service status.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_nominatim_status '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_nominatim_status '{}' --json

openstreetmap.openstreetmap_overpass_query

Execute an Overpass QL query.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_overpass_query '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_overpass_query '{}' --json

openstreetmap.openstreetmap_overpass_status

Check Overpass API status.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_overpass_status '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_overpass_status '{}' --json

openstreetmap.openstreetmap_object_url

Build a stable OpenStreetMap node, way, or relation URL.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_object_url '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_object_url '{}' --json

openstreetmap.openstreetmap_map_url

Build a stable OpenStreetMap map URL for coordinates.

Read read
Parameters
none
Generic call
kosmo integrations:call openstreetmap.openstreetmap_map_url '{}' --json
Shortcut
kosmo integrations:openstreetmap openstreetmap_map_url '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

openstreetmap.openstreetmap_nominatim_reverse 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_nominatim_reverse --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_nominatim_lookup 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_nominatim_lookup --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_nominatim_details 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_nominatim_details --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_nominatim_status 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_nominatim_status --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_overpass_query 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_overpass_query --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_overpass_status 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_overpass_status --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_object_url 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_object_url --json
ParameterTypeRequiredDescription
No parameters.
openstreetmap.openstreetmap_map_url 0 parameters
Schema command
kosmo integrations:schema openstreetmap.openstreetmap_map_url --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.