Download your project
Your code is yours. You can download any project at any time as a zip, a tar.gz or a git bundle. Downloads stay available when a trial has ended, so you are never locked out of your own work.
From Hyper Agent
Use the Export button for the project. It first shows a preview: file count, total size, detected stack, any credential findings, and what will be left out. You then choose the format and download.
Formats
| Format | format= |
Contents |
|---|---|---|
| Zip | zip |
Files only. Opens everywhere. |
| Tar.gz | tgz |
Files only, as a compressed tarball. |
| Git bundle | bundle |
The whole git history in one file. Restore with git clone project.bundle my-project. |
Profiles and history
| Option | Values | Meaning |
|---|---|---|
profile |
source (default), with_deps |
source leaves out dependency and build folders (node_modules, venv, .venv, dist, build, .next, __pycache__, target next to a Cargo or Maven file, vendor next to a Composer, Go or Ruby manifest, and similar). with_deps keeps them. |
history |
all (default), head |
For bundles, the full history or only the current state. |
secrets |
ask (default), exclude, include |
What to do with files whose content looks like credentials. |
What is always left out
- Files that are secrets by name: private keys (
id_rsa,*.pem,*.key,*.p12,*.pfx),.envfiles,.npmrc,.pypirc,.netrc,credentials.json,service-account*.json,terraform.tfstate,*.tfvarsand similar. Example env files (.env.example,.env.sample,.env.template) are kept. - Tool folders that hold credentials:
.ssh,.aws,.gnupg,.kube,.docker, and the project's own.ccdsettings folder. - Symlinks, special files,
.git(for zip and tar.gz),*.logfiles and editor junk.
Files with credential-looking content (for example a hardcoded API_KEY = "...") are handled by the secrets option. With the default ask, CCD stops and shows you the files, and you choose to leave them out or include them. A git bundle cannot leave files out of its history, so CCD asks you to confirm when secret-type files exist in history.
Every export includes a generated README with detected install and run commands for your stack: Node.js, Python, Go, Rust, PHP, Ruby, Java (Maven and Gradle), Docker, Docker Compose or a static site.
Size and delivery
- Zips and tar.gz files up to 40 MB stream directly.
- Larger exports are built in the background and offered as a signed link, and also as numbered parts of 32 MB each. Join the parts with
cat name.zip.part* > name.zipand check thesha256shown in the job. - Links expire after 1 hour. You can have 2 background exports running at once.
- The maximum size depends on your plan: 200 MB on Solo, 500 MB on Team, 1,024 MB on Scale, 2,048 MB on Enterprise. If a project is larger, export "source only" or a git bundle.
- Projects that live on a dedicated node can export up to 256 MB as a zip or tar.gz (git bundles use the plan limit).
- Exports are rate limited (6 exports per 10 minutes).
API
# preview what would be exported
curl -H "X-API-Key: $CCD_API_KEY" \
"$CCD_URL/api/dev/projects/$PID/export/preview?format=zip&profile=source"
# small project: download straight away
curl -H "X-API-Key: $CCD_API_KEY" -o project.zip \
"$CCD_URL/api/dev/projects/$PID/export/download?format=zip&secrets=exclude"
# big project or bundle: start a job, then poll it
curl -X POST -H "X-API-Key: $CCD_API_KEY" -H "Content-Type: application/json" \
-d '{"format":"bundle","secrets":"include"}' "$CCD_URL/api/dev/projects/$PID/export/start"
curl -H "X-API-Key: $CCD_API_KEY" "$CCD_URL/api/dev/projects/$PID/export/jobs/$XID"
A finished job returns file_url, parts[] with a URL per part, sha256, size and expires_at. Delete a finished job early with DELETE .../export/jobs/$XID.
Only the project's owner company can export it, and every export is audited.