安装 Open Artifact

Open Artifact 以插件形式装进你的 Agent 应用,插件里已经包含 skill、后台服务和编辑器。

  1. 环境要求

    Node.js 22.18 或更新版本。其余都在插件包里。

  2. 下载插件包

    到 GitHub Release 的 Assets 下载 open-artifact-plugins.zip,解压到一个长期保留的位置,用解压出的 open-artifact-plugins/ 目录按下面的步骤安装。DeepSeek Harness 和 Pi 直接从 npm 安装。

    到 GitHub Releases 下载

  3. 装进你的 Agent 应用

    Claude Code CLI、桌面版、IDE

    1. 把解压目录添加为插件市场,再安装 open-artifact@open-artifact。
    claude plugin marketplace add "/path/to/open-artifact-plugins"
    claude plugin install open-artifact@open-artifact

    Claude Code 完整指南

    Codex CLI、应用,以及 ChatGPT 桌面版

    1. 把解压目录添加为插件市场。
    2. 到 Plugins 里安装 Open Artifact。
    codex plugin marketplace add "/path/to/open-artifact-plugins"

    Codex 完整指南

    Cursor 本地插件

    1. 把解压出的 cursor/ 复制到 Cursor 的本地插件目录。
    2. 运行 Developer: Reload Window。
    mkdir -p ~/.cursor/plugins/local
    cp -R "/path/to/open-artifact-plugins/cursor" ~/.cursor/plugins/local/open-artifact

    Cursor 完整指南

    GitHub Copilot CLI 命令行

    1. 把解压目录添加为插件市场,再安装 open-artifact@open-artifact。
    copilot plugin marketplace add "/path/to/open-artifact-plugins"
    copilot plugin install open-artifact@open-artifact

    GitHub Copilot CLI 完整指南

    Copilot in VS Code VS Code 聊天

    1. 运行 Chat: Install Plugin from Source。
    2. 选择解压出的 copilot/ 目录。

    Copilot in VS Code 完整指南

    Antigravity 插件

    1. 用 agy 安装解压出的 antigravity/,或把它复制到 ~/.gemini/config/plugins/open-artifact。
    2. 重启应用。
    agy plugin install "/path/to/open-artifact-plugins/antigravity"

    Antigravity 完整指南

    ZCode 插件市场

    1. 在插件市场里把解压出的 zcode/ 添加为插件市场。
    2. 从列表里安装 Open Artifact。

    ZCode 完整指南

    网页版 ChatGPT 通过 HTTPS 接入的连接器

    1. 从解压出的 chatgpt/ 运行连接器,它会打印一个带密钥路径的本地地址。
    2. 通过 HTTPS 暴露 4891 端口(例如用隧道),再在 ChatGPT 里把它添加为自定义 MCP 服务器。
    node "/path/to/open-artifact-plugins/chatgpt/skills/open-artifact/scripts/open-artifact.mjs" chatgpt --workspace ~/Documents

    网页版 ChatGPT 完整指南

    DeepSeek Harness 从 npm 安装

    1. 在插件页面选择「添加插件」,输入 npm 包名 dsh-open-artifact。
    2. 或者在 CLI 里为 web profile 安装:
    dsh plugin --profile web add dsh-open-artifact

    DeepSeek Harness 完整指南

    Pi 从 npm 安装

    1. 安装这个包,然后开一个新的 Pi 会话。
    pi install npm:pi-open-artifact

    Pi 完整指南

    其他任何 Agent Skill + 命令行

    1. 把解压目录里的 codex/skills/open-artifact/ 复制到 Agent 的 skill 目录。它自带后台服务,Agent 通过命令行使用。
    2. 在解压目录中可以试试:
    node codex/skills/open-artifact/scripts/open-artifact.mjs artifact '{"action":"list","scope":"types"}'

    其他任何 Agent 完整指南

  4. 试一个提示

    在新会话里试试下面这些:

    /open-artifact slides a 6-slide pitch for this repo
    /open-artifact design three landing page options for a coffee shop
    /open-artifact whiteboard a retro board for last sprint
    /open-artifact sheets 按类别统计并汇总的月度预算表
    /open-artifact data 基于 signups.csv 制作按月注册看板
    /open-artifact docs 一份 2027 年的招聘计划,包括岗位、预算和时间线
    /open-artifact motion a 20-second launch animation for this app
    /open-artifact page a team lunch poll that remembers every vote

    在能显示 MCP Apps 的应用里,Agent 还会多一个 ShowArtifact 工具,把作品的实时页面直接放进对话。

全部 Agent 应用

Agent 应用安装方法
Claude CodeCLI、桌面版、IDE把解压目录添加为插件市场,再安装 open-artifact@open-artifact。claude plugin marketplace add "/path/to/open-artifact-plugins" claude plugin install open-artifact@open-artifact
CodexCLI、应用,以及 ChatGPT 桌面版把解压目录添加为插件市场。 到 Plugins 里安装 Open Artifact。codex plugin marketplace add "/path/to/open-artifact-plugins"
Cursor本地插件把解压出的 cursor/ 复制到 Cursor 的本地插件目录。 运行 Developer: Reload Window。mkdir -p ~/.cursor/plugins/local cp -R "/path/to/open-artifact-plugins/cursor" ~/.cursor/plugins/local/open-artifact
GitHub Copilot CLI命令行把解压目录添加为插件市场,再安装 open-artifact@open-artifact。copilot plugin marketplace add "/path/to/open-artifact-plugins" copilot plugin install open-artifact@open-artifact
Copilot in VS CodeVS Code 聊天运行 Chat: Install Plugin from Source。 选择解压出的 copilot/ 目录。
Antigravity插件用 agy 安装解压出的 antigravity/,或把它复制到 ~/.gemini/config/plugins/open-artifact。 重启应用。agy plugin install "/path/to/open-artifact-plugins/antigravity"
ZCode插件市场在插件市场里把解压出的 zcode/ 添加为插件市场。 从列表里安装 Open Artifact。
网页版 ChatGPT通过 HTTPS 接入的连接器从解压出的 chatgpt/ 运行连接器,它会打印一个带密钥路径的本地地址。 通过 HTTPS 暴露 4891 端口(例如用隧道),再在 ChatGPT 里把它添加为自定义 MCP 服务器。node "/path/to/open-artifact-plugins/chatgpt/skills/open-artifact/scripts/open-artifact.mjs" chatgpt --workspace ~/Documents
DeepSeek Harness从 npm 安装在插件页面选择「添加插件」,输入 npm 包名 dsh-open-artifact。 或者在 CLI 里为 web profile 安装:dsh plugin --profile web add dsh-open-artifact
Pi从 npm 安装安装这个包,然后开一个新的 Pi 会话。pi install npm:pi-open-artifact
其他任何 AgentSkill + 命令行把解压目录里的 codex/skills/open-artifact/ 复制到 Agent 的 skill 目录。它自带后台服务,Agent 通过命令行使用。 在解压目录中可以试试:node codex/skills/open-artifact/scripts/open-artifact.mjs artifact '{"action":"list","scope":"types"}'

升级

下载新版 ZIP,把解压目录替换到原来的路径,再按对应应用指南里的步骤刷新插件。DeepSeek Harness 有新版时,在 Open Artifact 页面点「更新」即可。

从源码构建

想参与 Open Artifact 本身的开发,就克隆仓库自己构建。构建好的每个类型文件夹也能不依赖 daemon 单独运行。

git clone https://github.com/JimLiu/open-artifact.git
cd open-artifact
npm ci
npm run build
node scripts/build-plugins.mjs   # dist/plugins/ stands in for the extracted ZIP