NextCLI
NextCLI
Docs
Getting Started
InstallQuick StartCustomization Overview
Features
Customize
Customization OverviewModelsMCP serversRulesPrompts
Model Providers Overview
AnthropicAzure AI FoundryAmazon BedrockGeminiHugging FaceInceptionLM StudioOllamaOpenRouterOpenAITetrate Agent Router ServiceVertex AI
Reference
config.yaml ReferenceMigrating Config to YAMLNextCLI Documentation MCP Serverconfig.json Reference (Deprecated)Context Providers (Deprecated)@Codebase (Deprecated)@Docs (Deprecated)
Guides
How to Understand ConfigurationConfiguring Models, Rules, and ToolsCodebase and Documentation AwarenessUsing Plan Mode with NextCLIUsing Ollama with NextCLI: A Developer's GuideUsing Instinct with Ollama in NextCLIHow to Run NextCLI Without InternetHow to Build Custom Code RAGHow to Self-Host a Model
Help
FAQsTroubleshooting

How to Configure Gemini with NextCLI

Get an API key from Google AI Studio

Configuration

name: My Config
version: 0.0.1
schema: v1

models:
  - name: <MODEL_NAME>
    provider: gemini
    model: <MODEL_ID>
    apiKey: <YOUR_GEMINI_API_KEY>
Amazon BedrockHugging Face

On this page

Configuration