You have an SVM (a Linux workspace) at the URL in SVM_URL. Read https://slashinfra.com/docs/reference/limits.md before choosing timeouts, upload sizes or concurrency. Do not print SVM_KEY or include it in logs or source files. Send Authorization: Bearer $SVM_KEY to the SVM API. The URL alone grants no access. These requests operate on the same files and processes: Run a script: curl -sS -D - -H "Authorization: Bearer $SVM_KEY" --data-binary @- "$SVM_URL/bin/bash" <<'SCRIPT' cd /home/user && pwd SCRIPT Read a file: curl -fsS -H "Authorization: Bearer $SVM_KEY" "$SVM_URL/home/user/result.txt" Write a file; its parent directory must exist: curl -fsS -T input.txt -H "Authorization: Bearer $SVM_KEY" "$SVM_URL/home/user/input.txt" Check X-Exit-Code on command replies: HTTP 200 can contain a command failure. If X-Truncated is 1, write results to a file and read that file. For long work, use a background job and poll its log rather than repeating a command that may still be running. Each request starts a new shell. Keep reusable state in files. The workspace retains files across sleep and can retain idle processes through hibernation. Use the existing SVM unless the task requires a separate workspace. Ask before deleting a workspace that contains useful work. Task guides: https://slashinfra.com/docs/build/files-and-programs.md https://slashinfra.com/docs/build/background-work.md https://slashinfra.com/docs/platform/browser-and-desktop.md Treat HTTP 401 as a credential problem, 404 as an unavailable path or SVM, and 429 as a reason to wait for Retry-After. Read https://slashinfra.com/docs/reference/errors.md for other failures. Keep commands safe to retry when they affect external systems.