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

@hybridaione/hybridclaw

v0.5.0

Published

Personal AI assistant bot for Discord, powered by HybridAI

Readme

HybridClaw

CI coverage npm Node License Docs Powered by HybridAI

Personal AI assistant bot for Discord, powered by HybridAI.

Install from npm

npm install -g @hybridaione/hybridclaw
hybridclaw onboarding

Prerequisites: Node.js 22. Docker is recommended when you want the default container sandbox.

HybridAI Advantage

  • Security-focused foundation
  • Enterprise-ready stack
  • EU-stack compatibility
  • GDPR-aligned posture
  • RAG-powered retrieval
  • Document-grounded responses

Architecture

  • Gateway service (Node.js) — shared message/command handlers, SQLite persistence (KV + semantic + knowledge graph + canonical sessions + usage events), scheduler, heartbeat, web/API, and optional Discord integration
  • TUI client — thin client over HTTP (/api/chat, /api/command)
  • Container (Docker, ephemeral) — HybridAI API client, sandboxed tool executor, and preinstalled browser automation runtime
  • Communication via file-based IPC (input.json / output.json)

Quick start

# Install dependencies
npm install

# Run onboarding (also auto-runs on first `gateway`/`tui` start if API key is missing)
hybridclaw onboarding

# Onboarding flow:
# 1) explicitly accept TRUST_MODEL.md (required)
# 2) choose whether to create a new account
# 3) open /register in browser (optional) and confirm in terminal
# 4) open /login?next=/admin_api_keys in browser and get an API key
# 5) paste API key (or URL containing it) back into the CLI
# 6) choose the default bot (saved to ~/.hybridclaw/config.json) and save secrets to ~/.hybridclaw/credentials.json

# Start gateway backend (default)
hybridclaw gateway

# Or run gateway in foreground in this terminal
hybridclaw gateway start --foreground

# For stdio MCP servers that rely on host tools like `docker` or `npx`
hybridclaw gateway start --foreground --sandbox=host

# If DISCORD_TOKEN is set, gateway auto-connects to Discord.

# Start terminal adapter (optional, in a second terminal)
hybridclaw tui

# Web chat UI (built into gateway)
# open http://127.0.0.1:9090/chat

Authentication

HybridClaw supports two auth paths:

  • HybridAI API key via hybridclaw hybridai ... or hybridclaw onboarding
  • OpenAI Codex OAuth via hybridclaw codex ...

HybridAI commands:

hybridclaw hybridai login
hybridclaw hybridai login --device-code
hybridclaw hybridai login --browser
hybridclaw hybridai login --import
hybridclaw hybridai status
hybridclaw hybridai logout
  • hybridclaw hybridai login auto-selects browser login on local GUI machines and a manual/headless API-key flow on SSH, CI, and container shells.
  • hybridclaw hybridai login --import copies the current HYBRIDAI_API_KEY from your shell into ~/.hybridclaw/credentials.json.
  • HybridAI secrets are stored in ~/.hybridclaw/credentials.json.

Codex commands:

hybridclaw codex login
hybridclaw codex login --device-code
hybridclaw codex login --browser
hybridclaw codex login --import
hybridclaw codex status
hybridclaw codex logout
  • hybridclaw codex login auto-selects browser PKCE on local GUI machines and device code on headless or remote shells.
  • Codex credentials are stored separately in ~/.hybridclaw/codex-auth.json.

Model Selection

Codex models use the openai-codex/ prefix. The default shipped Codex model is openai-codex/gpt-5-codex.

Examples:

