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

@thegm26/agenthop

v0.4.0

Published

Local, tray-first AI coding account switcher

Readme

AgentHop

A local, tray-first way to switch AI coding CLI profiles without leaving resumable work behind.

AgentHop is an independent, unofficial project and is not affiliated with, endorsed by, or supported by OpenAI. Its first adapter supports Codex; the application is designed so other providers can be added without putting their credentials or storage conventions into the core.

What it does

AgentHop separates two things that are easy to accidentally conflate:

  • Per-profile homes keep credentials and profile configuration isolated.
  • Shared provider state preserves the rollouts and indexes needed to resume work after switching profiles.

The Linux desktop experience lives in the system tray. Choose an enabled profile to make it active, then open the dashboard only when you need onboarding, details, or a copyable command for a new or resumed session. AgentHop does not run Codex commands in the browser, and the browser never receives credentials.

Install with npm

AgentHop is published as a Linux npm package. Install it globally, then launch the tray application:

npm install -g @thegm26/agenthop
agenthop

npx @thegm26/agenthop also works for a temporary install. The first launch creates an isolated Python runtime under $XDG_CACHE_HOME/agenthop (or ~/.cache/agenthop). It needs Python 3.11+ with venv support, Node.js 18.19+, the Codex CLI on PATH, and these Linux desktop libraries: GTK 3, WebKit2GTK 4.1, and Ayatana AppIndicator3. On Ubuntu 24.04:

sudo apt install python3-venv python3-gi gir1.2-gtk-3.0 gir1.2-webkit2-4.1 gir1.2-ayatanaappindicator3-0.1

The dashboard stays local and opens from the AgentHop system-tray icon. A second agenthop invocation opens the existing dashboard.

Quickstart from source

Requirements: Python 3.11+, Node.js 18.19+ (Node 20+ recommended), npm, and a Codex CLI installation available on PATH. Each profile must be authenticated through Codex's supported login flow. On Linux desktop mode also requires GTK 3, WebKit2GTK 4.1, and Ayatana AppIndicator3 from your distribution.

From a fresh checkout:

python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
npm --prefix frontend ci
./scripts/desktop.sh

The launcher builds the frontend when necessary, starts a loopback-only backend, and remains in the system tray without opening a dashboard window. Starting it again opens the existing dashboard rather than another backend.

To add a desktop-menu entry (this is never installed automatically):

./scripts/install-desktop-launcher.sh

The installed .desktop launcher invokes scripts/desktop.sh. If you already have built frontend assets, .venv/bin/agenthop desktop is an alternative launcher.

Onboard a Codex profile

Open the dashboard from the tray and select Add account. Enter a profile name, copy the displayed command into a terminal, finish the Codex sign-in, then return to AgentHop and refresh usage. The normal ~/.codex home is discovered as default; named profile homes are discovered under ~/.codex-profiles.

For manual setup, create one directory per identity and use the Codex login flow—do not copy another profile's auth.json:

mkdir -p "$HOME/.codex-profiles/account-01"
chmod 700 "$HOME/.codex-profiles/account-01"
env CODEX_HOME="$HOME/.codex-profiles/account-01" \
  codex -c 'cli_auth_credentials_store="file"' login --device-auth

See the official Codex authentication guide for other supported credential-store and sign-in options.

Continuity and safety

Before first migration, back up your Codex homes and stop running Codex processes. Resume discovery depends on both rollout files and Codex's SQLite thread index; moving files alone can make older conversations appear missing. AgentHop migrates unique state, reconciles known index paths, and preserves different same-path files with an .agenthop-conflict-<hash> suffix instead of overwriting them. Inspect conflicts before removing anything.

AgentHop is a local profile and continuity manager. It does not create accounts, pool subscriptions, bypass limits, or decide whether an account setup complies with a provider's terms. Use only accounts you are authorized to use. Keep the service on loopback and never commit profile homes, tokens, auth.json, local databases, or session rollouts. For OpenAI services, review the Terms of Use.

Development

Run the complete local development stack:

.venv/bin/python -m pip install -e '.[dev]'
npm --prefix frontend ci
PYTHON=.venv/bin/python make dev

This starts the API on port 8000 and Vite on port 8080. For individual checks:

.venv/bin/python -m pytest tests/backend
npm --prefix frontend run typecheck
npm --prefix frontend run lint
npm --prefix frontend test
npm --prefix frontend run build

.venv/bin/agenthop starts the standalone loopback API on port 8765. The interactive API reference is available at /docs; use Vite's port-8000 proxy when developing the frontend.

Publishing a release

The package tarball builds the dashboard before publishing and contains the Python backend, desktop launcher, and built frontend. Before publishing, run:

npm run test:package
npm pack --dry-run
npm publish --access public

Publishing requires an authenticated npm account with permission to publish to the @thegm26 scope. npm will run prepack automatically during npm publish.

Further reading

License

MIT