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

@openclawdsolana/clawd

v1.3.0

Published

๐Ÿฆž Clawd Leviathan operator โ€” TUI bound to the @openclawdsolana/leviathan runtime. Lobster-themed terminal agent: streaming chat, realtime voice (Grok), Solana, MCP, Bags/pump.fun launches, DFlow/Kalshi/Polymarket, on-chain Leviathan integration. CLAWD: 8

Readme

๐Ÿฆž Clawd Code CLI

A lobster-themed AI terminal operator for coding, system ops & Solana

Solana npm License

๐Ÿฆž "Claws that code, brains that deploy" ๐Ÿฆž

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                                                               โ•‘
โ•‘   โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–„      โ•‘
โ•‘  โ•ฑโ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ•ฒ     โ•‘
โ•‘ โ•‘  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ•‘                                              โ•‘    โ•‘
โ•‘ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—  โ•‘   ๐Ÿฆž  CLAWD CODE CLI  ๐Ÿฆž                   โ•‘    โ•‘
โ•‘ โ•‘ โ•šโ•โ•โ–ˆโ•”โ•โ•  โ•‘                                              โ•‘    โ•‘
โ•‘ โ•‘   โ–ˆโ–ˆโ•‘     โ•‘   "Claws that code, brains that deploy"     โ•‘    โ•‘
โ•‘ โ•‘   โ–ˆโ–ˆโ•‘     โ•‘                                              โ•‘    โ•‘
โ•‘ โ•‘   โ•šโ•โ•     โ•‘   Multi-Provider AI Terminal Operator        โ•‘    โ•‘
โ•‘ โ•‘  โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ•‘   Grok ยท Ollama ยท OpenRouter ยท OpenAI       โ•‘    โ•‘
โ•‘ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•‘   Solana ยท MCP ยท File Tools                  โ•‘    โ•‘
โ•‘ โ•‘ โ•šโ•โ•โ–ˆโ•”โ•โ•  โ•‘                                              โ•‘    โ•‘
โ•‘ โ•‘   โ–ˆโ–ˆโ•‘     โ•‘   CLAWD Token: 8cHzQHUS2s2h8TzCmfqPKYiM4   โ•‘    โ•‘
โ•‘ โ•‘   โ•šโ•โ•     โ•‘   dSt4roa3n7MyRLApump                        โ•‘    โ•‘
โ•‘  โ•ฒโ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ•ฑ     โ•‘
โ•‘   โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€      โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿฆž About

Clawd Code CLI is a lobster-themed AI terminal agent built for Solana operators, developers, and degen builders. It speaks to you through a retro ASCII terminal, runs entirely in your terminal, and lets you switch between Grok, Ollama (local), OpenRouter, and OpenAI backends on the fly โ€” no restart needed.

CLAWD Token: 8cHzQHUS2s2h8TzCmfqPKYiM4dSt4roa3n7MyRLApump


Features

  • ๐Ÿฆž Lobster-branded UI โ€” ASCII art logo, per-provider spinner animations, themed loading messages
  • โšก Multi-Provider Routing โ€” Grok ยท Ollama ยท OpenRouter ยท OpenAI ยท custom, switched live via /models
  • ๐Ÿ”ง AI File Operations โ€” view_file, create_file, str_replace_editor (no overwrite accidents)
  • ๐Ÿ’ป Bash + Shell Tools โ€” execute commands, grep, find, navigate
  • ๐Ÿ“‹ Todo Lists โ€” plan and track tasks with visual priority flags
  • ๐Ÿ”Œ MCP Support โ€” extend with any Model Context Protocol server
  • ๐Ÿช™ Solana Tools โ€” query assets, prices, wallet balances via Helius DAS API + Birdeye
  • ๐Ÿ“Š Full Birdeye Suite โ€” token overview, metadata (single/multi), market data, trade data, search, trending, OHLCV, wallet portfolio
  • ๐Ÿฆ‹ DFlow Trading โ€” swap quotes + build across DFlow-aggregated venues, prediction-market init, priority fees (REST + WebSocket)
  • ๐Ÿ”ฎ Prediction Markets โ€” DFlow (Kalshi-on-Solana), Polymarket (Gamma + CLOB), Kalshi direct with RSA-PSS signing
  • ๐Ÿš€ Token Launches โ€” pump.fun via PumpPortal local signing + Bags.fm fee-sharing launches
  • ๐Ÿ”‘ Local Signing Wallet โ€” base58 / JSON-array keypair, signs versioned + legacy txs, confirmation-gated broadcasts
  • ๐ŸŒ Web Search โ€” real-time search for Grok models (auto-detected)
  • ๐Ÿ” Persistent Settings โ€” ~/.clawd/user-settings.json remembers your API keys and model preferences

Installation

# Recommended
npm install -g @openclawdsolana/clawd

# Or with bun
bun add -g @openclawdsolana/clawd

# One-shot
npx -y @openclawdsolana/clawd "scan this repo"

