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

cerebras-claude

v3.0.0

Published

Run Claude Code and Cerebras CLI with Cerebras-powered agents. One command setup with agent overrides, skill management, and auto-updates.

Readme

Cerebras Claude

Run Claude Code with Cerebras-powered agents. One command sets everything up — API keys, agent routing, skills.

Install

npm install -g cerebras-claude

This gives you cerebras-claude, cclaude, and ccerebras globally. Alternatively, run without installing:

npx cerebras-claude

Requirements

  • Node.js 18+
  • Claude Code CLI: npm i -g @anthropic-ai/claude-code
  • Cerebras API key: cloud.cerebras.ai

Setup

The first time you run cerebras-claude, you'll walk through a guided setup:

  ╭──────────────────────────────────────────╮
  │     Cerebras Claude — Setup Wizard       │
  ╰──────────────────────────────────────────╯

  ✓ Node.js v22.0.0
  ✓ Claude Code (2.1.63)

? Which CLI do you use?
  ❯ Claude Code CLI
    Cerebras CLI (OpenCode fork)

? Paste your Cerebras API key
  ▸ csk-...

? Which agents should route through Cerebras?
  ◯ Main agent (your direct interaction with Claude Code)
  ◉ Explore (fast codebase search, read-only, default: haiku)
  ◯ GeneralPurpose (multi-step tasks, all tools)
  ◯ Plan (research for planning, read-only)

? Install Cerebras team skills?
  ◉ Platform Console (console-debugging, ui-development, vercel-react)
  ◯ Cluster Testing
  ◯ Kernel
  ◯ Skip skill installation

  ✓ Config saved to ~/.cerebras-claude/config.json

Re-run setup any time with cerebras-claude --setup.

Usage

cerebras-claude

With no arguments, you get an interactive menu:

  Cerebras Claude v3.0.0
  Main, Explore, GeneralPurpose, Plan → Cerebras zai-glm-4.7

? What do you want to do?
  ▶  Launch Claude Code
     ▶  Launch Cerebras CLI
     ⚙  Configure agent overrides
     ⚓  Manage skills
     ℹ  View current config
     ↻  Re-run setup wizard
     ≡  Watch proxy logs
     ✕  Quit

Or skip the menu with flags:

cerebras-claude --verbose              # launch Claude Code directly
cerebras-claude --dangerously-skip-permissions
cerebras-claude -p "explain this code"
cerebras-claude --cerebras             # launch Cerebras CLI instead
cerebras-claude --logs                 # tail proxy logs (run in second terminal)
cerebras-claude --setup                # re-run setup wizard
cerebras-claude --menu                 # force the menu even with other args

All unrecognized flags pass through to claude.

How it works

When you launch Claude Code through cerebras-claude:

  1. Reads config from ~/.cerebras-claude/config.json
  2. Starts a local HTTP proxy on port 3456
  3. Launches claude with ANTHROPIC_BASE_URL=http://127.0.0.1:3456
  4. The proxy inspects every request's system prompt to identify which agent is making the call (Main, Explore, subagents, etc.)
  5. Requests from configured agents → Cerebras (Anthropic-to-OpenAI format conversion)
  6. Everything else → Anthropic (transparent passthrough)
You ──> cerebras-claude ──> Claude Code
                              |
                           Proxy (:3456)
                           /          \
                  configured          not configured
                  agent?              or no match?
                    |                     |
              Cerebras API          Anthropic API
           (Anthropic→OpenAI)       (passthrough)

Agent detection is based on system prompt patterns — the main agent contains "interactive agent that helps users", the explore agent contains "file search specialist", etc. The proxy never needs to modify Claude Code's internal agent system.

Agent overrides

Configure which agents route through Cerebras:

cerebras-claude config agents

Interactive picker with these options:

| Agent | What it does | Notes | |-------|-------------|-------| | Main | Your direct interaction with Claude Code | All 21 tools, thinking mode | | Explore | Codebase search, file discovery | Read-only, uses haiku by default | | GeneralPurpose | Multi-step tasks, research + edits | Spawned by Task tool | | Plan | Gather context for planning | Read-only |

View current config without changing:

cerebras-claude config agents --list
  ✓ Main → Cerebras
  ✓ Explore → Cerebras
  ✓ GeneralPurpose → Cerebras
  ✓ Plan → Cerebras

Skills

Skills are markdown files that give agents domain-specific knowledge. They install to ~/.claude/skills/ (Claude Code) or ~/.cerebras/skills/ (Cerebras CLI).

From the menu, select "Manage skills" to list, install, or uninstall interactively. Uninstalling shows a picker of all installed skills — no need to remember names.

Or use the CLI directly:

cerebras-claude skills list
cerebras-claude skills install console-debugging
cerebras-claude skills install --team platform-console
cerebras-claude skills uninstall kernel-debugging

| Team | Skills | |------|--------| | platform-console | console-debugging, ui-development, api-integration, vercel-react | | cluster-testing | cluster-diagnostics, test-automation, performance-benchmarking | | kernel | kernel-debugging, driver-development, system-profiling |

Logs

Watch proxy traffic in real time:

cerebras-claude --logs

Each request shows the route (CEREBRAS or ANTHROPIC), model, tool count, and a snippet of the system prompt so you can verify routing.

Log file: ~/.cerebras-claude.log

Config

View everything:

cerebras-claude config
  Current Configuration
  ──────────────────────────────────────────
  CLI:             claude-code
  Cerebras model:  zai-glm-4.7
  API key:         csk-c5ee...n8p9
  Port:            3456
  Agent overrides: Main, Explore, GeneralPurpose, Plan
  Config file:     ~/.cerebras-claude/config.json

Config lives at ~/.cerebras-claude/config.json. Edit it directly or use cerebras-claude --setup to re-run the wizard.

Testing

npm test

Runs automated checks covering:

  • Config migration (old routing format → agentOverrides)
  • Proxy routing (starts real proxy instances, sends requests with different system prompts, verifies correct CEREBRAS vs ANTHROPIC routing)
  • CLI subcommands (config, skills, etc.)

Development

git clone https://github.com/your-org/kev-cc-proxy
cd kev-cc-proxy
npm install
npm link          # makes `cerebras-claude` available globally