OpenClaw operations guide
Set up your first OpenClaw LINE bot
Short answer. Connect the LINE Messaging API to OpenClaw, verify the HTTPS webhook in LINE Developers Console, and pair your first direct message. Start with a working local Gateway and an HTTPS reverse proxy that LINE can reach. Follow LINE's Messaging API setup to create a test Official Account and enable Messaging API in Official Account Manager.
Last updated · Published
By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5
1. Create a LINE Official Account for testing
Start with a working local Gateway and an HTTPS reverse proxy that LINE can reach. Follow LINE's Messaging API setup to create a test Official Account and enable Messaging API in Official Account Manager. In LINE Developers Console, copy the Channel secret from Basic settings and prepare a Channel access token. In Official Account Manager, disable Greeting messages and Auto-reply messages so you can recognize the OpenClaw reply.
2. Install the LINE plugin and store the credentials
Run the install on the Gateway host and check that it succeeds. Put the access token and channel secret in separate files readable by the Gateway service account. Keep those files private. The LINE plugin reference documents these file-backed credentials.
openclaw plugins install @openclaw/line
3. Configure the webhook path and DM policy
Find the active file with openclaw config file and add line to the existing channels object. Replace both file paths with the paths on your Gateway host. Validate the config and restart the managed local Gateway.
{
channels: {
line: {
enabled: true,
tokenFile: "/path/to/line-token.txt",
secretFile: "/path/to/line-secret.txt",
webhookPath: "/line/webhook",
dmPolicy: "pairing",
groupPolicy: "disabled",
},
},
}
openclaw config validate
openclaw gateway restart
4. Verify the HTTPS webhook from LINE
Forward only /line/webhook through the HTTPS proxy to the same path on the Gateway. Pass the request body through intact so the plugin can verify the signature. In LINE Developers Console, save the full HTTPS URL ending in /line/webhook, click Verify, and enable Use webhook once verification passes. That check confirms LINE can reach the endpoint.
5. Pair your account and verify an agent reply
Add the test Official Account as a friend and send it a DM. Match the pairing code from your chat to the pending request on the Gateway host. Approve your own code, then send a fresh DM asking the agent to reply with a short test phrase.
openclaw pairing list line
openclaw pairing approve line CODE