Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

fix(xiaohongshu): resolve OpenCLI status at check time

Pnantfb1a898c545e
diff --git a/agent_reach/channels/xiaohongshu.py b/agent_reach/channels/xiaohongshu.py
index cfd77507..844ce556 100644
--- a/agent_reach/channels/xiaohongshu.py
+++ b/agent_reach/channels/xiaohongshu.py
@@ -16,7 +16,6 @@ import urllib.error
import urllib.request
from pathlib import Path
-from agent_reach.backends import opencli_status
from agent_reach.utils.paths import (
PrivatePathError,
read_small_text_no_follow,
@@ -210,6 +209,8 @@ class XiaoHongShuChannel(Channel):
def _check_opencli(self):
"""OpenCLI candidate. None = not installed."""
+ from agent_reach.backends import opencli_status
+
st = opencli_status()
if not st.installed:
return None