OpenClaw (Moltbot / Clawdbot)

Use GPT, Claude, and Gemini models in OpenClaw (Moltbot / Clawdbot) via the AICodewith plugin. Clawdbot was renamed Moltbot and then renamed again to Openclaw.

MacOS/ Linux

1. Install Openclaw

In the terminal run:

npm install -g openclaw@latest
openclaw --version
openclaw-1-1

2. Install the AICodewith plugin

In the terminal run:

openclaw plugins install openclaw-aicodewith-auth
openclaw plugins enable openclaw-aicodewith-auth

openclaw gateway stop
openclaw gateway run
openclaw-2-1
openclaw-2-2

3. Configure the API

Run the authentication command:

openclaw models auth login --provider aicodewith-claude --set-default
openclaw models list | grep aicodewith

Enter your AICodewith API Key

View available models:

openclaw-3-1
openclaw-3-2

4. Perform initial configuration (required for the first installation)

Start the configuration process:

openclaw onboard --install-daemon
  1. Select yes here
  2. openclaw-4-1
  3. Select quick start
  4. openclaw-4-2
  5. Here, choose to use an existing configuration
  6. openclaw-4-3
  7. For this model provider, choose to skip
  8. openclaw-4-4
  9. Here, choose aicodewith; it’s recommended to use Claude, which has the strongest tool-calling capabilities.
  10. openclaw-4-5
  11. Choose a default model according to your own needs.
  12. openclaw-4-6
  13. Next, choose the chat channel. We’ll skip this for now and configure it later.
  14. openclaw-4-7
  15. Configure the skill; here you can add some
  16. openclaw-4-8

I recommend these skills, from top to bottom: one for monitoring/reading blogs, one for the ClawdBot documentation, one for managing mcp, and one for connecting to Obsidian notes.

openclaw-4-9
openclaw-4-10

Press Space to select, and after you finish selecting, press Enter to confirm.

openclaw-4-11

Next, just wait patiently for it to finish installing.

openclaw-4-12

For the following APIs, just fill in whatever applies to you. I basically don’t need any of them, so I just set everything to no.

openclaw-4-13

hooks fully enabled

openclaw-4-14

Configuration complete, starting up

openclaw-4-15

The computer will pop up some permission requests; just approve them all.

openclaw-4-16

This step is asking whether you want to connect the robot now. No need, we can just follow the tutorial below and connect using tg.

openclaw-4-17

Configuration completed!

Configure Telegram

This needs to be set up with a place where it can interact with users, and at the moment WeChat is not supported.

Here I’ll explain why I only teach the configuration for tg

Because the user experience in TG is the best, and the founder himself controls everything through tg.

So I’ll use tg as an example here and let everyone start playing with it first.

1. Obtain the Telegram Bot Token

  1. Search in Telegram for @BotFather
  2. Send /newbot
  3. Set the bot name as prompted
  4. Obtain the Bot Token (format: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
openclaw-telegram-1-1

2. Enable the Telegram plugin

This step needs to be executed in the terminal on your computer, and this plugin is disabled by default.

openclaw plugins enable telegram
openclaw-telegram-2-1

3. Configure the Bot Token

Enter here the token you obtained in the first step

openclaw config set channels.telegram.botToken "your Bot_Token"
openclaw-telegram-3-1

4. Start the Gateway

openclaw gateway run
openclaw-telegram-4-1

If an error occurs, you can first try stopping it for a moment.

openclaw gateway stop

5. Testing

Find your bot in Telegram, send any message, and the bot will give you a verification code.

openclaw-telegram-5-1

Then you need to run the following command on your computer:

openclaw pairing approve telegram your verification code
openclaw-telegram-5-2

300+ AI Models for OpenClaw & AI Agents

Save 20% on Costs

Free $1 Tokens for New Members