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

hsx-ai-cli

v1.0.0

Published

CLI tool to query Doubao/DeepSeek/Gemini with saved login session - use your own account for free

Readme

hsx-ai-cli

CLI tool to query Doubao/DeepSeek/Gemini with your own browser login session.

Claude Code can directly call this via bash, saves tokens vs full MCP connection.

Features

  • ✅ Use your own logged-in account, free quota
  • ✅ No API Key needed
  • ✅ Supports DeepSeek, Doubao, Gemini
  • ✅ Lightweight CLI, Claude calls via bash directly
  • ✅ Saves login cookies, reuse next time
  • ✅ Auto-detect Edge/Chrome browser
  • ✅ Works on Windows/macOS/Linux

Installation

npm install -g hsx-ai-cli

Or use with npx (no install needed):

npx hsx-ai-cli ai-query-setup deepseek

Quick Start

1. Setup (save login)

Login to DeepSeek:

ai-query-setup deepseek

Login to Doubao:

ai-query-setup doubao

Login to Gemini:

ai-query-setup gemini

A browser window will open, just login like you normally do. After login is complete and you see the chat interface, press Enter in terminal to save cookies.

Cookies are saved to ~/.hsx-ai-cli/ and will be reused next time.

2. Usage

Basic query:

ai-query "what is the weather today"

Specify provider:

ai-query --provider doubao "explain quantum computing"

Headless mode (no browser window):

ai-query --headless "latest news 2026"

Specify browser:

ai-query --browser chrome --provider deepseek "write a hello world in python"

Usage in Claude Code

Claude can call this directly via bash:

ai-query "2026 March latest AI news"

Or with provider:

ai-query --provider doubao "write a git commit message for this change"

Why this is better than MCP:

  • Doesn't occupy an MCP connection slot
  • Lower overhead, lighter weight
  • Claude gets the answer directly from stdout
  • Saves tokens compared to full MCP protocol

Commands

| Command | Description | |---------|-------------| | ai-query <query> | Query AI with your question | | ai-query-setup <provider> | Setup/login and save cookies |

Options for ai-query

| Option | Short | Description | Default | |--------|-------|-------------|---------| | --provider <name> | -p | Provider: deepseek/doubao/gemini | deepseek | | --browser <name> | -b | Browser: auto/edge/chrome | auto | | --headless | -h | Run in headless mode (no window) | false |

How it works

Claude Code → bash → ai-query → puppeteer → your browser → AI → answer → stdout → Claude

Uses your existing login session from browser, you don't need to pay for API.

Re-login

If cookies expire, just run setup again:

ai-query-setup <provider>

License

MIT