New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@chatbotkit/cli

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatbotkit/cli

ChatBotKit command line tools

Source
npmnpm
Version
1.27.1
Version published
Weekly downloads
275
1864.29%
Maintainers
1
Weekly downloads
 
Created
Source

Follow on Twitter ChatBotKit CBK.AI NPM Email Discord

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.

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):

  • .env.local - Project-specific local configuration (current directory)
  • .env - Project configuration (current directory)
  • ~/.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> - Comma-separated list of tools to enable (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"

# 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.

Keywords

chatbotkit

FAQs

Package last updated on 23 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts