LINE Client Skill for Openclaw

A comprehensive LINE messaging integration for AI agents utilizing the Chrome extension gateway for JSON-based API access.

2manslkh
v0.2.1
Feb 24, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install line-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install line-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is LINE Client Skill?

The line-client skill provides a robust interface for interacting with the LINE messaging platform. By leveraging the Openclaw Skills framework, developers can bypass complex Thrift protocols and use a clean JSON REST API via the Chrome extension gateway. This skill facilitates full message lifecycle management, including sending, reading, and reacting to messages, while maintaining security through a local HMAC signing service powered by WebAssembly (WASM). It is designed for developers who need to bridge the gap between AI agents and the LINE ecosystem without the overhead of heavy mobile emulation.

LINE Client Skill Use Cases

  • Automating customer support responses on the LINE platform using Openclaw Skills.
  • Synchronizing group chat data for team coordination and archiving.
  • Developing custom bots that require secure QR-based user authentication.
  • Managing large-scale contact lists and group invitations programmatically.
  • Monitoring specific chat revisions and operations in real-time for automated alerts.

How LINE Client Skill Works

  1. The system initializes a local Node.js signing server (port 18944) to handle HMAC signature generation using the provided WASM files.
  2. Users perform a QR login flow where a unique URL is generated and a time-sensitive 6-digit PIN is entered on their mobile device.
  3. Upon successful authentication, a JWT token and certificate are cached locally in the user's home directory.
  4. The LineChromeClient uses these credentials to communicate with the line-chrome-gw.line-apps.com gateway.
  5. Every request includes a proprietary HMAC header derived from the access token and request body, ensuring secure communication with LINE servers.

LINE Client Skill Setup

To get started with this skill in the Openclaw Skills ecosystem, ensure you have Node.js and Python installed:

# Install the necessary Python dependencies
pip install qrcode

# Ensure the WASM files (lstm.wasm, lstmSandbox.js) are in your root directory

# Run the QR login script to authenticate
python scripts/qr_login_server.py /tmp/qr.png

Follow the on-screen instructions to scan the QR code and enter the PIN within 60 seconds.

LINE Client Skill Data Schema & Taxonomy

The skill organizes its persistent state and metadata as follows:

Item Path Purpose
Tokens ~/.line-client/tokens.json Stores the primary auth_token and refresh_token
Certificate ~/.line-client/sqr_cert Caches the login certificate for session persistence
Signer src/hmac/signer.js Node.js script that interacts with WASM to provide HMACs
Client src/chrome_client.py The main logic handler for all API interactions

LINE Client Skill Advanced Features

  • Real-time event polling via a generator yielding operations as they arrive.
  • Automatic message type detection (User, Group, or Room) based on MID prefixes.
  • Support for message reactions, including like, love, laugh, and surprise types.
  • Advanced group moderation features including member kicks and invite cancellations.
  • High-speed HMAC signing (~13ms per sign) via the background Node.js server within the Openclaw Skills architecture.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*