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.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-crabbox-apps-9c4699ed2854 ,按照其中的说明把「crabbox-apps」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
"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.
exec as needed.exec and background: true. Retain its processId for
status, logs, and stop. Do not detach a shell process to escape lifecycle ownership.computer tool is available, select the returned environmentId
and observe the application. CUA operates on the same desktop shown by VNC.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.portal tool is available, open a portal for the environment and
application's port using environmentId. Keep its portal ID and public URL.exec, background: true, and the
application's PORT and PUBLIC_URL set explicitly. Verify it responds.screen tool is available, use portal_show with the returned
portalId and dock: "right". Show the web application directly in the portal.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.
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.
This path needs no Gateway restart or persistent egress setting. See the
setup, runnable example, and recovery guide.
Reopen the current environment or portal for "show me again". A viewer reconnect
must not allocate another machine. Before showing a remembered portal, confirm
it still exists with portal list; portal IDs can expire across Gateway restarts.
If it is gone, open a replacement for the same environment and running app port,
then show and verify that new portal. Refresh the app's PUBLIC_URL if it relies
on that URL for links or redirects. Use process_status to inspect a launched
app and process_stop to stop just that process. stop releases the entire
temporary environment. Closing the side panel only hides the view.
Observe again before CUA input. When the user takes desktop control, stop sending input until they release control; screenshot reads may continue. Never work around a control-ownership refusal with shell-injected clicks.
The machine is disposable and follows its configured lifetime. Preserve requested outputs before stopping it; the conversation transcript alone is not a backup of remote files.