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

claude-hubs0225

v3.0.2

Published

Ephemeral and secure runner for Claude Code CLI in SNIA environment

Readme

Claude Code (via ScioNos)

npm version License: MIT Node Version PRs Welcome

Ephemeral and secure runner for Claude Code CLI

🇫🇷 Lire en français


📖 Table of Contents


🛡️ Overview

claude-hubs0225 is an ephemeral and secure runner for the official Claude Code CLI. It initializes all required environment variables directly in memory, ensuring that no configuration files or authentication data are ever written to disk.

The goal is to offer a clean, isolated, and professional execution layer fully compatible with Claude Code, specifically designed for the SNIA environment.


📌 Key Features

  • 🔒 Token Isolation — Authentication token never written to disk
  • 💾 Zero Persistence — No temporary files or local configuration stored
  • 🧩 Full Compatibility — Works seamlessly with the official Claude Code CLI
  • 🔐 Memory-Only Storage — All credentials destroyed on process exit
  • 🚀 Quick Start — Single command execution via npx
  • 🧪 CI/CD Ready — Suitable for automated workflows and pipelines

⚙️ Requirements

Before using claude-hubs0225, ensure you have:


📥 Installation

Option 1: Direct Execution (Recommended)

No installation required! Run directly with npx:

npx claude-hubs0225

Option 2: Global Installation

For frequent use, install globally:

npm install -g claude-hubs0225

Then run:

claude-hubs0225

🚀 Usage

Basic Usage

Simply execute the command:

npx claude-hubs0225

What happens:

  1. The tool checks if Claude Code CLI is installed
  2. Prompts you to enter your ANTHROPIC_AUTH_TOKEN
  3. Launches Claude Code with the token stored only in memory
  4. Automatically cleans up credentials when you exit

Example Session

$ npx claude-hubs0225

Claude Code (via ScioNos)
To retrieve your token, visit: https://hubs02225.snia.ch/console/token
? Please enter your ANTHROPIC_AUTH_TOKEN: ********

# Claude Code starts...

Model Selection Strategy

During startup, you can choose how Claude Code interacts with the underlying models:

  1. Default: Standard behavior. Claude decides which model to use.
  2. Force GLM-4.7: Intercepts traffic via a local proxy and routes everything to GLM-4.7.
  3. Force MiniMax-M2.1: Intercepts traffic via a local proxy and routes everything to MiniMax-M2.1.

This feature allows you to experiment with different models seamlessly within the Claude Code interface.

Command-Line Options

# Display version
npx claude-hubs0225 --version
npx claude-hubs0225 -v

Full Claude Code Compatibility

claude-hubs0225 is a transparent wrapper — it accepts all flags and commands supported by the official Claude Code CLI.

You can use any Claude Code flag or command, such as:

  • npx claude-hubs0225 --model opus "explain this code"
  • npx claude-hubs0225 --verbose --continue
  • npx claude-hubs0225 -p --output-format json "query"
  • npx claude-hubs0225 --chrome --agents '{"reviewer":{...}}'

For a complete list of available flags and commands, see the official Claude Code CLI documentation.


🔍 How It Works

  1. Verification: Checks if claude command is available in your PATH
  2. Token Input: Securely prompts for your authentication token (masked input)
  3. Environment Setup: Creates isolated environment variables:
    • ANTHROPIC_BASE_URLhttps://hubs02225.snia.ch
    • ANTHROPIC_AUTH_TOKEN → Your token (memory only)
  4. Execution: Spawns Claude Code process with custom environment
  5. Cleanup: Automatically destroys credentials on exit

No files are created. No data persists.


🔐 Security Considerations

While claude-hubs0225 ensures maximum security by keeping tokens in memory only, please be aware:

⚠️ Important Notes:

  • Tokens are never written to disk
  • Memory dumps or debuggers could potentially expose the token while the process runs
  • Tokens are automatically cleared when the process terminates
  • Use only in trusted environments

Best Practices:

  • Never share your ANTHROPIC_AUTH_TOKEN with others
  • Retrieve a fresh token for each session from https://hubs02225.snia.ch/console/token
  • Avoid running on shared/untrusted systems
  • Use for local development or secure CI/CD pipelines

🛠️ Troubleshooting

Error: 'claude' command not found

Problem: Claude Code CLI is not installed or not in PATH.

Solution:

npm install -g @anthropic-ai/claude-code

Verify installation:

claude --version

Windows: Git Bash not found

Problem: On Windows, Claude Code requires git-bash to run. If you see an error after entering your token, or if claude-hubs0225 exits with a Git Bash warning, this is the issue.

Solution:

  1. Install Git for Windows (includes Git Bash):

    Download from: https://git-scm.com/downloads/win

  2. Alternative: If Git Bash is already installed but not detected, set the environment variable:

    # Windows Command Prompt
    set CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
    
    # Windows PowerShell
    $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
  3. Restart your terminal and run again:

    npx claude-hubs0225

Note: Git Bash is automatically included when you install Git for Windows. After installation, claude-hubs0225 will detect it automatically.


Token authentication fails

Problem: Invalid or expired token.

Solution:

  1. Get a fresh token from https://hubs02225.snia.ch/console/token
  2. Ensure you're copying the complete token (no extra spaces)
  3. Check your network connection to hubs02225.snia.ch

Node.js version error

Problem: Node.js version is below 22.

Solution:

# Check your Node version
node --version

# Upgrade Node.js to version 22 or later
# Visit: https://nodejs.org/

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Report BugsOpen an issue
  2. Suggest Features — Share your ideas via issues
  3. Submit PRs — Fork, create a branch, and submit a pull request

Development Setup:

# Clone the repository
git clone https://github.com/ScioNos/claude-hubs0225.git
cd claude-hubs0225

# Install dependencies
npm install

# Test locally
node index.js

📝 License

MIT License — © 2025 ScioNos

See LICENSE file for details.


🔗 Links


Made with ❤️ by ScioNos

⬆ Back to Top