create-openchat-bot

1.1.0-beta.5 • Public • Published

Create OpenChat Bot

A CLI tool for instantly creating OpenChat bots.

npm version License: MIT

Table of Contents

Prerequisites

For both onchain and offchain bot, you need to have installed the following tools:

  • Rust
  • DFX (for identity management)

Installation

npm install -g create-openchat-bot

Usage

npx create-openchat-bot

This will:

  1. Ask you which type of bot you want to create (offchain or onchain)
  2. Ask for your bot's name
  3. Create a new directory with the template
  4. Set up the necessary configuration
  5. Run the appropriate setup script

Registering Your Bot

Follow the instructions here to register your bot with OC and test it out.

Note: This package is in beta mode and currently only supports the Rust SDK. The Motoko and TypeScript SDKs are in the pipeline.

SDK Documentation for Rust bots:

You can now check out the SDK documentation for rust bots here

Bot Types

Offchain Bot

  • Runs on your local machine
  • Good for development and testing
  • No Internet Computer deployment needed
  • Quick setup and iteration

Onchain Bot

  • Deploys to the Internet Computer
  • Runs on the blockchain
  • More complex setup
  • Requires DFX and Internet Computer tools

SDKs

SDKs are available in different languages:

  • Rust SDK, see the documentation here
  • Typescript SDK, see the documentation here
  • Motoko SDK, see the documentation here

License

MIT License

Copyright (c) 2025 ICP-HUBS-DevRels-Syndicate

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package Sidebar

Install

npm i create-openchat-bot

Weekly Downloads

5

Version

1.1.0-beta.5

License

MIT

Unpacked Size

12.5 MB

Total Files

124

Last publish

Collaborators

  • stevekimoi