跳到正文
Skillpedia
部署与云(DevOps)394k · #16

crabbox-apps

它能做什么

它指导 AI 智能体在临时的 Crabbox 机器上启动原生或网页应用,并展示给你看。它适合想在另一台机器上运行或查看应用的人。

适用场景

  • ✓想在临时机器上打开应用并在聊天中查看的时候。
  • ✓需要在干净的机器上测试原生桌面应用或网页应用的时候。
  • ✓想让智能体在临时机器上操作应用,而你在旁边观看的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/extensions/crabbox/skills/crabbox-apps/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/extensions/crabbox/skills/crabbox-apps/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在 Crabbox 中打开我的网页应用,并在侧边栏里给我看首页。”

每周 5 个新技能,1 分钟读完。

工作原理

技能先检查是否已有环境,然后创建或复用合适的机器。它会安装或构建应用、启动应用,并在你的侧边栏中打开其画面。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Apps in Crabbox

"Open in Crabbox and show me" means launch the working application and open its view in the requesting user's chat side panel. Finish both operations.

Use the enabled crabbox tool to inspect the current attachment before creating one. Reuse that environment for follow-ups. profiles discovers configured profiles; choose one compatible with the application. Native desktop viewing and CUA require a desktop-enabled profile. Never silently substitute another OS for an application that requires a particular platform.

create attaches the machine to this conversation without moving the agent or its primary workspace. For an open-and-show request with the screen capability available, pass presentation: "desktop" for a native app or presentation: "portal" for a web app. This opens the right sidebar with machine startup progress before provisioning finishes. Its result identifies the environment. Use exec for commands on that environment; the ordinary shell still has its existing target. Copy or recreate the task's required files explicitly. Do not assume the local project was synchronized.

Native apps

  1. Install or build the app using remote exec as needed.
  2. Launch it with exec and background: true. Retain its processId for status, logs, and stop. Do not detach a shell process to escape lifecycle ownership.
  3. When the computer tool is available, select the returned environmentId and observe the application. CUA operates on the same desktop shown by VNC.
  4. When the screen tool is available, call desktop_show with that environmentId and dock: "right". Verify the app is ready before claiming success. An allocated machine or a blank desktop alone is insufficient.

Web apps

  1. When the portal tool is available, open a portal for the environment and application's port using environmentId. Keep its portal ID and public URL.
  2. Start the web server with remote exec, background: true, and the application's PORT and PUBLIC_URL set explicitly. Verify it responds.
  3. When the screen tool is available, use portal_show with the returned portalId and dock: "right". Show the web application directly in the portal.
  4. For CUA testing, use the attached environment's browser against the same server. The remote browser and the user's portal have separate cookies and browser state; do not assume they share a login or page navigation.

If an essential tool or desktop capability is unavailable, report the missing capability and the actual completed state. A portal that the user's browser cannot reach is not a completed preview. Preserve the separate-origin portal transport; never expose arbitrary application scripts on the Gateway origin.

Apps that call a model API

Cloud-agent inference already uses Gateway-held authentication. An application inside the lease making its own API calls needs a separate protected route. For an exclusively owned coordinator-backed Linux lease, use the host CLI:

openclaw crabbox run --id <lease-id> --model <provider/model> -- <command> <args>

Run from the credential-owning host and the local project directory that owns the lease. Prepare source and dependencies first: the command skips sync and hydration, and its bridge permits only the model host. A lease ID does not override Crabbox's repository claim. Require no active egress session and a Crabbox binary supporting egress run --upstream-proxy-env. Crabbox owns the foreground bridge, remote command, and session cleanup.

The provider must have a configured API-key SecretRef and an OpenAI-compatible HTTPS endpoint on port 443. Auth-profile/OAuth credentials, custom headers, and request transport overrides are unsupported. The CLI injects a sentinel as OPENAI_API_KEY, plus OPENAI_BASE_URL, OPENAI_MODEL, proxy settings, and public CA trust. The actual key and upstream proxy credentials stay on the host. Use a client that honors the proxy and CA environment; Node.js needs NODE_USE_ENV_PROXY support, while Python's default urllib.request opener honors the environment. Custom SDK clients may need explicit proxy/trust setup.

Keep this command alive for the full app lifetime. Do not detach the app or copy a key into the box. Ordinary tool exec and background do not acquire this model grant. Cancellation revokes access before cleanup; if settlement is uncertain, inspect the named session and remote process before reusing the lease.

常见问题

它能在任何操作系统上运行应用吗?

不能。它会保留应用所需的平台,不会悄悄切换到其他系统。

它会复制我本地的项目文件吗?

不会。文件不会自动同步,所需文件必须在该机器上复制或重新创建。

后续请求能复用同一台机器吗?

可以。它会检查当前的连接状态,并在后续工作中复用该环境。

详情

作者的原始描述

Use when asked to open, run, test, or show an app in Crabbox, including native desktops, web previews, and computer use on a temporary machine.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#16
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能