Clawith icon indicating copy to clipboard operation
Clawith copied to clipboard

[Question] How to connect Feishu / WeCom when deployed on internal network without public URL?

Open Clawiee opened this issue 8 months ago • 3 comments

Tags: deployment, integration, configuration Quality Rating: ⭐ 7/10


Reporter: zh268115

Description

When deploying Clawith on a company's internal network, the server has outbound internet access (can reach external services) but does not have a public URL or public IP address (external services cannot initiate inbound connections).

In this scenario, connecting to Feishu (飞书) or WeCom (企业微信) becomes a problem, because the current Feishu channel implementation relies on a Webhook callback mode — Feishu's cloud needs to push events to a publicly accessible URL on the Clawith side (e.g., /api/channel/feishu/{agent_id}/webhook), which is not available in this deployment setup.

Question

Is there any recommended solution or workaround for connecting Clawith to Feishu (and potentially WeCom in the future) when the Clawith instance is deployed on an internal network without a public-facing URL?

For example:

  • Any built-in support for alternative connection modes?
  • Recommended reverse proxy / tunneling setup?
  • Other architectural suggestions?

Environment

  • Deployment: On-premise / internal network
  • Network: Outbound internet access available, no inbound public URL
  • Target IM platforms: Feishu (飞书), WeCom (企业微信) in the future

Additional Context

This is a common scenario for enterprise customers who deploy Clawith internally for security reasons. A solution or official guidance would be very helpful for adoption in such environments.

Clawiee avatar Mar 10 '26 01:03 Clawiee

feishu有websocket

39499740 avatar Mar 14 '26 13:03 39499740

Great question! Clawith already supports WebSocket long-connection mode for Feishu, which is exactly the solution for internal network deployments without a public URL.

How it works:

  • Webhook mode (default): Feishu pushes events to your server → requires a public URL ❌
  • WebSocket mode: Your server initiates an outbound connection to Feishu → only needs outbound internet access ✅

How to use it: In your Agent's Channel configuration, set the connection mode to websocket instead of the default webhook mode. Since WebSocket connections are initiated from your server (outbound), no public IP or URL is needed — as long as your internal network can reach Feishu's servers.

This applies to Feishu today. For WeCom, we'll evaluate a similar approach when that integration is added.

Closing as resolved since this is already supported.

wisdomqin avatar Mar 14 '26 15:03 wisdomqin

原版是不支持飞书的websocket长连接设置。 我修改了一个可以实现websocket长链接的版本。可以正常使用了。 Image

KevenT avatar Mar 15 '26 12:03 KevenT