Setup
1
Clone the OpenRouter-compatible fork/branch
The upstream Gemini CLI may only support Google Gemini providers. Use the OpenRouter-compatible fork/branch:
2
Configure environment variables for NagaAI
Set the base URL to NagaAI’s OpenAI-compatible API:
Need an API key? Get one from the NagaAI dashboard: https://naga.ac/dashboard (API Keys section). Also see our Quickstart.
3
Choose a tools-capable model
If you want agentic actions (file reads/edits, command execution), choose any model that supports function calling (tools):
4
Install & run
Requirements: Node.js 18+
Try it
- “Summarize the project structure and key modules.”
- “Find the code responsible for X and explain how it works.”
- “Propose a refactor plan for module Y and list the files to change.”