/home/agent.
Agents that improve over time
The filesystem has a persistent region calledshared/ that survives between executions. Before each run, all previously saved shared files are restored into the sandbox. Anything the agent writes to shared/ during the run is synced back to durable storage when the execution finishes. That means an agent can:
- Remember how a workflow works โ save step-by-step procedures so future runs skip the trial-and-error phase.
- Record site-specific gotchas โ note that a portal requires a specific click order, or that a form silently drops data if submitted too fast.
- Store and refine scripts โ write Playwright scripts during one run, then reuse and improve them on the next (see Scripted mode).
- Build up knowledge โ accumulate extracted data, summaries, or reference files the model can read via file tools.
Directory layout
Each execution mounts a filesystem under/home/agent with four regions:
| Directory | Scope | Quota | Purpose |
|---|---|---|---|
shared/ | Persists across all executions | 50 MB | Durable memory โ scripts, notes, extracted data, learned procedures |
workspace/ | Current execution only | 500 MB | Scratch space for in-progress work |
downloads/ | Current execution only | 500 MB | Browser downloads land here (see Environments) |
uploads/ | Current execution only | 200 MB | Files attached via API or staging |
shared/. Everything else goes in workspace/.
Staging Files
Pre-upload files before starting an execution
File Downloads
Automatically download files from websites
File Reading
Read and process images, PDFs, CSVs, and other file types
File Uploads
Upload files to web forms and applications
API Access
Programmatically manage files through the Asteroid Odyssey SDK
Staging Files
Use staging files when you need to provide files to an execution before it starts.
If your execution is already running, use Upload files to an execution instead.
How It Works
- Stage: Upload files via
POST /temp-files/{organizationId}- this returns an array of temp file objects withidandname - Execute: Pass the temp file array in the
tempFilesparameter when callingPOST /agents/{agentId}/execute - When the execution starts, your staged files are automatically attached to the execution context
Code Examples
File Downloads
Your agents can download files from websites during browser automation sessions. Files land under/home/agent/downloads and sync like other agent directories; use List Files and related tools rather than forcing download.saveAs() into custom paths.
Downloaded files appear in the Files area of the execution UI and in API/SDK file listings.
File Reading
Asteroid agents can read and process various file types.Supported File Types
- Images (PNG, JPEG)
- PDFs
- Text Files (TXT, MD)
- CSVs
File Uploads
Agents can upload files to web applications using the Upload File tool, which supports:- Local file uploads
- Previously downloaded files (using
downloads/filenameformat)
API Access
File upload and downloads are also available programmatically through the Asteroid Odyssey SDK:Stage Files Endpoint
Stage files before you start an execution.
Upload Files Endpoint
Upload files to an execution that is already running.

