opencode-openchamber-mobile-bridgeOpenCode helper package for exposing OpenChamber from devcontainers through a host bridge and Tailscale Serve.
0
13
近 7 天 3
23.9
生态多维模型
2 个月前
2026-06-17
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-openchamber-mobile-bridge@0.1.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-openchamber-mobile-bridge@0.1.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-openchamber-mobile-bridgeopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Expose OpenChamber running in a devcontainer to your private Tailscale network.
This package provides:
- a minimal OpenCode plugin entrypoint, and
- a host-side CLI that starts OpenChamber inside a devcontainer, creates a local Docker bridge, and registers Tailscale Serve.
It is generic and does not require a specific project manager.
Requirements
- Docker
- Dev Containers CLI, when the target devcontainer is not already built
- Tailscale on the host
- Node.js 18+
Install
npm install -g opencode-openchamber-mobile-bridge
Configure
Create ~/.config/opencode/openchamber-mobile-bridge.json:
{
"projects": [
{
"name": "example-project",
"workspace": "/path/to/project",
"hostPort": 31001,
"containerPort": 3000
}
]
}
Or generate a starter file:
opencode-openchamber-mobile-bridge init-config
Use
opencode-openchamber-mobile-bridge start example-project
opencode-openchamber-mobile-bridge status example-project
opencode-openchamber-mobile-bridge stop example-project
opencode-openchamber-mobile-bridge list
You can also run without a config entry:
opencode-openchamber-mobile-bridge start example-project \
--workspace /path/to/project \
--host-port 31001
The command prints a Tailscale URL and the generated OpenChamber UI password.
Runtime model
Tailnet client
-> Tailscale Serve on host
-> host localhost:<hostPort>
-> Docker bridge sidecar
-> devcontainer OpenChamber on <containerPort>
-> OpenCode server detected by OpenChamber
Privacy
Do not commit your local config file. It may contain local paths and project names. Examples use placeholders only.