ZenClaw AI
Guides Beginner

OpenClaw LINE Bot: The Complete Setup Tutorial (2026)

LINE is a dominant messaging channel in several markets. This tutorial walks you step-by-step through connecting OpenClaw to a LINE Official Account: from LINE Developers Console to Messaging API channel, tokens, and a live test. Full self-host flow here; with ZenClaw it's a click.

MixerBox AI ZenClaw Team 10 min read

The fastest way to connect OpenClaw to LINE is ZenClaw. MixerBox AI’s managed service deploys in 9 seconds and handles LINE through a shared @zenclawai Official Account plus a pairing code — you don’t register an Official Account, apply for a Messaging API channel, or configure a webhook URL. This post has two paths: ZenClaw managed (click through) and self-hosted OpenClaw (the full LINE Developers Console walk).

Quick pick: which path is for you

No code and no interest in webhooks or TLS? Go ZenClaw managed. Want your own LINE Official Account with end-to-end control? Go self-host. Side-by-side:

AreaZenClaw managedSelf-hosted OpenClaw
Time9 seconds plus ~1 minute to pair30 minutes to several hours
LINE Official AccountShared @zenclawaiYours to apply for
Messaging API channelNot neededRequired
Webhook URLNot neededRequired, with HTTPS + cert
Technical difficultyNoneMedium
Best forSMBs, non-engineersBrands that need their own Official Account

The ZenClaw path skips webhooks entirely. Users add the shared @zenclawai account as a friend, send a pairing code, and you’re connected. The flow is designed for non-technical users. Steps:

  1. Sign in at zenclaw.ai
  2. Click “Hire AI Employees Now” → dashboard → “Add New OpenClaw Installation”
  3. Wait 9 seconds for the instance
  4. In the Channels section, pick LINE
  5. The UI shows: Add @zenclawai as a friend → click “Generate pairing code”
  6. Copy the code, send it to @zenclawai in LINE
  7. Paired. Chatting with @zenclawai is now the same as chatting with your AI employee

One LINE account can only bind to one instance at a time, so unbind before switching. Invite @zenclawai into a new LINE group and each group becomes its own session.

Self-hosted OpenClaw on LINE: the full flow

Self-hosting is 6 big steps: LINE Official Account → Messaging API channel → grab tokens → paste into OpenClaw → set webhook URL → live test. This assumes you already have OpenClaw running (see OpenClaw complete beginner’s guide). LINE’s official docs are at developers.line.biz/en/docs/messaging-api.

Step 1: Create a LINE Official Account

Go to manager.line.biz (LINE Official Account Manager), sign in, and click “Create account”. Fill in name, category, upload avatar and cover. You’ll end up with an @xxxxxxxx ID — that’s the public account users add as a friend.

Step 2: Create a Messaging API channel

Go to developers.line.biz (LINE Developers Console) and sign in with the same LINE account.

  1. Create a Provider (team or company name)
  2. Under the provider click Create a Messaging API channel
  3. Link the channel to the Official Account from Step 1 (pick it from the list)
  4. Fill in name, description, category, icon. Create.

Step 3: Grab the Channel Secret and Channel Access Token

Copy the token the second it’s issued. It reappears on page reload, but don’t lose it.

Step 4: Configure it in OpenClaw

Edit ~/.openclaw/openclaw.json (or use the OpenClaw dashboard). Under channels.line, set:

{
  "channels": {
    "line": {
      "channelSecret": "your Channel Secret",
      "channelAccessToken": "your Channel Access Token"
    }
  }
}

Restart the gateway (default port 18789). Official config docs: docs.openclaw.ai/cli/config.

Step 5: Set the webhook URL

Back in LINE Developers → Messaging API page:

  1. Webhook URL: paste your OpenClaw HTTPS URL, for example https://your-domain/line/webhook
  2. Click Verify to test reachability
  3. Check Use webhook
  4. Turn off Auto-reply messages and Greeting messages (both will swallow traffic)

The webhook URL must be HTTPS with a valid cert. Use Let’s Encrypt or a Cloudflare tunnel.

Step 6: Live test

Scan the QR on the Messaging API page → add as friend → send a message → check OpenClaw’s gateway log. OpenClaw writes sessions to ~/.openclaw/sessions/line/.

Common gotchas

Most people get stuck on: webhook URL isn’t HTTPS, cert expired, Use webhook wasn’t checked, Auto-reply not disabled, or token copied wrong. Walkthrough:

ZenClaw managed sidesteps all of these.

Further reading

FAQ

What's the fastest way to connect OpenClaw to LINE?

Use ZenClaw: sign in, click 'Hire AI Employees Now', go to the dashboard, pick LINE, add @zenclawai as a friend, generate a pairing code, and send it to the bot. Pairing done. No LINE Official Account registration and no webhook setup. Self-host flow is below.

What's the difference between a LINE Official Account, LINE Messaging API, and a LINE bot?

The LINE Official Account is the user-facing account. To make it programmable, you create a Messaging API channel for it in the LINE Developers Console. That channel's Channel Secret and Channel Access Token are what OpenClaw actually uses. See developers.line.biz/en/docs/messaging-api.

Do LINE bots cost money?

The free tier of a LINE Official Account has a monthly push-message cap (per LINE's policy). Reply messages don't count against push quota. 1:1 customer responses usually fit in the free tier — paid plans kick in for large broadcast volumes.

Why isn't my webhook getting traffic?

Three usual causes: (1) Use webhook checkbox isn't on, (2) the webhook URL's HTTPS certificate isn't valid, (3) Auto-reply messages is still on and LINE is swallowing the message before it reaches your server. ZenClaw managed skips this entirely — you use the pairing code flow.

How does ZenClaw's LINE integration differ from self-hosted OpenClaw's?

ZenClaw doesn't use webhook mode. It uses a shared @zenclawai Official Account plus a pairing code — the user adds @zenclawai as a friend and sends the pairing code, and you're live on LINE. Self-hosted OpenClaw means registering your own Official Account, applying for a Messaging API channel, wiring up a webhook URL, and managing TLS certificates.

What can OpenClaw do on LINE?

Take customer messages, answer FAQs, push order notifications, call Shopify or your in-house API, and retain context for long sessions. For a broader picture of agent capabilities, see What is an AI Employee.

Ready to try ZenClaw?

9 seconds from sign-in to a working AI teammate.

Go to Dashboard