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

agyw

v0.2.1

Published

Agency Profile Switcher for agy (Google Antigravity CLI)

Downloads

1,289

Readme

agyw — Agency Profile Switcher

npm

Switch between multiple Google accounts in the Antigravity CLI (agy) without logging out and back in.

Each profile stores its own private files and OAuth credentials. Switching profiles swaps everything atomically — the next agy command runs as a different account.

Install

npm install -g agyw

Setup

# First time — imports your existing ~/.gemini/antigravity-cli/ as the "default" profile
agyw init

Usage

agyw add <name>        # Create a new profile (clears auth so you can log in fresh)
agyw switch <name>     # Switch active profile (prefix matching: "agyw switch w" → "work")
agyw list              # List all profiles
agyw remove <name>     # Remove a profile
agyw status            # Show active profile and symlink health
agyw run <name>        # Switch profile and launch agy in one command
agyw doctor            # Diagnose symlink and config issues

Typical workflow: adding a second account

agyw add work          # Creates "work" profile, switches to it, clears auth
agy auth login         # Log in with your work Google account
# ... use agy as work account ...
agyw switch default    # Switch back — restores your personal account automatically

Important: quit Antigravity before switching

A running Antigravity IDE or agy process holds OAuth credentials in memory. If a token refresh happens mid-switch, it can write the old credentials back to disk and silently revert your switch.

To prevent this, agyw switch and agyw run refuse to run while Antigravity or agy is alive. On macOS, fully quit the Antigravity app (Cmd+Q) and close any agy sessions before switching. On Linux, close any active agy sessions.

How it works

  • Private files (installation_id, antigravity-oauth-token, settings.json, updater, etc.) are copied per-profile into ~/.agyw/profiles/<name>/ and swapped into ~/.gemini/antigravity-cli/ on each switch.
  • Shared files (conversations/, skills/, hooks/, etc.) are symlinked to a common ~/.agyw/shared/ directory so all profiles share the same history and config.
  • Auth tokens are saved and restored per-profile: macOS uses the native Keychain plus the antigravity-oauth-token file; Linux uses the file only. New profiles start with a clean state so agy auth login prompts for a fresh account.

Requirements

  • macOS or Linux (Ubuntu, Debian, Arch, Alpine/musl)
  • Node.js 18+
  • agy (Google Antigravity CLI) installed and initialized

macOS uses the native Keychain for credential isolation.
Linux uses file-based credentials — run agy with GEMINI_FORCE_FILE_STORAGE=true so tokens are written to file.

Linux Setup

On Linux, agy stores OAuth tokens in ~/.gemini/antigravity-cli/antigravity-oauth-token when GEMINI_FORCE_FILE_STORAGE=true is set. Without this, agy tries to use libsecret/GNOME Keyring, which fails in headless and Docker environments.

Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):

export GEMINI_FORCE_FILE_STORAGE=true

Then install agy and agyw normally:

curl -fsSL https://antigravity.google/cli/install.sh | bash
npm install -g agyw
agyw init

See LINUX.md for a detailed guide on headless auth and Docker usage.