[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-328":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},328,"gemini-cli","google-gemini\u002Fgemini-cli","google-gemini","An open-source AI agent that brings the power of Gemini directly into your terminal.","https:\u002F\u002Fgeminicli.com",null,"TypeScript",105341,14083,568,1093,0,40,253,1188,183,120,"Apache License 2.0",false,"main",true,[27,28,29,30,31,32,33],"ai","ai-agents","cli","gemini","gemini-api","mcp-client","mcp-server","2026-06-17 04:00:02","# Gemini CLI\n\n[![Gemini CLI CI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Gemini CLI E2E (Chained)](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Factions\u002Fworkflows\u002Fchained_e2e.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Factions\u002Fworkflows\u002Fchained_e2e.yml)\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@google\u002Fgemini-cli)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@google\u002Fgemini-cli)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fgoogle-gemini\u002Fgemini-cli)](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Fblob\u002Fmain\u002FLICENSE)\n[![View Code Wiki](https:\u002F\u002Fassets.codewiki.google\u002Freadme-badge\u002Fstatic.svg)](https:\u002F\u002Fcodewiki.google\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli?utm_source=badge&utm_medium=github&utm_campaign=github.com\u002Fgoogle-gemini\u002Fgemini-cli)\n\n![Gemini CLI Screenshot](\u002Fdocs\u002Fassets\u002Fgemini-screenshot.png)\n\nGemini CLI is an open-source AI agent that brings the power of Gemini directly\ninto your terminal. It provides lightweight access to Gemini, giving you the\nmost direct path from your prompt to our model.\n\nLearn all about Gemini CLI in our [documentation](https:\u002F\u002Fgeminicli.com\u002Fdocs\u002F).\n\n## 🚀 Why Gemini CLI?\n\n- **🎯 Free tier**: 60 requests\u002Fmin and 1,000 requests\u002Fday with personal Google\n  account.\n- **🧠 Powerful Gemini 3 models**: Access to improved reasoning and 1M token\n  context window.\n- **🔧 Built-in tools**: Google Search grounding, file operations, shell\n  commands, web fetching.\n- **🔌 Extensible**: MCP (Model Context Protocol) support for custom\n  integrations.\n- **💻 Terminal-first**: Designed for developers who live in the command line.\n- **🛡️ Open source**: Apache 2.0 licensed.\n\n## 📦 Installation\n\nSee\n[Gemini CLI installation, execution, and releases](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fget-started\u002Finstallation)\nfor recommended system specifications and a detailed installation guide.\n\n### Quick Install\n\n#### Run instantly with npx\n\n```bash\n# Using npx (no installation required)\nnpx @google\u002Fgemini-cli\n```\n\n#### Install globally with npm\n\n```bash\nnpm install -g @google\u002Fgemini-cli\n```\n\n#### Install globally with Homebrew (macOS\u002FLinux)\n\n```bash\nbrew install gemini-cli\n```\n\n#### Install globally with MacPorts (macOS)\n\n```bash\nsudo port install gemini-cli\n```\n\n#### Install with Anaconda (for restricted environments)\n\n```bash\n# Create and activate a new environment\nconda create -y -n gemini_env -c conda-forge nodejs\nconda activate gemini_env\n\n# Install Gemini CLI globally via npm (inside the environment)\nnpm install -g @google\u002Fgemini-cli\n```\n\n## Release Channels\n\nSee [Releases](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fchangelogs) for more details.\n\n### Preview\n\nNew preview releases will be published each week at UTC 23:59 on Tuesdays. These\nreleases will not have been fully vetted and may contain regressions or other\noutstanding issues. Please help us test and install with `preview` tag.\n\n```bash\nnpm install -g @google\u002Fgemini-cli@preview\n```\n\n### Stable\n\n- New stable releases will be published each week at UTC 20:00 on Tuesdays, this\n  will be the full promotion of last week's `preview` release + any bug fixes\n  and validations. Use `latest` tag.\n\n```bash\nnpm install -g @google\u002Fgemini-cli@latest\n```\n\n### Nightly\n\n- New releases will be published each day at UTC 00:00. This will be all changes\n  from the main branch as represented at time of release. It should be assumed\n  there are pending validations and issues. Use `nightly` tag.\n\n```bash\nnpm install -g @google\u002Fgemini-cli@nightly\n```\n\n## 📋 Key Features\n\n### Code Understanding & Generation\n\n- Query and edit large codebases\n- Generate new apps from PDFs, images, or sketches using multimodal capabilities\n- Debug issues and troubleshoot with natural language\n\n### Automation & Integration\n\n- Automate operational tasks like querying pull requests or handling complex\n  rebases\n- Use MCP servers to connect new capabilities, including\n  [media generation with Imagen, Veo or Lyria](https:\u002F\u002Fgithub.com\u002FGoogleCloudPlatform\u002Fvertex-ai-creative-studio\u002Ftree\u002Fmain\u002Fexperiments\u002Fmcp-genmedia)\n- Run non-interactively in scripts for workflow automation\n\n### Advanced Capabilities\n\n- Ground your queries with built-in\n  [Google Search](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fgrounding) for real-time\n  information\n- Conversation checkpointing to save and resume complex sessions\n- Custom context files (GEMINI.md) to tailor behavior for your projects\n\n### GitHub Integration\n\nIntegrate Gemini CLI directly into your GitHub workflows with\n[**Gemini CLI GitHub Action**](https:\u002F\u002Fgithub.com\u002Fgoogle-github-actions\u002Frun-gemini-cli):\n\n- **Pull Request Reviews**: Automated code review with contextual feedback and\n  suggestions\n- **Issue Triage**: Automated labeling and prioritization of GitHub issues based\n  on content analysis\n- **On-demand Assistance**: Mention `@gemini-cli` in issues and pull requests\n  for help with debugging, explanations, or task delegation\n- **Custom Workflows**: Build automated, scheduled and on-demand workflows\n  tailored to your team's needs\n\n## 🔐 Authentication Options\n\nChoose the authentication method that best fits your needs:\n\n### Option 1: Sign in with Google (OAuth login using your Google Account)\n\n**✨ Best for:** Individual developers as well as anyone who has a Gemini Code\nAssist License. (see\n[quota limits and terms of service](https:\u002F\u002Fcloud.google.com\u002Fgemini\u002Fdocs\u002Fquotas)\nfor details)\n\n**Benefits:**\n\n- **Free tier**: 60 requests\u002Fmin and 1,000 requests\u002Fday\n- **Gemini 3 models** with 1M token context window\n- **No API key management** - just sign in with your Google account\n- **Automatic updates** to latest models\n\n#### Start Gemini CLI, then choose _Sign in with Google_ and follow the browser authentication flow when prompted\n\n```bash\ngemini\n```\n\n#### If you are using a paid Code Assist License from your organization, remember to set the Google Cloud Project\n\n```bash\n# Set your Google Cloud Project\nexport GOOGLE_CLOUD_PROJECT=\"YOUR_PROJECT_ID\"\ngemini\n```\n\n### Option 2: Gemini API Key\n\n**✨ Best for:** Developers who need specific model control or paid tier access\n\n**Benefits:**\n\n- **Free tier**: 1000 requests\u002Fday with Gemini 3 (mix of flash and pro)\n- **Model selection**: Choose specific Gemini models\n- **Usage-based billing**: Upgrade for higher limits when needed\n\n```bash\n# Get your key from https:\u002F\u002Faistudio.google.com\u002Fapikey\nexport GEMINI_API_KEY=\"YOUR_API_KEY\"\ngemini\n```\n\n### Option 3: Vertex AI\n\n**✨ Best for:** Enterprise teams and production workloads\n\n**Benefits:**\n\n- **Enterprise features**: Advanced security and compliance\n- **Scalable**: Higher rate limits with billing account\n- **Integration**: Works with existing Google Cloud infrastructure\n\n```bash\n# Get your key from Google Cloud Console\nexport GOOGLE_API_KEY=\"YOUR_API_KEY\"\nexport GOOGLE_GENAI_USE_VERTEXAI=true\ngemini\n```\n\nFor Google Workspace accounts and other authentication methods, see the\n[authentication guide](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fget-started\u002Fauthentication).\n\n## 🚀 Getting Started\n\n### Basic Usage\n\n#### Start in current directory\n\n```bash\ngemini\n```\n\n#### Include multiple directories\n\n```bash\ngemini --include-directories ..\u002Flib,..\u002Fdocs\n```\n\n#### Use specific model\n\n```bash\ngemini -m gemini-2.5-flash\n```\n\n#### Non-interactive mode for scripts\n\nGet a simple text response:\n\n```bash\ngemini -p \"Explain the architecture of this codebase\"\n```\n\nFor more advanced scripting, including how to parse JSON and handle errors, use\nthe `--output-format json` flag to get structured output:\n\n```bash\ngemini -p \"Explain the architecture of this codebase\" --output-format json\n```\n\nFor real-time event streaming (useful for monitoring long-running operations),\nuse `--output-format stream-json` to get newline-delimited JSON events:\n\n```bash\ngemini -p \"Run tests and deploy\" --output-format stream-json\n```\n\n### Quick Examples\n\n#### Start a new project\n\n```bash\ncd new-project\u002F\ngemini\n> Write me a Discord bot that answers questions using a FAQ.md file I will provide\n```\n\n#### Analyze existing code\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\ncd gemini-cli\ngemini\n> Give me a summary of all of the changes that went in yesterday\n```\n\n## 📚 Documentation\n\n### Getting Started\n\n- [**Quickstart Guide**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fget-started) - Get up\n  and running quickly.\n- [**Authentication Setup**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fget-started\u002Fauthentication) -\n  Detailed auth configuration.\n- [**Configuration Guide**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Freference\u002Fconfiguration) -\n  Settings and customization.\n- [**Keyboard Shortcuts**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts) -\n  Productivity tips.\n\n### Core Features\n\n- [**Commands Reference**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Freference\u002Fcommands) -\n  All slash commands (`\u002Fhelp`, `\u002Fchat`, etc).\n- [**Custom Commands**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fcustom-commands) -\n  Create your own reusable commands.\n- [**Context Files (GEMINI.md)**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fgemini-md) -\n  Provide persistent context to Gemini CLI.\n- [**Checkpointing**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fcheckpointing) - Save\n  and resume conversations.\n- [**Token Caching**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Ftoken-caching) -\n  Optimize token usage.\n\n### Tools & Extensions\n\n- [**Built-in Tools Overview**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Freference\u002Ftools)\n  - [File System Operations](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Ftools\u002Ffile-system)\n  - [Shell Commands](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Ftools\u002Fshell)\n  - [Web Fetch & Search](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Ftools\u002Fweb-fetch)\n- [**MCP Server Integration**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Ftools\u002Fmcp-server) -\n  Extend with custom tools.\n- [**Custom Extensions**](https:\u002F\u002Fgeminicli.com\u002Fdocs\u002Fextensions\u002Fwriting-extensions) -\n  Build and share your own commands.\n\n### Advanced Topics\n\n- [**Headless Mode (Scripting)**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fheadless) -\n  Use Gemini CLI in automated workflows.\n- [**IDE Integration**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fide-integration) - VS\n  Code companion.\n- [**Sandboxing & Security**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fsandbox) - Safe\n  execution environments.\n- [**Trusted Folders**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Ftrusted-folders) -\n  Control execution policies by folder.\n- [**Enterprise Guide**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Fenterprise) - Deploy\n  and manage in a corporate environment.\n- [**Telemetry & Monitoring**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fcli\u002Ftelemetry) -\n  Usage tracking.\n- [**Tools reference**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Freference\u002Ftools) -\n  Built-in tools overview.\n- [**Local development**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Flocal-development) -\n  Local development tooling.\n\n### Troubleshooting & Support\n\n- [**Troubleshooting Guide**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fresources\u002Ftroubleshooting) -\n  Common issues and solutions.\n- [**FAQ**](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fresources\u002Ffaq) - Frequently asked\n  questions.\n- Use `\u002Fbug` command to report issues directly from the CLI.\n\n### Using MCP Servers\n\nConfigure MCP servers in `~\u002F.gemini\u002Fsettings.json` to extend Gemini CLI with\ncustom tools:\n\n```text\n> @github List my open pull requests\n> @slack Send a summary of today's commits to #dev channel\n> @database Run a query to find inactive users\n```\n\nSee the\n[MCP Server Integration guide](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Ftools\u002Fmcp-server)\nfor setup instructions.\n\n## 🤝 Contributing\n\nWe welcome contributions! Gemini CLI is fully open source (Apache 2.0), and we\nencourage the community to:\n\n- Report bugs and suggest features.\n- Improve documentation.\n- Submit code improvements.\n- Share your MCP servers and extensions.\n\nSee our [Contributing Guide](.\u002FCONTRIBUTING.md) for development setup, coding\nstandards, and how to submit pull requests.\n\nCheck our [Official Roadmap](https:\u002F\u002Fgithub.com\u002Forgs\u002Fgoogle-gemini\u002Fprojects\u002F11)\nfor planned features and priorities.\n\n## 📖 Resources\n\n- **[Free Course](https:\u002F\u002Flearn.deeplearning.ai\u002Fcourses\u002Fgemini-cli-code-and-create-with-an-open-source-agent\u002Finformation)** -\n  Learn the basics.\n- **[Official Roadmap](.\u002FROADMAP.md)** - See what's coming next.\n- **[Changelog](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fchangelogs)** - See recent\n  notable updates.\n- **[NPM Package](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@google\u002Fgemini-cli)** - Package\n  registry.\n- **[GitHub Issues](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Fissues)** -\n  Report bugs or request features.\n- **[Security Advisories](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli\u002Fsecurity\u002Fadvisories)** -\n  Security updates.\n\n### Uninstall\n\nSee the [Uninstall Guide](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fresources\u002Funinstall)\nfor removal instructions.\n\n## 📄 Legal\n\n- **License**: [Apache License 2.0](LICENSE)\n- **Terms of Service**:\n  [Terms & Privacy](https:\u002F\u002Fwww.geminicli.com\u002Fdocs\u002Fresources\u002Ftos-privacy)\n- **Security**: [Security Policy](SECURITY.md)\n\n\u003Cp align=\"left\">\n \u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002Fgoogle-gemini\u002Fgemini-cli\">\n  \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=google-gemini\u002Fgemini-cli&theme=dark\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=google-gemini\u002Fgemini-cli\" \u002F>\n   \u003Cimg alt=\"Star History Rank\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=google-gemini\u002Fgemini-cli\" \u002F>\n  \u003C\u002Fpicture>\n \u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n\u003Cp align=\"center\">\n  Built with ❤️ by Google and the open source community\n\u003C\u002Fp>\n","Gemini CLI 是一个开源的AI代理，它将Gemini的强大功能直接引入到终端中。该项目使用TypeScript编写，提供轻量级访问Gemini模型的能力，并支持每分钟60次请求和每天1000次请求的免费层级。其核心功能包括强大的Gemini 3模型、内置工具如Google搜索、文件操作、Shell命令执行及网页抓取等，并且通过MCP协议支持自定义集成。适用于偏好在命令行环境中工作的开发者，能够显著提升开发效率与体验。",2,"2026-06-17 02:34:03","top_all"]