Logo Crabbox Quickstart

Crabbox Quickstart

Tổ chứcPhổ biến
openclaw
crabbox-quickstart

First contact with Crabbox: run your repository's tests inside a disposable Docker or Podman container on your own machine, no account and no cloud spend, then stop the box. Use when someone asks what Crabbox is or how to try it, wants a throwaway sandbox for a repo with no crabbox.yaml yet, or is about to run crabbox init here; hand off to the crabbox skill for config that already exists, leased remote machines, jobs, secrets, or artifacts.

Tổng quan

Nhà phát hànhopenclaw
Kho mãcrabbox
Tên kỹ năngcrabbox-quickstart
Sao
1.4K
Bản fork
181
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được openclaw công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Crabbox Quickstart trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/openclaw/crabbox/tree/main/skills/crabbox-quickstart
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openclaw/crabbox.git /tmp/crabbox
mkdir -p .claude/skills
cp -r /tmp/crabbox/skills/crabbox-quickstart .claude/skills/crabbox-quickstart
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Crabbox Quickstart trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Crabbox Quickstart ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Crabbox Quickstart không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Crabbox Quickstart

Crabbox runs your repository's commands on a disposable box — a container on your own machine, or a remote machine you lease. It syncs your working tree, runs one command, streams the output back, and exits with that command's code.

The loop

text
lease -> sync -> run -> read output -> stop
  • Lease a box from a provider. --provider local-container uses Docker or Podman on your own machine: no account, no login, no spend.
  • Sync your current checkout onto it. Crabbox builds the file list from Git, so the directory must be a repository.
  • Run one command there. Its exit code becomes Crabbox's exit code.
  • Read the streamed output, and optionally timing and test-result files.
  • Stop the box. A one-shot run does this for you; a warm box does not.

Install and check

sh
crabbox --version                  # already installed? skip the install
brew install openclaw/tap/crabbox  # or github.com/openclaw/crabbox/releases
crabbox doctor --provider local-container

doctor with a provider is the readiness check that matters: it names the container runtime, the leases you already hold, and the image= your commands will run inside.

First run, no account needed

With Docker or Podman running, this works in any Git repository with no config file, no login, and no cloud spend:

sh
git init                                  # only if not already a repository
crabbox run --provider local-container -- uname -a

Crabbox provisioned a container, synced the dirty checkout, ran the command there, streamed its output, propagated its exit code, and deleted the lease. Budget 30-45 seconds once the base image is local, nearly all of it container startup; the very first run adds a one-time image pull.

The box is bare

Read this before swapping uname -a for real work. The default image is plain Ubuntu with git, curl, tar, python3, rsync, and passwordless sudo. No node, npm, make, gcc, go, cargo, or java. A command needing a runtime fails before your code does — usually exit 127 and make: not found, or for npm a preflight that stops the run first. Install what you need once, on a warm box:

sh
crabbox warmup --provider local-container          # prints the <slug>
crabbox run --provider local-container --id <slug> -- \
  sudo apt-get install -y make

Commands after -- are literal argv. For &&, pipes, or redirects, add --shell before -- and pass the shell source as one quoted argument. Making the setup permanent is a .crabbox.yaml job — that is the crabbox skill, not this page.

Warm a box and reuse it

One-shot runs pay for container startup every time, and throw away whatever you installed. Keep one box and send several commands to it instead:

sh
crabbox warmup --provider local-container
crabbox run --provider local-container --id <slug> -- ./run-tests.sh
crabbox status --provider local-container --id <slug>

warmup prints both a cbx_... lease id and a friendly slug; either works as --id. A cold run measured 33-45 seconds, the same run warm about 4 seconds. Above and below, ./run-tests.sh stands for your own test command.

What actually gets synced

Your dirty working tree filtered by Git, not a committed ref, so untracked-but-not-ignored files do get uploaded — minus a built-in exclude list: node_modules, dist, target, .venv, __pycache__, and other dependency and build output. That never travels; rebuild it in the box. crabbox sync-plan prints the file count, total bytes, and the largest files and directories without starting a container. Exclude anything else surprising in .crabboxignore.

Errors you will meet first

Exit 2 is a missing --provider, 6 a directory that is not a Git repository, 7 a runtime Crabbox cannot reach, 4 an --id naming no live lease. Your own command's code passes through verbatim too, so the number alone never says which failed — read the message, then rerun the doctor command above.

When your command itself fails, Crabbox exits with its code, prints a failure digest with next: commands, and drops a bundle in .crabbox/captures/. Sync excludes it; add .crabbox/ to .gitignore.

Environment and secrets

Nothing from your shell crosses into the box automatically; forwarding is an allowlist by name, set with --allow-env or env.allow in the repo config. Never put a token on a command line; the crabbox skill covers the rest.

Evidence from a run

Evidence flags attach to any run and cost no extra time:

sh
crabbox run --provider local-container --results-auto -- ./run-tests.sh

If your command writes a JUnit XML report, --results-auto finds it without being told the path and summarizes it in one line:

text
test results files=1 tests=3 failures=1 errors=0 skipped=1

If nothing writes a JUnit file the flag is a silent no-op.

Stop what you started

Boxes from warmup outlive the command; so do runs given --keep. Stop them:

sh
crabbox stop --provider local-container <slug>
crabbox list --provider local-container

An empty list means no leases remain on that provider. Local containers kept by warmup or --keep require explicit stop; they do not expire on their own.

When you outgrow this page

Stop here and load the full crabbox skill as soon as the task involves any of:

  • a repository that already has crabbox.yaml or .crabbox.yaml, including one crabbox init --detect has just written
  • any provider other than local-container, or a broker login
  • a toolchain the base image lacks that you want present on every run
  • named jobs, pools, prewarming, a fresh PR checkout, or Windows targets
  • environment or secret forwarding, artifacts, or desktop and UI proof
  • a failure that crabbox doctor output does not explain

Câu hỏi thường gặp

Kỹ năng AI Crabbox Quickstart làm được gì?

First contact with Crabbox: run your repository's tests inside a disposable Docker or Podman container on your own machine, no account and no cloud spend, then stop the box. Use when someone asks what Crabbox is or how to try it, wants a throwaway sandbox for a repo with no crabbox.yaml yet, or is about to run crabbox init here; hand off to the crabbox skill for config that already exists, leased remote machines, jobs, secrets, or artifacts.

Vì sao nên dùng Crabbox Quickstart trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Crabbox Quickstart là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Crabbox Quickstart trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/openclaw/crabbox/tree/main/skills/crabbox-quickstart. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Crabbox Quickstart?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Crabbox Quickstart với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Crabbox Quickstart với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Crabbox Quickstart có miễn phí không?

Có. Kỹ năng này được openclaw phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