# Open chat bots: easily create an open chat bot via npm

**URL:** <https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493>\
**Category:** Developers\
**Created:** [April 23, 2025, 1:12pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493 "2025-04-23T13:12:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen-Kimoi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stephen-kimoi/32/28729_2.png) [@Stephen-Kimoi](https://forum.dfinity.org/u/Stephen-Kimoi)\
**Post date:** [April 23, 2025, 1:12pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/1 "2025-04-23T13:12:03Z")

</div>

Super excited to announce the release of **version 1.1.0-beta.5** of the [create-openchat-bot CLI toolkit](https://www.npmjs.com/package/create-openchat-bot) 🥳

Instantly create [openchat bots](https://github.com/open-chat-labs/open-chat-bots) from your terminal.

### Prerequisites:

You’ll need to have [dfx cli](https://internetcomputer.org/docs/current/developer-docs/setup/install/) and [rust](https://www.rust-lang.org/tools/install) installed first before using the templates

### Installation:

Install the package globally

```bash
npm install -g create-openchat-bot

```

### Usage:

```bash
npx create-openchat-bot

```

This will:

1. Ask you which type of bot you want to create (offchain or onchain) - the next version will have the specific languages i.e Motoko, Typescript or Rust.
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
6. Display the bot URL (for a canister bot) or the command for starting your bot server (for your off-chain bot)

#### Registering your bot:

Now you can easily register a bot on [oc mainnet](https://oc.app/community) (no need to run open chat locally) using the steps [here](https://github.com/ICP-HUBS-DevRels-Syndicate/openchat-bots/blob/main/REGISTER-BOT.md)

Full link to the package can be found [here](https://npmjs.com/package/create-openchat-bot)

* * *

> **Side note:** The package is currently in beta mode for testing purposes and only supports the Rust SDK. The Motoko and TypeScript SDKs are in the pipeline.

Looking forward to your feedback!

---

<div class="post-metadata">

**Author:** ![ZackDS](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zackds/32/40368_2.png) [@ZackDS](https://forum.dfinity.org/u/ZackDS)\
**Post date:** [April 23, 2025, 8:21pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/2 "2025-04-23T20:21:55Z")

</div>

Not a huge fan of `npm` , never the less I do appreciate the work that has gone into this. Tagging @hpeebles as he has the best feedback.

---

<div class="post-metadata">

**Author:** ![Stephen-Kimoi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stephen-kimoi/32/28729_2.png) [@Stephen-Kimoi](https://forum.dfinity.org/u/Stephen-Kimoi)\
**Post date:** [April 24, 2025, 12:55pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/3 "2025-04-24T12:55:56Z")

</div>

Thank you @ZackDS

But I’d like to know why you’re skeptical on npm

---

<div class="post-metadata">

**Author:** ![AliSci](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alisci/32/33799_2.png) [@AliSci](https://forum.dfinity.org/u/AliSci)\
**Post date:** [April 30, 2025, 1:07pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/4 "2025-04-30T13:07:05Z")

</div>

Is there any recommendation where to host it?

---

<div class="post-metadata">

**Author:** ![Stephen-Kimoi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stephen-kimoi/32/28729_2.png) [@Stephen-Kimoi](https://forum.dfinity.org/u/Stephen-Kimoi)\
**Post date:** [May 5, 2025, 4:14pm UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/5 "2025-05-05T16:14:54Z")

</div>

Kindly clarify, hosting the bot you’ve made using the package?

---

<div class="post-metadata">

**Author:** ![Stephen-Kimoi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stephen-kimoi/32/28729_2.png) [@Stephen-Kimoi](https://forum.dfinity.org/u/Stephen-Kimoi)\
**Post date:** [August 11, 2025, 7:44am UTC](https://forum.dfinity.org/t/open-chat-bots-easily-create-an-open-chat-bot-via-npm/44493/6 "2025-08-11T07:44:50Z")

</div>

I am excited to announce the release of a **new stable version 1.1.1** of the [create-openchat-bot CLI toolkit](https://www.npmjs.com/package/create-openchat-bot) 🥳

This new update fixes a few issues:

1. We added new `BotDefinition` fields: `default_subscriptions` and `data_encoding`, which were causing an error when creating an on-chain bot.
2. Reduced package size: The package is now much smaller (4.3 kB) and only includes the essential files:
  - README.md
  - bin/create-openchat-bot.js
  - package.json

Easily create openchat bots using the toolkit [👉 here](https://www.npmjs.com/package/create-openchat-bot)
