Skip to content

feat: add settings for daemon host and port in browser extension#636

Open
zarkin404 wants to merge 2 commits intojackwener:mainfrom
zarkin404:feat/customize-endpoints
Open

feat: add settings for daemon host and port in browser extension#636
zarkin404 wants to merge 2 commits intojackwener:mainfrom
zarkin404:feat/customize-endpoints

Conversation

@zarkin404
Copy link
Copy Markdown

Description

  • Introduced a settings section in the popup to allow users to configure the daemon host and port.
  • Implemented storage functionality to save and retrieve these settings.
  • Updated connection logic to use the configured host and port for WebSocket connections.
  • Enhanced the background script to handle changes in the stored settings and reconnect accordingly.
  • Bumped version to 1.5.5 to reflect these changes.

Related issue:

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • [] I updated tests or docs if needed
  • [] I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

PR 目的

有些场合下,浏览器和 OpenCli 的运行环境并不一定在同一台主机上,譬如 OpenCli 被远程服务器上的 OpenClaw 启动,而自己的电脑则运行这安装了插件的浏览器,所以需要浏览器连到远程服务器上的 OpenCli Daemon,远程服务器可以通过 frpc 将 Daemon 的监听端口暴露到公网,以便于插件链接,进而规避目标平台的 IP 检测或者其他风控检测。

附 frpc.toml 配置:

[[proxies]]
name = "opencli"
type = "tcp"
localPort = 19825
remotePort = 23333

浏览器插件配置:
Daemon host: 服务器 ip
Daemon port: 23333 (记得防火墙和安全组要放行该端口)

- Introduced a settings section in the popup to allow users to configure the daemon host and port.
- Implemented storage functionality to save and retrieve these settings.
- Updated connection logic to use the configured host and port for WebSocket connections.
- Enhanced the background script to handle changes in the stored settings and reconnect accordingly.
- Bumped version to 1.5.5 to reflect these changes.
@zarkin404 zarkin404 changed the title feat: add settings for daemon host and port in popup feat: add settings for daemon host and port in browser extension Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant