daytona

GitHub

提供Daytona CLI安装、认证及沙箱管理指南,涵盖身份验证陷阱、长期沙箱启动与调试方法,辅助解决基础设施配置问题。

.opencode/skills/daytona/SKILL.md different-ai/openwork

Trigger Scenarios

Daytona CLI安装或认证失败 沙箱环境启动或调试需求 排查身份验证或内存限制错误

Install

npx skills add different-ai/openwork --skill daytona -g -y
More Options

Non-standard path

npx skills add https://github.com/different-ai/openwork/tree/dev/.opencode/skills/daytona -g -y

Use without installing

npx skills use different-ai/openwork@daytona

指定 Agent (Claude Code)

npx skills add different-ai/openwork --skill daytona -a claude-code -g -y

安装 repo 全部 skill

npx skills add different-ai/openwork --all -g -y

预览 repo 内 skill

npx skills add different-ai/openwork --list

SKILL.md

Frontmatter
{
    "name": "daytona",
    "description": "Daytona CLI setup, sandbox debugging, keep a sandbox alive, secrets volume, snapshot refresh. Use when Daytona itself is the problem, not for running tests (see run-tests)."
}

Daytona

Use this skill for Daytona infrastructure, not test placement.

Setup

Install the Daytona CLI with brew install daytonaio/cli/daytona, then authenticate:

daytona login

Which identity the CLI uses

  • Environment key. The CLI uses DAYTONA_API_KEY only when DAYTONA_API_URL=https://app.daytona.io/api is also set; with the key alone it silently falls back to the saved profile. Scope the team key (Infisical dev, /openwork-ops) to one command: DAYTONA_API_URL=https://app.daytona.io/api DAYTONA_API_KEY="$(infisical secrets get DAYTONA_API_KEY --env dev --path /openwork-ops --plain --silent)" <command>.
  • Saved profile. Otherwise the active profile in $DAYTONA_CONFIG_DIR/config.json (default: macOS ~/Library/Application Support/daytona/, Linux ~/.config/daytona/, Windows %APPDATA%\daytona\). Point DAYTONA_CONFIG_DIR at an empty directory to test the not-logged-in path without touching the real profile.
  • Never run daytona login --api-key on someone's machine for a one-off task. It overwrites their profile, and with it their browser login, for every tool. A key printed as *not found* (Infisical CLI 0.28.x exits 0 on a missing secret) is not a key.
  • Personal-organization trap. A browser login may default to the person's personal organization: a 10 GiB total memory cap and none of the team's warm snapshots, so multi-sandbox previews fail with a memory-limit error. pnpm world plan <world> --place daytona prints the identity and organization in use and warns on a personal one.
  • Version warning. "Daytona CLI is on vX and API is on vY" on every call is a warning, usually not the cause of a failure; fix it with brew upgrade daytonaio/cli/daytona.

To run tests, just use pnpm evals:e2e <slug> — it picks Daytona automatically when the CLI is authenticated. --local forces local; --daytona requires Daytona and fails when it is unavailable.

For a PR preview that should open inside Codex and support named scenarios, use preview-my-work. It composes the same maintained world and Daytona primitives with scoped ownership and teardown.

Long-lived manual Electron sandbox

Run bash .devcontainer/test-on-daytona.sh <ref>. The maintained helper uses the reusable desktop snapshot, starts XFCE/noVNC, Vite, and Electron, and prints the sandbox and preview URLs. Keep that sandbox for exploration or debugging instead of reproducing its provisioning commands.

Long-lived manual server sandbox

Run bash .devcontainer/test-server-on-daytona.sh <ref>. It starts the separate MySQL, Den API, and Den Web sandbox and prints public URLs for a desktop sandbox to consume. Use this helper rather than assembling the server manually.

Debugging

Inspect /tmp/start-vnc.log, /tmp/vite.log, /tmp/electron.log, and /tmp/den-api.log in the relevant sandbox. Electron CDP is port 9825; get CDP and noVNC URLs with:

