Skip to main content
← Back to Practice
By WingTool Guide

Complete Guide: OpenClaw with Claude Code & Lark Bot

From architecture to command-line practice — a comprehensive breakdown of how OpenClaw, Claude Code, and Lark Bot work together

Tool: OpenClawTool: Claude Code

Complete Guide: OpenClaw with Claude Code and Lark Bot

This guide explains how OpenClaw, Claude Code, and a Lark bot can work together as one operating loop.

The goal is not to make one tool do everything. The goal is to let each tool handle the layer it is good at.

Roles

Component Role Core capability
Claude Code Local coding agent Reads and edits code, runs shell commands, uses Git, and handles engineering tasks
OpenClaw Local AI gateway and channel hub Connects Telegram, Lark, Discord, and other channels; dispatches models and tools
Lark bot Collaboration interface Sends and receives team messages, docs, and operational updates

Collaboration mode

The practical workflow is:

  1. Send an instruction from Telegram or Lark.
  2. OpenClaw receives the message.
  3. OpenClaw can spawn Claude Code as a local subprocess through ACP.
  4. Claude Code performs the engineering task on the machine.
  5. OpenClaw sends the result back to the chat.

The important point is that Claude Code remains local and capable, while OpenClaw handles channel access and routing.

Binding a chat to Claude Code

To bind the current chat to Claude Code:

text
/acp spawn claude --bind here

This creates a Claude ACP session in the current chat. Messages sent after that can be forwarded directly to Claude Code, and Claude works in the configured local workspace.

Persistent threads

For larger tasks, use a persistent thread:

text
/acp spawn claude --mode persistent --thread auto

This keeps intermediate progress, results, and follow-up context in a dedicated topic instead of polluting the main chat.

One-shot execution

For short tasks:

text
/acp spawn claude --mode oneshot

This is useful for one-off work such as reviewing a pull request, generating a short report, or checking a repository state.

Common ACP commands

Command Purpose
/acp status Check the current ACP binding
/acp cancel Cancel the running task
/acp close Close the session and unbind
/acp doctor Check ACP health

Using Claude with Lark operations

Claude Code does not directly need to own Lark tools. A clean split is:

  1. OpenClaw handles Lark messages, documents, and bot identity.
  2. Claude Code handles coding, debugging, and local file work.
  3. OpenClaw takes Claude's output and sends it into Lark.

This avoids mixing channel permissions into the coding agent.

Example: engineering daily report

  1. Bind Claude in Telegram:
text
/acp spawn claude --bind here
  1. Ask Claude to draft the report:
text
Write a daily engineering update:
- Done: fixed the login bug
- In progress: refactoring the order module
- Blocked: waiting for design
  1. Ask OpenClaw to send the result to the target Lark group.

OpenClaw uses the configured bot identity to send the message.

Bot identity

Using a bot identity is operationally stable:

  • no personal login session expiration
  • predictable permission scope
  • suitable for scheduled or background workflows
  • easier to audit than user-level automation

Use Claude Code as the local engineering worker.

Use OpenClaw as the gateway and dispatcher.

Use Lark as the collaboration surface.

That split keeps the system composable without forcing one agent to own every integration.

// Related Practice

Multi-Agent Serial Pipeline with Cursor + Git Worktree

A complete walkthrough of triggering multiple Sub-agents via a single prompt to form an automated serial pipeline for parallel multi-task development

Tool: Cursor + Git WorktreeModel: Opus 4.6 & Codex-5.3
2026-03-26Design Thinking

Why Default Workflows Belong in AGENTS.md, Not in a Skill

AGENTS.md is the top-level routing rule; Skills are domain execution modules — one handles path-selection, the other handles path-execution

Agent ArchitectureAGENTS.md Convention
2026-03-13Engineering Case

OpenClaw + Telegram + Lark Integration Research Report

Research on OpenClaw's native Lark integration — a complete migration path from Webhook Bridge to WebSocket long-connection, with full configuration steps

Tool: OpenClawChannel: Telegram + Lark

Share

Let's Build Together

Follow our socials and join the community for the latest updates

WeChat QR Code

Scan to join WeChat group