Install
openclaw skills install gitloadThis skill should be used when the user asks to "download files from GitHub", "fetch a folder from a repo", "grab code from GitHub", "download a GitHub repository", "get files from a GitHub URL", "clone just a folder", or needs to download specific files/folders from GitHub without cloning the entire repo.
openclaw skills install gitloadDownload files, folders, or entire repos from GitHub URLs using the gitload CLI.
Use gitload when:
Do NOT use gitload when:
git clone instead)Run gitload via npx (no install needed):
npx gitload-cli https://github.com/user/repo
Or install globally:
npm install -g gitload-cli
gitload https://github.com/user/repo
Creates a repo/ folder in the current directory.
gitload https://github.com/user/repo/tree/main/src/components
Creates a components/ folder with just that folder's contents.
gitload https://github.com/user/repo/blob/main/README.md
gitload https://github.com/user/repo/tree/main/src -o ./my-source
gitload https://github.com/user/repo/tree/main/templates -o .
gitload https://github.com/user/repo -z ./repo.zip
gitload https://github.com/user/private-repo --gh
Requires prior gh auth login.
gitload https://github.com/user/repo --token ghp_xxxx
export GITHUB_TOKEN=ghp_xxxx
gitload https://github.com/user/repo
Token priority: --token > GITHUB_TOKEN > --gh
gitload accepts standard GitHub URLs:
https://github.com/user/repohttps://github.com/user/repo/tree/branch/path/to/folderhttps://github.com/user/repo/blob/branch/path/to/file.extgitload https://github.com/org/templates/tree/main/react-starter -o ./my-app
cd my-app && npm install
gitload https://github.com/org/examples/tree/main/authentication
gitload https://github.com/org/project/tree/main/docs -z ./docs.zip
gitload https://github.com/org/configs/blob/main/.eslintrc.json -o .
| Option | Description |
|---|---|
-o, --output <dir> | Output directory (default: folder named after URL path) |
-z, --zip <path> | Save as ZIP file at the specified path |
-t, --token <token> | GitHub personal access token |
--gh | Use token from gh CLI |
--no-color | Disable colored output |
-h, --help | Display help |
-V, --version | Output version |
If gitload fails:
--gh or --tokenrepo scopegit clone if history is needed)