@modemdev/glance-opencodeglance.sh plugin package for OpenCode
13
21
近 7 天 6
35.0
生态多维模型
1 个月前
2026-06-27
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@modemdev/glance-opencode@0.1.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@modemdev/glance-opencode@0.1.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @modemdev/glance-opencodeopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Agent integrations for glance.sh — temporary image sharing for coding agents.
Paste a screenshot in your browser, your agent gets the URL instantly.
Available plugins
| Agent | Directory | npm package | Install |
|---|---|---|---|
| pi | pi/ |
@modemdev/glance-pi |
pi install npm:@modemdev/glance-pi |
| OpenCode | opencode/ |
@modemdev/glance-opencode |
Add "@modemdev/glance-opencode" to opencode.json plugin list |
| Claude Code | claude/ |
@modemdev/glance-claude |
/plugin marketplace add modem-dev/glance-agent-plugins then /plugin install glance-claude@glance-agent-plugins |
| Codex | codex/ |
@modemdev/glance-codex |
codex mcp add glance -- npx -y @modemdev/glance-codex |
How it works
Each plugin creates a live session on glance.sh, gives you a URL to open, and waits for you to paste an image. The image URL is returned to the agent over SSE — no manual copy-paste needed.
agent ──POST /api/session──▶ { id, url }
agent ──GET /api/session/<id>/events──▶ SSE (waiting…)
user ──opens /s/<id>, pastes image──▶ agent receives URL
Sessions are anonymous and ephemeral (10-minute TTL). Images expire after 30 minutes.
Packaging policy
New plugins should be published as installable packages (npm where possible) with a one-command install path in their README.
Each plugin directory should include:
- Integration code
README.mdwith install / verify / update / remove stepspackage.json(if the target agent supports package-based install)- Release automation (GitHub Actions workflow + documented version/tag convention)
Adding a new plugin
Create a directory for your agent (e.g. cursor/, cline/) with the files above and open a PR.
Sponsor
Sponsored by Modem.
License
MIT