Description from extension meta
Generate, modify, and fix GEE code instantly with the Gemini API, right inside the Code Editor.
Image from store
Description from store
What if you don't have much coding knowledge, but still want to perform tasks in Google Earth Engine—like visualizing, analyzing, or even downloading images and statistics? Here's the solution: the Google Earth Engine AI Assistant—your personal AI helper, embedded directly into the GEE Code Editor.
This powerful extension leverages the Gemini API to help you write, debug, and refactor your geospatial scripts faster and more efficiently than ever before. Whether you're a seasoned GEE developer or just starting out, this tool is designed to streamline your coding process and make geospatial analysis more accessible.
Core Features
Generate New Scripts: Simply describe a task in the prompt box, such as "Create a cloud-free composite for 2023". The assistant generates a complete, runnable GEE script and injects it into the editor.
Modify Existing Code: Select your current script and provide a modification instruction like "Add a legend and a title". The extension reads your code, applies the changes, and provides a complete, updated script.
Instantly Fix Bugs: Don't waste time on cryptic messages. The "Fix Errors" button sends your script and the GEE console's error messages to the AI, which returns a corrected version of the code.
Seamless Integration: The extension works in a convenient side panel right next to the GEE editor. The toolbar icon is context-aware, enabling itself only when you are on a Google Earth Engine page.
Optimized for GEE: Prompts are specifically engineered to instruct the AI to generate raw JavaScript code suitable for GEE, avoiding common issues like require() statements or ee.initialize() calls.
How It Works
🔑 Provide Your Key
Start by adding your Gemini API key from Google AI Studio.
The key is securely stored in your browser's local storage for future use—no need to re-enter it every time.
🧠 Open the Assistant
Head to the GEE Code Editor and click on the extension icon in your browser toolbar.
A side panel will appear—paste your API key, hit Enter, and you're good to go.
⚙️ Choose an Action
Use the clean and intuitive interface to:
Generate new Earth Engine code
Modify existing scripts
Fix bugs or errors automatically
▶️ Run Your Code
The generated or modified script is injected directly into the GEE editor.
Just click "Run" and see the magic unfold!