The Spatial Analysis Agent is a user-friendly plugin that serves as a "Copilot" in QGIS software. This GIS Copilot allows users to perform geospatial analysis directly within QGIS using natural language queries, making it accessible for both experts and beginners.
The Copilot leverages QGIS processing tools, and other external tools such as Python libraries (e.g., Geopandas, Rasterio, seaborn, etc.). Whether working with vector data, raster analysis, the Spatial Analysis Agent offers a flexible, AI-driven approach to enhance and automate GIS workflows.For more details on the framework used by this plugin, refer to the published article: Temitope Akinboyewa, Zhenlong Li, Huan Ning, and M. Naser Lessani. 2024. "GIS Copilot: Towards an Autonomous GIS Agent for Spatial Analysis." https://doi.org/10.1080/17538947.2025.2497489.
QGIS Plugin page: https://plugins.qgis.org/plugins/SpatialAnalysisAgent-master/
- In QGIS software, select
Plugins>Manage and Install Plugins... - Find
AutonomousGIS-SpatialAnalysisAgentand clickInstall Plugin
Alternatively,
- Download the master repository of the plugin from GitHub
- Launch QGIS software and navigate to
Plugin > Manage and install Plugins.. > Install from ZIP - Click on
...to select the directory of the downloaded zip file andInstall pluginfor more details on the installation, go to the User manual
This plugin requires Python >= 3.11
openailangchainlangchain_openailangchain_community-
faiss-gpu
faiss-cpunest-asyncionetworkxpyvisgeopandasIPythonifacejsonpickleregextomltomliseabornpydanticrasterio
Note: All the required python libraries are expected to be installed automatically. However, if any of these python libraries failed to install automatically, you may install them manually by following the steps below to install the libraries.
Using 'openai' as an example, follow these steps to install any python library:
- Open the QGIS Python Console by navigating to
Plugins>Python Consoleor pressCtrl+Alt+P - In the console, run these two lines of code sequentially:
import pip pip.main(['install', 'openai'])
The User Manual is available here
Note: API keys input here will only be stored locally on the user's computer ('plugin_dir/SpatialAnalysisAgent/config.ini').
Select.residential.area_3.mp4
Contour.creation.Example2.mp4
Find more examples on the Case Studies page

