opencage-skills

March 31, 2026 · View on GitHub

Agent skills for working with OpenCage geocoding and geosearch services. These skills give any AI coding agent the context it needs to integrate with the OpenCage APIs correctly — including endpoint details, SDK usage patterns, error handling, and common pitfalls.

The skills are plain markdown files that work with any agent that can read documentation. First-class installation is provided for Claude Code via its plugin system.

Skills

SkillPurpose
opencage-geocoding-apiForward/reverse geocoding via the OpenCage REST API
opencage-geosearchGeographic autosuggest/autocomplete JavaScript widget

Geocoding API skill

Use when you need forward geocoding (address to coordinates), reverse geocoding (coordinates to address), or help working with geocoding API responses. Covers Python, Node.js, Ruby, PHP, Java, Perl, and command-line usage.

Includes language-specific reference files:

ReferenceDescription
references/api-details.mdFull API parameter and response reference
references/python.mdPython SDK usage
references/nodejs.mdNode.js SDK usage
references/ruby.mdRuby SDK usage
references/php.mdPHP SDK usage
references/java.mdJava SDK usage
references/perl.mdPerl SDK usage
references/commandline.mdCommand-line batch CSV processing

Geosearch skill

Use when you need geographic place autosuggest or autocomplete on a web page, or are integrating a location search widget with Leaflet, OpenLayers, or MapLibre.

graph TD
    A{User typing partial text in a search box?}
    A -- yes --> B[opencage-geosearch\nJS widget / front-end]
    A -- no --> C{Need street addresses or coordinates?}
    C -- yes --> D[opencage-geocoding-api\nREST API / back-end]
    C -- no --> E[Neither skill needed]

Installation

See install.md for setup instructions covering Claude Code, Gemini CLI, Codex, and other agents.

Prerequisites


About OpenCage GmbH

OpenCage logo

We run a worldwide geocoding API and geosearch service based on open data. Learn more about us.

We also organize Geomob, a series of regular meetups for location-based service creators. If you like geo stuff, check out the Geomob podcast.