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

@nilskluewer/pi-gcp-agent-platform

v0.1.1

Published

Use Gemini models on Google Cloud Vertex AI / Gemini Enterprise Agent Platform from pi with ADC setup and multi-region endpoint support.

Readme

@nilskluewer/pi-gcp-agent-platform

Overview

Use Gemini models through Google Cloud Vertex AI / Gemini Enterprise Agent Platform in pi.

The extension configures Google Application Default Credentials and the Vertex location for Pi's built-in google-vertex provider. Pi's Google SDK then selects the matching global, EU, US, or regional Vertex endpoint.

Getting Started

pi install npm:@nilskluewer/pi-gcp-agent-platform
pi
/setup-gemini-vertexai your-project-id global
/model google-vertex/gemini-3.1-flash-lite

Structure

.
├── extensions/
│   └── gcp-agent-platform/
│       └── index.ts  # Pi extension entry point
├── LICENSE
├── README.md
└── package.json      # npm and Pi package manifest

Setup

Requirements:

  • Google Cloud project with the Vertex AI API enabled.
  • Gemini models enabled/available in Vertex AI / Gemini Enterprise Agent Platform.
  • gcloud CLI installed for Google Application Default Credentials.

Run the Pi setup command after installing the package:

/setup-gemini-vertexai <google-cloud-project> [location]

Examples:

/setup-gemini-vertexai my-project-id global
/setup-gemini-vertexai my-project-id eu

The command stores the project and location in Pi's user config directory and checks Google Application Default Credentials. If credentials are missing in interactive mode, it can run:

gcloud auth application-default login

Environment variables override the saved setup:

| Name | Description | Default | |------|-------------|---------| | GOOGLE_CLOUD_PROJECT | Google Cloud project ID used by Vertex AI. | Saved setup value | | GCLOUD_PROJECT | Fallback project ID. | Optional | | GOOGLE_CLOUD_LOCATION | Vertex AI region or multi-region. Use global for the global endpoint or eu for the EU multi-region endpoint. | Saved setup value or eu | | CLOUD_ML_REGION | Compatibility fallback region. | Optional | | VERTEX_REGION | Additional fallback region. | Optional |

Common endpoint mapping used by Vertex AI:

| Location | Endpoint | |----------|----------| | global | https://aiplatform.googleapis.com | | eu | EU multi-region endpoint | | us | US multi-region endpoint | | other regions | Regional Vertex AI endpoint |

If the Anthropic Vertex package was configured first, this package reads that saved project/location as a fallback so both packages can share the same Google auth setup.

Run

Try the package without adding it to your settings:

pi -e npm:@nilskluewer/pi-gcp-agent-platform

Use any Gemini model exposed by Pi's built-in google-vertex model list and available in your Vertex AI project, for example:

pi --provider google-vertex --model gemini-3.1-flash-lite
pi --provider google-vertex --model gemini-3.5-flash

License

MIT