LaunchKit · 2026
Back to Skills

LINE messaging integration via Chrome extension gateway.

0
270 downloads
by @2manslkh

Setup & Installation

openclaw skills install @2manslkh/line-api

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install line-api

What This Skill Does

Python client for the LINE messaging platform, connecting through the Chrome extension gateway (line-chrome-gw.line-apps.com). Covers sending and receiving messages, contacts, groups, reactions, and profile management. Authentication uses QR code login with tokens stored locally; sessions expire after roughly 7 days.

The Chrome gateway translates Thrift to JSON internally, so you interact with a clean REST/JSON interface instead of LINE's binary Thrift protocol.

When to use it

  • Sending automated LINE messages from a Python script
  • Monitoring a LINE group chat for incoming messages
  • Looking up LINE contacts by phone number
  • Reacting to messages in a conversation automatically
  • Managing group membership and invitations programmatically

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Send 'Meeting at 3pm' to a LINE contact by their user ID

AGENT
  1. 1Load auth token from ~/.line-client/tokens.json
  2. 2Initialize LineChromeClient with the auth token
  3. 3Call find_contact_by_userid() with the LINE user ID to resolve their MID
  4. 4Call send_message() with the MID and message text
OUTPUT

Message delivered to the LINE contact

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

LINE account with mobile app for QR loginlstm.wasm and lstmSandbox.js files in repo root