/model openai-codex/gpt-5-codex
/model default openai-codex/gpt-5-codex
  • hybridai.defaultModel in ~/.hybridclaw/config.json can point at either a HybridAI model or an openai-codex/... model.
  • codex.models in runtime config controls the allowed Codex model list shown in selectors and status output.
  • When the selected model starts with openai-codex/, HybridClaw resolves OAuth credentials through the Codex provider instead of HYBRIDAI_API_KEY.
  • Use HYBRIDCLAW_CODEX_BASE_URL to override the default Codex backend base URL (https://chatgpt.com/backend-api/codex).

Runtime model:

  • hybridclaw gateway is the core process and should run first.
  • If DISCORD_TOKEN is set, Discord runs inside gateway automatically.
  • hybridclaw tui is a thin client that connects to the gateway.
  • hybridclaw gateway and hybridclaw tui validate the container image at startup.
  • container.sandboxMode defaults to container, but if HybridClaw is already running inside a container and the setting is not explicitly pinned, the gateway auto-switches to host to avoid Docker-in-Docker.
  • Use hybridclaw gateway start --sandbox=host or hybridclaw gateway restart --sandbox=host to force host execution for a given launch.
  • On first run, HybridClaw automatically prepares that image (pulls a prebuilt image first, then falls back to local build if needed).
  • If container setup fails, run npm run build:container in the project root and retry.

Configuration

HybridClaw creates ~/.hybridclaw/config.json on first run and hot-reloads most runtime settings.

  • Start from config.example.json (reference).
  • Runtime state lives under ~/.hybridclaw/ (config.json, credentials.json, data/hybridclaw.db, audit/session files).
  • HybridClaw does not keep runtime state in the current working directory. If ./.env exists, supported secrets are migrated once into ~/.hybridclaw/credentials.json.
  • container.* controls execution isolation, including sandboxMode, memory, memorySwap, cpus, network, binds, and additional mounts.
  • Use container.binds for explicit host-to-container mounts in host:container[:ro|rw] format. Mounted paths appear inside the sandbox under /workspace/extra/<container>.
  • mcpServers.* declares Model Context Protocol servers that HybridClaw connects to per session and exposes as namespaced tools (server__tool).
  • mcpServers.*.env and mcpServers.*.headers are currently written to ~/.hybridclaw/config.json as plain text. Use low-privilege tokens only, set chmod 700 ~/.hybridclaw && chmod 600 ~/.hybridclaw/config.json, and prefer host sandbox mode for stdio MCP servers that depend on host-installed tools.
  • Keep HybridAI secrets in ~/.hybridclaw/credentials.json (HYBRIDAI_API_KEY required for HybridAI models, DISCORD_TOKEN optional). Codex OAuth sessions are stored separately in ~/.hybridclaw/codex-auth.json.
  • Trust-model acceptance is stored in ~/.hybridclaw/config.json under security.* and is required before runtime starts.
  • See TRUST_MODEL.md for onboarding acceptance policy and SECURITY.md for technical security guidelines.
  • For contributor workflow, see CONTRIBUTING.md. For deeper runtime, skills, release, and maintainer reference docs, see docs/development/README.md.

TUI MCP Quickstart

For stdio MCP servers that use host binaries such as docker, node, or npx, start the gateway in host mode:

hybridclaw gateway start --foreground --sandbox=host
hybridclaw tui

In the TUI, use the MCP slash commands directly:

/mcp list
/mcp add filesystem {"transport":"stdio","command":"npx","args":["-y","@modelcontextprotocol/server-filesystem","/Users/you/project"],"enabled":true}
/mcp toggle filesystem
/mcp reconnect filesystem
/mcp remove filesystem

Once a server is enabled, its tools appear in prompts as namespaced tool names such as filesystem__read_file or github__list_issues.

Bundled Skills

  • pdf is bundled and supports text extraction, page rendering, fillable form inspection/filling, and non-fillable overlay workflows.
  • xlsx is bundled for spreadsheet creation, formula-safe editing, CSV/TSV cleanup, and LibreOffice-backed recalculation.
  • docx is bundled for Word document creation plus OOXML unpack/edit/pack workflows, comments, and tracked-change cleanup.
  • pptx is bundled for presentation creation with pptxgenjs, template-preserving OOXML edits, and thumbnail-based visual QA.
  • office-workflows is bundled for cross-format tasks such as CSV to XLSX cleanup and XLSX to PPTX or DOCX deliverables coordinated with delegation.
  • Use hybridclaw skill list to inspect available installers and hybridclaw skill install pdf [install-id] when a bundled skill advertises optional setup helpers.

Optional Office Dependencies

When you run HybridClaw in the default container sandbox, the bundled office image already includes the main office tooling. These installs matter primarily for --sandbox=host workflows or when you want the same capabilities on your local machine.

What they unlock:

  • LibreOffice (soffice) enables Office-to-PDF export, PPTX visual QA, and XLSX formula recalculation.
  • Poppler (pdftoppm) enables slide/page thumbnail rendering for PPTX visual QA.
  • Pandoc improves document conversion workflows around DOCX and Markdown.

macOS:

brew install --cask libreoffice
brew install poppler pandoc

Ubuntu / Debian:

sudo apt-get update
sudo apt-get install -y libreoffice poppler-utils pandoc

Fedora:

sudo dnf install -y libreoffice poppler-utils pandoc

Verify availability:

sh -lc 'command -v soffice >/dev/null 2>&1 || command -v libreoffice >/dev/null 2>&1 && echo soffice_ok'
sh -lc 'command -v pdftoppm >/dev/null 2>&1 && echo pdftoppm_ok'
sh -lc 'command -v pandoc >/dev/null 2>&1 && echo pandoc_ok'

Without these tools, the office skills still create and edit .docx, .xlsx, and .pptx files, but some higher-quality QA and conversion paths are skipped.

Commands

CLI runtime commands:

  • hybridclaw --version / -v — Print installed HybridClaw version
  • hybridclaw gateway start [--foreground] [--sandbox=container|host] — Start gateway (backend by default; foreground with flag)
  • hybridclaw gateway restart [--foreground] [--sandbox=container|host] — Restart managed gateway backend process
  • hybridclaw gateway stop — Stop managed gateway backend process
  • hybridclaw gateway status — Show lifecycle/API status
  • hybridclaw gateway <command...> — Send a command to a running gateway (for example sessions, bot info)
  • hybridclaw gateway compact — Archive older session history into semantic memory while preserving a recent active context tail
  • hybridclaw tui — Start terminal client connected to gateway
  • hybridclaw onboarding — Run HybridAI account/API key onboarding
  • hybridclaw hybridai login [--device-code|--browser|--import] — Store HybridAI API credentials via browser-assisted, headless/manual, or env-import flows
  • hybridclaw hybridai status — Show stored HybridAI auth state, token mask, and source
  • hybridclaw hybridai logout — Clear stored HybridAI credentials
  • hybridclaw codex login [--device-code|--browser|--import] — Authenticate OpenAI Codex via OAuth or one-time Codex CLI import
  • hybridclaw codex status — Show stored Codex auth state, token mask, expiry, and source
  • hybridclaw codex logout — Clear stored Codex credentials
  • hybridclaw skill list — Show skills and any declared installer options
  • hybridclaw skill install <skill> [install-id] — Run a declared skill dependency installer
  • hybridclaw update [status|--check] [--yes] — Check for updates and upgrade global npm installs (source checkouts get git-based update instructions)
  • hybridclaw audit ... — Verify and inspect structured audit trail (recent, search, approvals, verify, instructions)
  • hybridclaw audit instructions [--sync] — Compare runtime instruction copies under ~/.hybridclaw/instructions/ against installed sources and restore shipped defaults when needed

In Discord, use !claw help to see all commands. Key ones:

  • !claw <message> — Talk to the agent
  • !claw bot set <id> — Set chatbot for this channel
  • !claw model set <name> — Set model for this channel
  • !claw rag on/off — Toggle RAG
  • !claw compact — Archive older history into session memory and keep a recent working tail
  • !claw clear — Clear conversation history
  • !claw audit recent [n] — Show recent structured audit events
  • !claw audit verify [sessionId] — Verify audit hash chain integrity
  • !claw audit search <query> — Search structured audit history
  • !claw audit approvals [n] [--denied] — Show policy approval decisions
  • !claw usage [summary|daily|monthly|model [daily|monthly] [agentId]] — Show token/cost aggregates
  • !claw export session [sessionId] — Export session snapshot as JSONL
  • !claw mcp list — List configured MCP servers
  • !claw mcp add <name> <json> — Add or update an MCP server config
  • !claw schedule add "<cron>" <prompt> — Add cron scheduled task
  • !claw schedule add at "<ISO time>" <prompt> — Add one-shot task
  • !claw schedule add every <ms> <prompt> — Add interval task

In the TUI, use /compact for session compaction and /mcp ... for runtime MCP management.