daytona preview-url <sandbox> -p 9825
daytona preview-url <sandbox> -p 6080

Secrets

bash .devcontainer/setup-daytona-secrets-volume.sh <local-env> <name>.env

Electron sandboxes mount the reusable secrets volume at /daytona-secrets.

Snapshot refresh

bash .devcontainer/create-daytona-openwork-snapshot.sh
bash .devcontainer/create-daytona-openwork-server-snapshot.sh

Teardown

daytona delete <sandbox>

Version History

  • b73f6c6 Current 2026-10-19 21:56

    新增CLI身份验证详细规则(环境变量与配置文件优先级)、个人组织陷阱警告及版本不匹配诊断说明。

  • c26be48 2026-09-23 01:45

Same Skill Collection

.opencode/skills/add-a-feature/SKILL.md
.opencode/skills/agent-first-screenshots/SKILL.md
.opencode/skills/browser-automation/SKILL.md
.opencode/skills/build-a-witness/SKILL.md
.opencode/skills/cloud-dashboard-walkthrough/SKILL.md
.opencode/skills/create-plugin/SKILL.md
.opencode/skills/daytona-chrome-cdp/SKILL.md
.opencode/skills/daytona-cloud-instance/SKILL.md
.opencode/skills/daytona-cloud-server/SKILL.md
.opencode/skills/daytona-dev/SKILL.md
.opencode/skills/daytona-electron-den/SKILL.md
.opencode/skills/daytona-electron-test/SKILL.md
.opencode/skills/daytona-flow-validator/SKILL.md
.opencode/skills/daytona-recording-artifacts/SKILL.md
.opencode/skills/daytona-secrets-volume/SKILL.md
.opencode/skills/daytona-seeded-cloud-demo/SKILL.md
.opencode/skills/daytona-windows-cert/SKILL.md
.opencode/skills/diagnose-a-red-run/SKILL.md
.opencode/skills/drive-desktop-cdp/SKILL.md
.opencode/skills/fake-model-faults/SKILL.md
.opencode/skills/fix-design-notes/SKILL.md
.opencode/skills/fraimz/SKILL.md
.opencode/skills/get-env-var/SKILL.md
.opencode/skills/hunt-a-prod-error/SKILL.md
.opencode/skills/measure-chat-flicker/SKILL.md
.opencode/skills/open-a-pr/SKILL.md
.opencode/skills/openwork-models/SKILL.md
.opencode/skills/preview-my-work/SKILL.md
.opencode/skills/product-tutorial-pipeline/SKILL.md
.opencode/skills/prove-a-pr/SKILL.md
.opencode/skills/publish-evidence/SKILL.md
.opencode/skills/record-a-demo/SKILL.md
.opencode/skills/release/SKILL.md
.opencode/skills/reproduce-chat-states/SKILL.md
.opencode/skills/review-a-contributor-pr/SKILL.md
.opencode/skills/run-evals/SKILL.md
.opencode/skills/run-tests/SKILL.md
.opencode/skills/shadcn/SKILL.md
.opencode/skills/upload-photo/SKILL.md
.opencode/skills/validate-a-release/SKILL.md
.opencode/skills/verify-openwork/SKILL.md
.opencode/skills/write-a-spec/SKILL.md
.warden/skills/confidentiality-review/SKILL.md
.warden/skills/contributor-screen/SKILL.md
.warden/skills/design-spec-review/SKILL.md
.warden/skills/desktop-den-sync-review/SKILL.md
.warden/skills/diff-security-review/SKILL.md
.warden/skills/spec-provenance-review/SKILL.md
integrations/agent-plugins/openwork-connect/skills/openwork-connect/SKILL.md

Metadata

Files
0
Version
b73f6c6
Hash
7f8592ea
Indexed
2026-09-23 01:45

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 06:20
浙ICP备14020137号-1