feat: add LINE Messaging API integration #9441

Open
opened 2026-02-16 18:12:27 -05:00 by yindo · 0 comments
Owner

Originally created by @monthop-gmail on GitHub (Feb 16, 2026).

Originally assigned to: @thdxr on GitHub.

Feature Request

Add LINE Messaging API integration for OpenCode, similar to the existing Slack integration (packages/slack/).

Motivation

LINE is the dominant messaging platform in Thailand, Japan, and Taiwan with over 200 million users. Adding LINE support allows developers in these regions to interact with OpenCode directly from their primary messaging app.

Proposed Solution

Create packages/line/ following the same pattern as packages/slack/:

  • Use createOpencode() from @opencode-ai/sdk to start the server
  • Map each LINE user to their own OpenCode session
  • Forward text messages as coding prompts
  • Send responses back via LINE Push API
  • Subscribe to tool update events for real-time notifications
  • Handle LINE's 5000 char message limit with smart chunking

Commands

  • Send any text message to start coding
  • /new - Start a new coding session
  • /abort - Cancel the current prompt
  • /sessions - Show active session info

Implementation

PR: #13799 (CI passing)

Originally created by @monthop-gmail on GitHub (Feb 16, 2026). Originally assigned to: @thdxr on GitHub. ## Feature Request Add LINE Messaging API integration for OpenCode, similar to the existing Slack integration (`packages/slack/`). ## Motivation LINE is the dominant messaging platform in Thailand, Japan, and Taiwan with over 200 million users. Adding LINE support allows developers in these regions to interact with OpenCode directly from their primary messaging app. ## Proposed Solution Create `packages/line/` following the same pattern as `packages/slack/`: - Use `createOpencode()` from `@opencode-ai/sdk` to start the server - Map each LINE user to their own OpenCode session - Forward text messages as coding prompts - Send responses back via LINE Push API - Subscribe to tool update events for real-time notifications - Handle LINE's 5000 char message limit with smart chunking ### Commands - Send any text message to start coding - `/new` - Start a new coding session - `/abort` - Cancel the current prompt - `/sessions` - Show active session info ## Implementation PR: #13799 (CI passing)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9441