crabbox-apps
它能做什么
它指导 AI 智能体在临时的 Crabbox 机器上启动原生或网页应用,并展示给你看。它适合想在另一台机器上运行或查看应用的人。
适用场景
- ✓想在临时机器上打开应用并在聊天中查看的时候。
- ✓需要在干净的机器上测试原生桌面应用或网页应用的时候。
- ✓想让智能体在临时机器上操作应用,而你在旁边观看的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/extensions/crabbox/skills/crabbox-apps/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Install or build the app using remote
execas needed. - Launch it with
execandbackground: true. Retain itsprocessIdfor status, logs, and stop. Do not detach a shell process to escape lifecycle ownership. - When the
computertool is available, select the returnedenvironmentIdand observe the application. CUA operates on the same desktop shown by VNC. - When the
screentool is available, calldesktop_showwith thatenvironmentIdanddock: "right". Verify the app is ready before claiming success. An allocated machine or a blank desktop alone is insufficient.
Web apps
- When the
portaltool is available, open a portal for the environment and application's port usingenvironmentId. Keep its portal ID and public URL. - Start the web server with remote
exec,background: true, and the application'sPORTandPUBLIC_URLset explicitly. Verify it responds. - When the
screentool is available, useportal_showwith the returnedportalIdanddock: "right". Show the web application directly in the portal. - 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
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。