AI Code With

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:

typescript
1npm install -g openclaw@latest

After the installation is complete, verify the installation:

text
1openclaw --version
image

2. Install the AICodewith plugin

In the terminal run:

bash
1openclaw plugins install openclaw-aicodewith-auth
image

Then enable the plugin:

text
1openclaw plugins enable openclaw-aicodewith-auth
image

Afterward, if the gateway is running, you need to restart it:

bash
1openclaw gateway stop
bash
1openclaw gateway run

3. Configure the API

Run the authentication command:

bash
1openclaw models auth login --provider aicodewith-claude --set-default

Enter your AICodewith API Key

image

View available models:

bash
1openclaw models list | grep aicodewith
image

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

Start the configuration process:

bash
1openclaw onboard --install-daemon
  1. Select yes here
image

2. Select quick start

image

3. Here, choose to use an existing configuration

image

4. For this model provider, choose to skip

image

5. Here, choose aicodewith; it’s recommended to use Claude, which has the strongest tool-calling capabilities.

image

6. Choose a default model according to your own needs.

image

7. Next, choose the chat channel. We’ll skip this for now and configure it later.

image

8. Configure the skill; here you can add some

image
image

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.

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

image

Next, just wait patiently for it to finish installing.

image

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.

image

hooks fully enabled

image

Configuration complete, starting up

image

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

image

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.

image

Configuration completed!

image

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.

Just register an account, then use a VPN on your phone and you’re good to go.

Why insist on taking the long way around, researching things like Feishu bots and WeCom?

Those things don’t even have commands with a “slash” at all...

You have to type every command by hand, and the overall experience is really terrible. I strongly recommend not wasting your time on those things.

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)

14e827b6341d8d84387607b95f7fcb69

2. Enable the Telegram plugin

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

bash
1openclaw plugins enable telegram
1e12f4947846adccd14253b4494d5b25

3. Configure the Bot Token

Enter here the token you obtained in the first step

text
1openclaw config set channels.telegram.botToken "your Bot_Token"
d5f04fa17790f330e2292cec82d95cea

4. Start the Gateway

bash
1openclaw gateway run

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

bash
1openclaw gateway stop
image

5. Testing

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

af597037071fdf0f436c9d292c2a2d54

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

bash
1openclaw pairing approve telegram your verification code
ddfe15ce39940b54179a0420862386bd

What can OpenClaw be used for?

Here’s the practical stuff only—you're sure to get something out of it.

Related links

On this page