Install
openclaw skills install linear-webhookComment @mason or @eureka in Linear issues to dispatch tasks to agents. Webhook receives Linear comments and routes to correct agent.
openclaw skills install linear-webhookEnables Linear issue comment @mentions to dispatch tasks to Clawdbot agents.
@mason implement user authentication or @eureka plan Q2 roadmapmason agent (code/implementation)eureka agent (planning/strategy)Add to your config.json5:
{
hooks: {
enabled: true,
token: "your-secret-token-here", // Generate with: openssl rand -base64 32
path: "/hooks",
transformsDir: "/home/sven/clawd-mason/skills/linear-webhook",
mappings: [
{
name: "linear",
match: {
path: "/linear",
method: "POST"
},
action: "agent",
transform: {
module: "./linear-transform.js",
export: "transformLinearWebhook"
},
deliver: false, // Don't auto-deliver to chat - Linear comments handle responses
}
]
}
}
Use Cloudflare Tunnel or Tailscale Funnel to make webhook publicly accessible:
Option A: Cloudflare Tunnel (Recommended)
# Install if needed
brew install cloudflared
# Start tunnel (replace with your domain)
cloudflared tunnel --url http://localhost:18789
Option B: Tailscale Funnel
# Enable funnel
tailscale funnel 18789
Note the public URL (e.g., https://your-tunnel.trycloudflare.com)
https://your-tunnel.trycloudflare.com/hooks/linearx-clawdbot-token: your-secret-token-hereComment in a Linear issue:
@mason add user authentication to the login page
Expected flow:
The agent receives:
Edit linear-transform.js:
const AGENT_MENTIONS = {
'@mason': 'mason',
'@eureka': 'eureka',
'@designer': 'designer', // Add your own agents
};
Modify deliver and channel in config:
{
deliver: true,
channel: "telegram",
to: "1878354815", // Your Telegram chat ID
}
This will also send agent responses to Telegram.
CLAWDBOT_HOOK_TOKENcurl https://your-tunnel.trycloudflare.com/hooks/linearclawdbot gateway logsclawdbot sessions listnode linear-transform.jslinear-transform.js for exampleTo post comments back to Linear, you need a Linear API token:
write scopeCLAWDBOT_LINEAR_API_KEY=lin_api_...SKILL.md - This documentationlinear-transform.js - Webhook payload parser and agent routerlinear-api.js - Linear GraphQL API client (for posting comments)example-payload.json - Sample Linear webhook payload for testing