Path: blob/master/website/content/en/docs/config/ai/outside/gemini.md
2655 views
------| ⚡ Requirement | Lima >= 2.0 |
|---|
This page describes how to use Lima as an sandbox for Google Gemini CLI.
Prerequisite
In addition to Gemini and Lima, make sure that limactl mcp plugin is installed:
The limactl mcp plugin is bundled in Lima since v2.0, however, it may not be installed depending on the method of the installation.
Configuration
Run the default Lima instance, with a mount of your project directory:
Drop the :w suffix if you do not want to allow writing to the mounted directory.
Create
.gemini/extensions/lima/gemini-extension.jsonas follows:
Modify
.gemini/settings.jsonso as to disable Gemini CLI's built-in tools except ones that do not relate to local command execution and file I/O:
Usage
Just run gemini in your project directory.
Gemini automatically recognizes the MCP tools provided by Lima.