Skip to main content
The iLink channel connects iLink (Weixin Work) to your Codeg workspace. Authentication uses a QR code scan — no manual token entry required. Once connected, you can start agent tasks, send follow-up messages, approve permissions, and receive real-time notifications from iLink. Codeg communicates with iLink over a persistent WebSocket connection and uses the iLink REST API to send messages.

Prerequisites

  • An iLink or Weixin Work account
  • The iLink (or Weixin) mobile app to scan the QR code during setup

Setup

1

Open Chat Channels settings

In Codeg, go to Settings → Chat Channels.
2

Add an iLink channel

Click Add Channel and select iLink.
3

Scan the QR code

Codeg fetches a QR code from the iLink API and displays it in the settings panel. Open the iLink or Weixin app on your phone and scan the QR code to authenticate.
QR codes expire after a short time. If the code expires before you scan it, click Refresh QR Code to get a new one.
4

Wait for confirmation

After scanning, Codeg polls the iLink API for confirmation. When authentication succeeds, the channel status updates to Connected and the session token is saved to the OS keyring automatically.
5

Configure event filters

Choose which events this channel should receive: turn completions, tool calls, errors, or permission requests.
6

Enable daily report (optional)

Toggle Daily Report on and set a delivery time to receive an automated daily coding summary.
7

Connect

Click Connect. Codeg opens a WebSocket connection to the iLink gateway and begins receiving commands and forwarding agent events.
iLink uses QR code authentication. There is no bot token or app secret to enter manually — the credentials are obtained automatically during the QR code scan and stored securely in the OS keyring.

Available commands

Send these commands to your iLink bot. The default prefix is /; you can change it in Settings → Chat Channels → Command Prefix.
CommandDescription
/folderPick a project directory
/agentChoose an AI agent
/task <description>Create a session and start a task
/resume [ID]Resume the most recent session, or a specific session by ID
/cancelAbort the current running task
/sessionsList active sessions in the current folder
/approveApprove a pending permission request
/approve alwaysApprove and auto-approve future requests of the same type
/denyDeny a pending permission request
/search <keyword>Search conversation history (returns up to 10 results)
/todayView today’s coding activity summary
/statusShow connection status for all configured channels
/helpDisplay available commands
When a session is active, send any plain text message to continue the conversation.

Message format

Codeg sends iLink messages as plain text with structured fields. Key-value data (agent type, stop reason, error details) is appended line by line.

Event filters

Control which events iLink delivers to this channel:
  • Turn complete — agent finishes a response turn
  • Tool calls — agent invokes a tool (file read, shell command, etc.)
  • Errors — agent or channel errors
  • Permission requests — agent pauses to request approval
Set filters per channel in Settings → Chat Channels → [channel name] → Event Filters.

QR code refresh

QR codes expire after a short window. If the code expires before you complete the scan:
  1. Go to Settings → Chat Channels and open the iLink channel.
  2. Click Refresh QR Code.
  3. Scan the new code with your iLink or Weixin app.

Troubleshooting

QR code expired before scanning Click Refresh QR Code in the channel settings to generate a new one. Complete the scan promptly after the code appears. Channel shows “Connecting” but never becomes “Connected” Confirm that the QR code scan completed successfully on your phone. If the scan appeared to succeed but the channel did not connect, delete the channel, re-add it, and scan the QR code again. Messages stop arriving after some time iLink sessions can expire. Delete the channel from settings, re-add it, and scan a new QR code to re-authenticate. The new session token is stored in the keyring automatically.