AI Agent for QGIS: The Complete Guide
Published Updated

AI Agent by TerraLab is a QGIS plugin that docks a chat panel next to your map. You write what you need in a prompt. It finds open data, runs QGIS tools, styles and labels layers, builds print layouts, and checks the map before it answers.
It works in the project you already have open, or it can start from an empty one.
Install and sign in
Install the plugin
In QGIS, open Plugins > Manage and Install Plugins. Search for "AI Agent by TerraLab" and click Install Plugin. It works on QGIS 3.28 and later, including QGIS 4. The plans and what each one includes are on the AI Agent page.
Open the chat panel
Click the AI Agent icon on the toolbar, or press Ctrl+Shift+K. The panel docks next to your map canvas.
Sign in for free
Click "Sign in / Sign up to start". Your browser opens so you can create a free account, and the plugin connects by itself. You do not need an API key or a bank card.
The panel speaks 18 languages and answers in the language you write in.
How to write a request
You do not need special commands. A clear request usually names up to three things:
- The place: a city, neighbourhood, river, or the layers already in your project.
- The result: the data to load, the distance to measure, or the count you need.
- The look: colours, labels, a basemap, or a print layout.
You do not need to put everything in one message. Each follow-up in the chat applies to what the agent just did. You can start from an empty project, or point the agent at the layers you already have open. If a choice will change the result, the agent asks one short question first with a recommended option.
A real project in five requests
This example looks at buildings near the Ciliwung river in the Manggarai and Kampung Melayu neighbourhoods of Jakarta, Indonesia. We ran all five requests in one chat, starting from a new empty QGIS project, with Low effort and Balanced permissions.
1. Load open data
Load the Ciliwung river and all the buildings in Manggarai and Kampung Melayu, Jakarta, on a light basemap.
The agent loaded the river and building footprints from Overture Maps and OpenStreetMap on the OpenFreeMap Positron basemap, then zoomed to the area. It counted 3,942 mapped buildings in Manggarai and 2,731 in Kampung Melayu. It noted that open sources can omit some buildings, and finished in 16 seconds.

2. Analyse the layers
Find the buildings within 100 m of the river and count them in each neighbourhood.
It drew a 100 m buffer around the river line, kept the buildings that touch the buffer, and styled the new layers. It counted 715 buildings in Manggarai and 1,827 in Kampung Melayu, and noted that distances come from the mapped river line. This took 18 seconds, and you can watch it run in the video at the top of this guide.
3. Style and label the map
Make it easier to read: buildings within 100 m in red, all other buildings light grey, and label the river and the two neighbourhoods.
The agent coloured the buildings inside the buffer red and the rest light grey. It added the neighbourhood outlines with their names, and placed the river label along its line. Before answering, it rendered the map to check that all labels showed clearly, finishing in 18 seconds.

4. Add the terrain
Add the terrain underneath so I can see the low ground along the river.
It loaded the Copernicus 30 m elevation model under the buildings and coloured the heights in 15 seconds. In its answer, it warned that this 2011 to 2015 model measures the surface, buildings and trees included, so it may not show the true low ground in a dense city. That is useful to know, so we hid the layer in the next request.

5. Export a PDF map
Hide the terrain again, then make a landscape A4 PDF map titled "Ciliwung river: buildings within 100 m" with a legend, a scale bar and the data sources.
The agent turned off the elevation layer and built a QGIS print layout with the title, the subtitle "Manggarai and Kampung Melayu, Jakarta | 2026", a legend, a scale bar, and a source credit line. It checked that every element fit on the A4 page and exported the PDF in 59 seconds.

Those five requests use five tasks, which is the full free monthly allowance, and took about 2 minutes of agent working time in total.
Work with your own layers and files
Most people start with layers they already have in their QGIS project. The agent reads your open layers and works with them directly. You can also drag and drop files into the chat panel, including CSV, GeoPackage, Shapefile, GeoJSON, and images.
When you need outside data, the built-in catalogue covers 192 sources and 9,901 datasets, with national data for 194 countries, including OpenStreetMap, Overture Maps, Copernicus, Microsoft Planetary Computer, and national mapping agencies. Click the Data button in the panel to browse them by theme and country. Every layer keeps its source and licence.
The plugin sends your message and a short description of your project (layer names, field names, and map extent), never your data files. The service runs in the EU.
Stay in control
You choose how much freedom the agent has through three permission modes:
- Ask first: asks before every change to your project.
- Balanced (default): runs normal steps on its own, and asks before deleting layers, overwriting files, installing plugins, or reaching an unknown website.
- Autopilot (Pro): works on its own, and still asks before spending credits, installing software, or running other plugins.
After the Jakarta example, we typed: "Delete the two original building layers, I only need the results." On Balanced mode, the agent stopped and showed a permission card with Deny and Allow buttons. We clicked Deny, and the agent kept both layers in the project.

Every answer also has an "Undo changes" button (which then becomes "Redo changes"). Press Ctrl+Shift+X to open Map history, where you can restore the project to any earlier request in the chat. Undo never writes over a file you edited by hand.
An AI agent can still make mistakes, so open the steps list under an answer whenever a number matters.
Effort and pricing
| Free | Pro | |
|---|---|---|
| Price | €0 | €49 / month (excl. VAT) |
| Tasks | 5 / month | 300 / month |
| Effort | Low | Low, Medium, High |
| Autopilot | No | Yes |
One task is one request you send, however many internal steps the agent takes to finish it. Low effort is fast and available on every plan. Medium effort plans and checks its work, and High effort plans deeper for long analyses. Even at Low effort, AI Agent scored highest of the agents we tested on Google's geospatial benchmarks.
You can start a 7-day free trial of Pro from the panel's Settings: add a card, cancel before the end, and nothing is charged. A yearly Pro subscription costs eleven months, and teams can ask for an Organization plan on the pricing page or the AI Agent page.
FAQ
Yes. The Free plan costs €0 and gives you 5 tasks every month at Low effort. You do not need an API key or a bank card to sign up.
Yes. It works with the layers already in your open project. You can also drop CSV, GeoPackage, Shapefile, GeoJSON, and image files directly into the chat.
Not directly. A browser chatbot cannot see your map canvas, though it can write PyQGIS code for you to copy, paste, and debug by hand. AI Agent runs inside QGIS, executes the tools itself, checks the rendered map, and lets you undo any step.
Yes. The chat panel supports 18 languages, including English, Indonesian, French, Spanish, Portuguese, and Japanese. It replies in the language you use to write your request.
It is built not to. On the default Balanced mode, it asks before it deletes a layer or overwrites a file. Every answer has an Undo changes button, Map history lets you restore earlier states, and Undo never overwrites edits you made by hand.
Where to go next
Click the Examples button inside the plugin panel to see real tasks and the exact prompts behind them. To learn more about how spatial agents work, read what an AI agent in QGIS is and our comparison of the best AI plugins for QGIS. If you also have our AI Segmentation plugin installed, AI Agent can drive it for you from the chat.
Do it in QGIS by asking for it
AI Agent carries out the task you describe, in your own QGIS project. Free, no card.
plugin that docks a chat panel next to your map. You write what you need in a prompt. It finds open data, runs QGIS tools, styles and labels layers, builds print layouts, and checks the map before it answers.


