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

clawcode-cli

v1.0.1

Published

A CLI coding agent with Agent/Plan/Ask modes and Telegram control, inspired by OpenClaw

Downloads

76

Readme

ClawCode

A CLI coding agent inspired by OpenClaw — built with Bun and TypeScript. ClawCode reads, analyzes, and modifies your codebase through an approval-based workflow, with three interaction modes (Agent, Plan, Ask) and remote control via Telegram.


Features

  • Agent Mode — autonomously executes multi-step coding tasks on your codebase
  • Plan Mode — generates a step-by-step plan and asks for approval before any action is taken
  • Ask Mode — read-only Q&A about your codebase, no file changes
  • Approval-based staging — every file create/modify/delete is staged and logged before being written to disk; nothing touches your real files without confirmation
  • Web search tool — powered by Firecrawl, so the agent can pull in external/up-to-date information while working
  • Telegram integration — control ClawCode remotely from your phone, including approving/rejecting plans and staged actions via inline buttons
  • Skill-aware — reads local skill files (compatible with .claude/skills and .cursor/skills-cursor conventions)

Requirements

  • Bun >=1.0.0 — ClawCode is built and run entirely on Bun, not Node.js. Install Bun here before proceeding.
  • A Telegram bot token (optional, only needed for Telegram mode)
  • An OpenRouter API key (for model access)
  • A Firecrawl API key (for the web search tool)

Installation

npm install -g clawcode-cli

Or, if you prefer installing with Bun directly:

bun add -g clawcode-cli

This installs the clawcode-build command globally on your system.


Environment Setup

ClawCode reads its configuration from a .env file in your project root. Create one with the following keys:

# Model provider
OPENROUTER_API_KEY=your_openrouter_api_key_here

# Web search tool
FIRECRAWL_API_KEY=your_firecrawl_api_key_here

# Telegram integration (optional — only required for Telegram mode)
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
TELEGRAM_OWNER_ID=your_telegram_numeric_user_id_here

⚠️ Never commit your .env file. It's already excluded via .gitignore — keep it that way. Anyone with your API keys or bot token can use them on your behalf.

Getting your API keys

| Key | Where to get it | |---|---| | OPENROUTER_API_KEY | openrouter.ai → API Keys | | FIRECRAWL_API_KEY | firecrawl.dev → Dashboard → API Keys | | TELEGRAM_BOT_TOKEN | Message @BotFather on Telegram → /newbot | | TELEGRAM_OWNER_ID | Message @userinfobot on Telegram |


Usage

Once installed and your .env is set up, run:

clawcode-build wakeup

You'll be prompted to choose a mode:

  • CLI mode — interact directly in your terminal
  • Telegram mode — control ClawCode remotely from Telegram

CLI mode

After selecting CLI mode, choose one of:

  • Agent — describe a task, ClawCode executes it end-to-end
  • Plan — describe a goal, review and approve a generated step-by-step plan before execution
  • Ask — ask questions about your codebase without making any changes

Telegram mode

Once selected, ClawCode starts listening for messages from your bot. Message your bot directly from your phone to:

  • Send tasks and goals
  • Review and approve/reject staged plans with inline buttons
  • Approve or reject individual file changes before they're written to disk

Only messages from the TELEGRAM_OWNER_ID you configured will be processed — all other senders are ignored for security.


How it works

Every action ClawCode wants to take on your codebase — creating a file, modifying one, deleting one, running a shell command — is first staged and logged, not executed immediately. You review and approve (or reject) each action before anything actually touches your disk. This keeps the agent transparent and prevents unwanted changes.


Project Structure

ClawCode/
├── ai/            # model provider setup, tool definitions
├── modes/
│   ├── agent/     # Agent mode logic
│   ├── ask/       # Ask mode logic
│   ├── plan/      # Plan mode logic (planner, validation, approval)
│   └── telegram/  # Telegram bot integration (handlers, sessions, approvals)
├── tui/           # terminal UI (wakeup screen, markdown rendering)
├── index.ts       # CLI entry point
└── package.json

Contributing

Issues and pull requests are welcome. If you run into a bug or have a feature idea, feel free to open an issue on the GitHub repository.


License

MIT © Muhammad Waris