Transfer files to and from GPU instances without manual SCP commands. Your AI agent handles uploads, downloads, and file verification.
”Upload my training script and config to the training instance.”
The agent transfers files directly:
list_instances — finds the target instance
file_upload — uploads train.py to /workspace/train.py
file_upload — uploads config.yaml to /workspace/config.yaml
ssh_execute — runs ls -lh /workspace/ to confirm
Uploaded 2 files to training-run:
| File | Size | Remote Path |
|---|
| train.py | 3.8 KB | /workspace/train.py |
| config.yaml | 512 B | /workspace/config.yaml |
Both files verified on the instance.
”Download the trained model weights and the training log.”
The agent retrieves files from the instance:
ssh_execute — runs ls -lh /workspace/output/ to see what’s there
file_download — downloads /workspace/output/model.safetensors
file_download — downloads /workspace/output/training.log
Files on the instance:
-rw-r--r-- 1 root root 1.2G model.safetensors
-rw-r--r-- 1 root root 48K training.log
-rw-r--r-- 1 root root 2.1K config.json
Downloaded model.safetensors (1.2 GB) and training.log (48 KB).
File upload and download have a 10MB limit per transfer. For larger files, use ssh_execute with wget or curl to transfer directly between instances or from external URLs.
”Upload a requirements.txt and install everything on my dev-box.”
The agent combines file transfer with command execution:
file_upload — uploads requirements.txt to /root/requirements.txt
ssh_execute — runs pip install -r /root/requirements.txt
ssh_execute — runs pip list | wc -l to confirm packages installed
Uploaded requirements.txt (28 packages) to dev-box.
Installation output:
Successfully installed torch-2.4.0 transformers-4.44.0 ...
28 packages installed. Environment is ready.
| Tool | Purpose |
|---|
list_instances | Find the target instance |
file_upload | Transfer files to an instance (max 10MB) |
file_download | Retrieve files from an instance |
ssh_execute | Verify uploads, list remote files, run install commands |