How to Upload and Download Session Filespublic

Last verified 21 Sep 2026

DigitalOcean Harness Runtime provides managed, hardware-isolated microVM sandboxes with built-in tools such as Chromium to run harnesses and execute arbitrary code. Rich lifecycle APIs preserve conversational history and working state across sessions, letting you pause, resume, and fork work to control costs and adapt to the nonlinear nature of agentic workflows. Scale complete agents such as Claude Code or use sandboxes independently for code execution, all through the same service. See What You Can Build for example use cases.

Use doctl to move files between your local machine and a running sandbox workspace.

Note

Maximum file size for upload and download is 50 GiB per file.

To upload a local file into the sandbox workspace:

doctl harness-runtime upload <name> \
  --local-file ~/myfile.txt \
  --workspace-path myfile.txt

Replace <name> with the session name or ID.

To download a file the agent produced from the sandbox workspace:

doctl harness-runtime download <name> \
  --workspace-path output.txt \
  --save-to ~/output.txt

We can't find any results for your search.

Try using different keywords or simplifying your search terms.