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

@chatbotkit/cli

v1.38.0

Published

ChatBotKit command line tools

Readme

ChatBotKit CBK.AI NPM Email Discord Follow on Twitter

ChatBotKit CLI

A powerful command-line interface for ChatBotKit that provides both API management commands and an autonomous AI agent mode for interactive development tasks.

Why ChatBotKit?

Build lighter, future-proof AI agents. When you build with ChatBotKit, the heavy lifting happens on our servers-not in your application. This architectural advantage delivers:

  • 🪶 Lightweight Agents: Your agents stay lean because complex AI processing, model orchestration, and tool execution happen server-side. Less code in your app means faster load times and simpler maintenance.

  • 🛡️ Robust & Streamlined: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.

  • 🔄 Backward & Forward Compatible: As AI technology evolves-new models, new capabilities, new paradigms-your agents automatically benefit. No code changes required on your end.

  • 🔮 Future-Proof: Agents you build today will remain capable tomorrow. When we add support for new AI models or capabilities, your existing agents gain those powers without any updates to your codebase.

This means you can focus on building great user experiences while ChatBotKit handles the complexity of the ever-changing AI landscape.

Installation

Install globally via npm:

npm install --global @chatbotkit/cli

Authentication

Set your ChatBotKit API token as an environment variable:

export CHATBOTKIT_API_TOKEN=<your token here>

Environment Configuration

The CLI automatically loads environment variables from the following locations (in order of precedence):

  1. .env.local - Project-specific local configuration (current directory)
  2. .env - Project configuration (current directory)
  3. ~/.cbk/env - Global user configuration (home directory fallback)

This allows you to store your API token globally in ~/.cbk/env for convenience, while still being able to override it per-project using local .env files.

Example ~/.cbk/env file:

CHATBOTKIT_API_TOKEN=your_token_here

Features

API Commands

Manage ChatBotKit resources directly from the command line:

cbk api conversation list
cbk api bot list

Use cbk --help to see all available commands.

Agent Mode

Run an autonomous AI agent that can execute tasks with local file system and command access, while leveraging the full power of the ChatBotKit platform.

cbk agent -p "Create a new file and write hello world to it"

Local Tools:

  • read - Read file contents
  • write - Write content to a file
  • edit - Replace exact string occurrences (single match only)
  • find - Search for files using glob patterns
  • exec - Execute shell commands

Platform Integration:

The agent runs with complete ChatBotKit platform capabilities, including:

  • Access to all configured integrations and 3rd-party services
  • Authenticated sessions with external APIs
  • Dataset connections and skillsets
  • Custom abilities and functions

This means your agent can interact with your local development environment while seamlessly accessing any ChatBotKit resources you've configured.

Agent Options:

  • -p, --prompt <text> - Task to execute
  • -t, --tools <names> - Tool list to enable. Accepts comma-separated values like read,write or space-separated values like read write (defaults to all standard tools)
  • -m, --model <name> - AI model to use

Example:

# Run agent with specific tools only
cbk agent -t read,write -p "Read package.json and create a backup"

# Equivalent space-separated form
cbk agent -t read write -p "Read package.json and create a backup"

# Use custom timeout for long-running commands
cbk agent -p "Run tests with 60 second timeout" -m gpt-5

Documentation

For comprehensive information about the ChatBotKit CLI SDK, including detailed documentation on its functionalities, helper methods, and configuration options, please visit our type documentation page.

Contributing

If you find a bug or would like to contribute to the ChatBotKit SDK, please open an issue or submit a pull request on the official GitHub repository.