create-openclawd
create-openclawd
One-command scaffolder for OpenClawd OS. Drops the whole agentic OS into a new folder, installs deps, and points you at the setup wizard.
npm create openclawd@latest my-aiosThat creates my-aios/, copies the OS in, runs npm install, then drops you straight into the interactive setup wizard. When the wizard finishes, the only thing left is npm run dev.
Options
npm create openclawd@latest my-aios -- --no-setup # stop after install
npm create openclawd@latest my-aios -- --no-install # files only (implies --no-setup)
npm create openclawd@latest . -- --force # scaffold into a non-empty folder
npm create openclawd@latest -- --helpNote the -- before flags: it tells npm to pass them through to the scaffolder instead of eating them.
How it works
- The published package bundles
template/, a clean copy of the OpenClawd OS repo (source, agents, skills, warroom, scripts, configs). Nonode_modules,dist,store, or secrets are included. index.mjscopiestemplate/into your target dir and renames the shippedgitignoreback to.gitignore(npm strips files literally named.gitignorefrom tarballs).- After install it launches
npm run setupfor you (the interactive wizard). The wizard still prompts for keys + bot token, so nothing secret is automated, you just skip the manualcd+ retype. Pass--no-setupto stop after install.
The repo root stays the single source of truth. template/ is generated, never hand-edited, and is gitignored.
Testing it locally (before publishing)
cd packages/create-openclawd
node prepare-template.mjs # build ./template from the repo root
node index.mjs ../../_scaffold-test --no-install
# inspect _scaffold-test/, then delete itPublishing
template/ is rebuilt automatically on npm pack/npm publish via the prepack script, so you do not commit it.
cd packages/create-openclawd
npm publish --access public # bump version first if neededAfter it is live, npm create openclawd@latest <dir> works from any machine with Node 20+.
The bare name openclawd is already taken on npm, but the scaffolder name create-openclawd is free, which is all npm create openclawd needs. Keep this package's version in step with the root app version so users can tell which OS build they are scaffolding.