Socket
Book a DemoInstallSign in
Socket

@mondaychen/gemini-cli-core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mondaychen/gemini-cli-core

Gemini CLI Server

0.1.8
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Gemini CLI (OpenAI compatible)

This is a fork of the Gemini CLI that allows you to use any LLM API, as long as it's OpenAI compatible.

To see how to use Gemini CLI, see the official Gemini CLI documentation.

Usage

Clone the repo and run the following command:

npm install
npm run build
npm install -g .

In the project root where you run Gemini CLI, create a .env file and set the following variables:

OPENAI_API_KEY=
OPENAI_BASE_URL= # optional, defaults to https://api.openai.com/v1
MAIN_MODEL=gpt-4o # your choice of model
FLASH_MODEL=gpt-4o-mini # your choice of fast/mini model for simple tasks

Then run gemini to start the CLI. You'll choose "OpenAI" when prompted. If you used Gemini CLI before, you'll need to type /auth to reset the auth method.

Limitations

  • Tokens are not counted accurately.

FAQs

Package last updated on 28 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.