# Set up your first OpenClaw IRC bot

Canonical: https://cwyn.com/pages/openclaw-guide-first-irc-bot.html
Last updated: 2026-11-23T05:18:30-05:00

OpenClaw operations guide

Short answer. Connect OpenClaw to a private IRC server over TLS, admit one sender in a test channel, and verify a reply when you mention the bot. Start with a working local OpenClaw Gateway and a private IRC server you control. Get its TLS hostname and port, pick an unused nick for the bot, and choose a test channel.

Last updated November 23, 2026 · Published November 19, 2026

By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5

## 1. Choose a private IRC server, channel, and sender

Start with a working local OpenClaw Gateway and a private IRC server you control. Get its TLS hostname and port, pick an unused nick for the bot, and choose a test channel. Use a server where the test bot needs no server password. Confirm the test sender's server-reported `nick!user@host` identity. The [IRC channel reference](https://docs.openclaw.ai/channels/irc) explains why a bare nickname is a poor access rule.

## 2. Install the IRC plugin on the Gateway host

Check the install result before editing your configuration. The plugin connects directly to the IRC server over TCP/TLS.

```
openclaw plugins install @openclaw/irc
```

## 3. Join one channel and allow one sender

Find the active file with [`openclaw config file`](https://docs.openclaw.ai/cli/config). Add the `irc` entry under `channels`. Replace the example host, port, bot nick, both channel names, and sender identity with your own values. The `channels` list inside `irc` tells the bot where to join. The `groups` entry says whose messages can trigger a reply there.

```
{
  channels: {
    irc: {
      enabled: true,
      host: "irc.example.com",
      port: 6697,
      tls: true,
      nick: "openclaw-bot",
      channels: ["#openclaw-test"],
      groupPolicy: "allowlist",
      groups: {
        "#openclaw-test": {
          allowFrom: ["alice!ident@host.example.com"],
          requireMention: true,
        },
      },
    },
  },
}
```

## 4. Check the connection and the bot's nick

Validate the configuration and fix any errors. Restart the managed local Gateway and run the channel probe. In your IRC client, confirm that the bot has joined the test channel and note the nick it is actually using.

```
openclaw config validate
openclaw gateway restart
openclaw channels status --probe
```

## 5. Mention the bot from the allowed identity

From the allowed sender, mention the bot by its connected nick and ask it to reply with a short test phrase. Look for that phrase in the channel. If the bot joined but stayed silent, compare the sender identity with the channel's `allowFrom` entry and check the mention against the bot's current nick.

[Get your free CWYN Score](https://cwyn.com/pages/score.html)

## Related guides

- [OpenClaw Matrix bot setup for your first DM reply](https://cwyn.com/pages/openclaw-guide-first-matrix-bot.html)
- [OpenClaw Gateway invalid config: recover a rejected edit](https://cwyn.com/pages/openclaw-guide-gateway-invalid-config.html)
- [Mattermost OpenClaw bot setup for your first reply](https://cwyn.com/pages/openclaw-guide-first-mattermost-bot.html)
- [OpenClaw Nextcloud Talk bot setup for a room reply](https://cwyn.com/pages/openclaw-guide-first-nextcloud-talk-bot.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Record the private IRC channel test

The [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit with editable workspace files where you can record the test channel, sender and reply.
Kit details as of Nov 22, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
