@mondaychen/gemini-cli-core
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @mondaychen/gemini-cli-core

Weekly Downloads

3

Version

0.1.8

License

none

Unpacked Size

1.95 MB

Total Files

358

Last publish

Collaborators

  • mondaychen