npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vitorcen/gemini-cli-anthropic

v1.3.2

Published

Proxy server that enables Claude Code to use Gemini Pro models via gemini-cli

Readme

gemini-cli-anthropic

Proxy server that enables Claude Code to use Gemini Pro models via gemini-cli, leveraging Google's affordable monthly subscription plans. Bridges Anthropic's Claude API format to Google's Gemini API.

Setup Instructions

Quick Install (Recommended)

Install globally via npm:

npm install -g @vitorcen/gemini-cli-anthropic

Start the server:

gemini-cli-anthropic

The server will start on port 41242 (configurable via PORT environment variable).

Install from Source

1. Clone with submodules

Option 1: Clone with submodules in one command

git clone --recurse-submodules [email protected]:vitorcen/gemini-cli-anthropic.git
cd gemini-cli-anthropic

Option 2: Clone then initialize submodules

git clone [email protected]:vitorcen/gemini-cli-anthropic.git
cd gemini-cli-anthropic
git submodule update --init --recursive

2. Install dependencies

Install main project dependencies:

npm install

Install gemini-cli submodule dependencies:

cd gemini-cli
npm install
cd ..

3. Run the server

npm start

The server will listen on port 41242 by default (configurable via PORT environment variable).

Authentication

By default, the server authenticates using Google Cloud Platform (GCP) credentials (USE_CCPA=true). Ensure your environment is configured for GCP authentication (e.g., by running gcloud auth application-default login).

Alternatively, you can use a Gemini API key by setting the GEMINI_API_KEY environment variable.

Environment Variables

  • PORT: Server port (default: 41242 )
  • GEMINI_API_KEY: Your Google Gemini API key. If provided, this will be used for authentication instead of the default GCP method.
  • GOOGLE_APPLICATION_CREDENTIALS: Path to your Google Cloud credentials file (if needed).
  • DEBUG_LOG: Set to true to enable detailed request/response logging.
  • TEXT_LOG: Set to true to enable logging of text content streaming (default: false).

Usage with Claude Code

Once the proxy server is running, configure Claude Code to use Gemini models by setting these environment variables:

ANTHROPIC_BASE_URL=http://127.0.0.1:41242 \
ANTHROPIC_MODEL=gemini-3-pro-preview \
ANTHROPIC_DEFAULT_OPUS_MODEL=gemini-3-pro-preview \
ANTHROPIC_DEFAULT_SONNET_MODEL=gemini-2.5-flash \
ANTHROPIC_DEFAULT_HAIKU_MODEL=gemini-2.5-flash \
claude

This configuration:

  • Routes all Claude API calls through the proxy server
  • Maps Opus requests to Gemini 2.5 Pro (high capability)
  • Maps Sonnet/Haiku requests to Gemini 2.5 Flash (fast, cost-effective)

You can customize the model mappings based on your needs and available Gemini models.

Update Submodule (if needed)

git submodule update --remote gemini-cli

Submodule Info

  • Path: gemini-cli/
  • Repository: https://github.com/google-gemini/gemini-cli
  • Version: v0.15.4 (commit 40fa8136e)