The clawd, clawd-code, and clawd-leviathan aliases are registered automatically.

Pay.sh / Solana Pay

OpenClawd can be launched through Pay so paid API calls route through the local wallet approval flow:

brew install pay
pay --version
pay setup --update
pay --sandbox clawd "buy some water with pay"
npx -y @solana/pay clawd "buy some water with pay"

Use pay setup --update to refresh MCP config without creating a new account. For local tests, keep --sandbox on the top-level pay command. Do not create or replace a mainnet account unless you are intentionally setting up a funded wallet.


Quick Start

clawd

On first run it will prompt for your Grok API key (from xAI). Or set it once:

# From inside clawd:
/config grok key xai-your-key-here

# Or as environment variable
export GROK_API_KEY=xai-your-key-here
clawd

Multi-Provider Setup

OpenRouter (Claude, Gemini, Llama, DeepSeek...)

# Inside clawd:
/config openrouter key sk-or-v1-your-key-here

# Then switch to any OpenRouter model:
/models
# or
/config add model openrouter/anthropic/claude-opus-4.7
/config set defaultModel openrouter/anthropic/claude-opus-4.7

Ollama (Local Models)

# Inside clawd:
/config ollama baseURL http://localhost:11434/v1

# Default Ollama models are already in the list:
# ollama/kimi-k2.6:cloud, ollama/glm-5.1:cloud, ollama/8bit/DeepSolana:latest, etc.
/models

# Switch to kimi-k2.6:cloud (pull it first with: ollama pull kimi-k2.6:cloud)
/models ollama/kimi-k2.6:cloud
# or persist it as the default
/config set defaultModel ollama/kimi-k2.6:cloud

OpenAI

/config openai key sk-your-key-here
/config add model openai/gpt-4o
/config set defaultModel openai/gpt-4o

CLI Commands

| Command | Description | |---------|-------------| | /models | Open interactive model selector | | /models <name> | Switch directly to a model by name | | /config | Show all provider configs (keys masked) | | /config <provider> key <key> | Set API key for a provider | | /config <provider> baseURL <url> | Set base URL for a provider | | /config add model <name> | Add a model to the available list | | /config set defaultModel <model> | Set the default model (also switches active session) | | /provider | Show active model's provider, base URL, and masked key | | /clear | Clear chat history | | /help | Show full help | | /commit-and-push | AI-generated git commit + push | | /exit | Exit |

Shortcuts: โ†‘/โ†“ navigate history, Tab complete suggestions, Shift+Tab toggle auto-edit, Esc abort.


Command Line Options

clawd [options]

Options:
  -V, --version           output the version number
  -d, --directory <dir>   working directory
  -k, --api-key <key>    Grok API key
  -u, --base-url <url>    Grok API base URL
  -m, --model <model>     default model
  -p, --prompt <prompt>   headless mode โ€” one prompt, then exit
  --max-tool-rounds <n>   max tool loops (default: 400)
  -h, --help              show help

Provider Model Reference

Grok (xAI) โ€” default

grok-4-1-fast-reasoning
grok-4-fast-reasoning
grok-4-fast-non-reasoning
grok-4
grok-3
grok-3-fast
grok-code-fast-1

OpenRouter

openrouter/anthropic/claude-opus-4.7
openrouter/anthropic/claude-sonnet-4
openrouter/anthropic/claude-3.5-sonnet
openrouter/google/gemini-2.5-pro
openrouter/google/gemini-2.0-flash
openrouter/meta-llama/llama-4-maverick
openrouter/deepseek/deepseek-chat-v3
openrouter/deepseek/deepseek-coder
openrouter/x-ai/grok-3
openrouter/qwen/qwen-3

OpenAI

openai/gpt-4.5
openai/gpt-4o
openai/gpt-4o-mini
openai/o3
openai/o3-mini
openai/o4-mini

Ollama (localhost:11434)

ollama/kimi-k2.6:cloud
ollama/kimi-k2.5:cloud
ollama/glm-5.1:cloud
ollama/minimax-m2.7:cloud
ollama/minimax-m2.1:cloud
ollama/8bit/DeepSolana:latest
ollama/mxbai-embed-large:latest

Switch at runtime with /models ollama/kimi-k2.6:cloud, or persist with /config set defaultModel ollama/kimi-k2.6:cloud. Any Ollama model you ollama pull locally can be added on the fly via /config add model ollama/<name>.


Solana Integration

# Set environment variables
export HELIUS_API_KEY=your_helius_key
export BIRDEYE_API_KEY=your_birdeye_key

# Then inside clawd you can ask:
"show me my Solana wallet balance"
"get the price of $BONK"
"look up this NFT asset ..."

Birdeye Tool Suite

Every BIRDEYE_API_KEY-gated endpoint is wired as a tool the agent can call:

