跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    modem-dev

    Glance Opencode

    v0.1.1其他
    @modemdev/glance-opencode

    glance.sh plugin package for OpenCode

    GitHub 星标

    13

    月装机量

    21

    近 7 天 6

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    Integration License: MIT Supported Agents

    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:

    1. Integration code
    2. README.md with install / verify / update / remove steps
    3. package.json (if the target agent supports package-based install)
    4. 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.

    Modem

    License

    MIT