This guide provides instructions for setting up and using the Gemini CLI within a DevKit containerized environment.
Using Gemini through DevKit provides the following benefits:
- Gemini has access to all the tools within the container.
- The environment is separated from the host machine.
Prerequisites
This guide assumes that you have completed the Get Started DevKit Guide before moving forward.
Step #1: Setup Gemini API Key
Execute the following within your terminal to set up the necessary environment variable for the Gemini CLI.
export GEMINI_API_KEY=<add your Gemini API key>
Step #2: Choose your development container
There are two ways you can develop against Gemini CLI:
Spinning up a Gemini-specific containerized environment.
devkit/geminiOnce the Gemini CLI prompts you whether to trust the folder, select
yesto continue.Spinning up a general development containerized environment and begin using Gemini there.
devkit/dev gemini
Choosing either method should present to you the following prompts to login. You are ready to begin developing!