| Tool | Endpoint | |------|----------| | birdeye_token_overview | /defi/token_overview โ€” price, market cap, FDV, liquidity, wallets, volume, holders | | birdeye_token_metadata / _multi | /defi/v3/token/meta-data/single + /multiple (up to 50) | | birdeye_token_market_data / _multi | /defi/v3/token/market-data + /multiple (up to 20) | | birdeye_token_trade_data / _multi | /defi/v3/token/trade-data/single + /multiple | | birdeye_search_token | /defi/v3/search โ€” keyword search, sorted by 24h USD volume | | birdeye_token_list | /defi/tokenlist โ€” paginated, configurable sort | | birdeye_trending | /defi/token_trending | | birdeye_ohlcv | /defi/ohlcv โ€” 1m through 1M candles | | birdeye_wallet_portfolio | /v1/wallet/token_list |

Prompt examples:

"search birdeye for pepe tokens sorted by volume"
"get the 1h trade data for $BONK"
"show me the top 20 trending solana tokens right now"
"what's my wallet portfolio worth" (set SOLANA_PRIVATE_KEY)

Blockchain Trading + Prediction Markets

Turn on the signing wallet + DFlow and the CLI becomes a full trading terminal.

Environment

# Local signing wallet (DO NOT commit)
SOLANA_PRIVATE_KEY=   # base58 (Phantom export) or JSON array
SOLANA_RPC_URL=

# DFlow โ€” Solana swap aggregation + Kalshi-on-Solana prediction markets
DFLOW_API_KEY=        # contact [email protected]
DFLOW_TRADING_URL=https://quote-api.dflow.net
DFLOW_METADATA_URL=https://dev-prediction-markets-api.dflow.net

# Bags.fm โ€” launch tokens with fee sharing
BAGS_API_KEY=
BAGS_PARTNER_CONFIG_KEY=

# Kalshi direct (RSA-PSS signed requests)
KALSHI_KEY_ID=
KALSHI_PRIVATE_KEY=        # PEM with \n or use _FILE
KALSHI_PRIVATE_KEY_FILE=
KALSHI_ENV=prod            # or `demo`

DFlow โ€” trading + prediction markets

Tools surface the Trading API (tokens, venues, priority fees, swap quote/build, order status, prediction-market init) and the Metadata API (events, markets, orderbook, trades, on-chain fills, live Kalshi data, series, tags, sports filters, candlesticks, search) plus a WebSocket priority-fee stream.

Three-step swap flow the agent will chain automatically:

"quote me a swap for 0.1 SOL -> USDC via DFlow"
  -> dflow_swap_quote
  -> dflow_build_swap
  -> wallet_sign_and_send  (gated by confirmation prompt)

Other DFlow examples:

"init a prediction market for outcome mint <mint>"
"show me the orderbook for market KXNBAGAME-..."
"get live Kalshi data for milestone ids a,b,c"
"stream 5 priority-fee updates from DFlow"

Polymarket

Read-only via the public Gamma + CLOB endpoints โ€” no key required.

"find trending Polymarket events"
"get the polymarket orderbook for token <id>"
"what's the midpoint on this market"

Placing Polymarket orders requires L2 (EIP-712) signing with a Polygon key โ€” not wired by default; the polymarket_place_order stub returns a clear "not enabled" error.

Kalshi direct

Full RSA-PSS request signing with KALSHI_KEY_ID + KALSHI_PRIVATE_KEY. Reads (markets, orderbook, balance, positions, fills, orders) and writes (place/cancel orders) are exposed; kalshi_place_order is confirmation-gated.

Token launches

  • PumpPortal (pump_launch_token, pump_trade) โ€” creates pump.fun SPL tokens, uploads metadata to pump.fun IPFS, generates mint, signs with your local keypair.
  • Bags.fm (bags_launch_token, bags_swap, bags_claim_fees, bags_positions) โ€” launch with fee-recipient splits and claim accumulated creator fees.

Example prompts:

"launch a pump.fun token called CLAWD2 with ticker CLW2, buy 0.2 SOL at launch"
"sell 50% of my position in <mint>"
"launch a bags.fm token with 50% fees to <wallet>"
"claim all my bags.fm fees"

Safety

Every action that moves SOL or places a trade routes through the existing ConfirmationTool โ€” nothing fires until you approve the prompt in the terminal. The wallet loader refuses to start if SOLANA_PRIVATE_KEY is malformed, and DFlow / Kalshi / Bags endpoints return structured errors (not crashes) when keys are missing.


Local Development

git clone https://github.com/8bit/clawd-code-cli.git
cd clawd-code-cli
npm install
npm run build
npm link   # symlink locally for testing
clawd

๐Ÿฆž CLAWD Token

CLAWD is the token of the Clawd ecosystem.ๆŒๆœ‰ CLAWD to access premium features, agent minting, and governance.

  • Mint: 8cHzQHUS2s2h8TzCmfqPKYiM4dSt4roa3n7MyRLApump
  • Blockchain: Solana
  • CLI Integration: Use the Solana tools in clawd to query CLAWD token data, balances, and more.

License

MIT