Documentation Index
Fetch the complete documentation index at: https://docs.castari.com/llms.txt
Use this file to discover all available pages before exploring further.
Working with Files
This guide covers how to provide files to your agents using Castari’s managed file storage.Quick Start
/files/agent/data.csv.
Uploading Files
CLI Upload
Dashboard Upload
- Go to Files in the sidebar
- Click Upload File
- Drag & drop or select a file
- Add optional description and tags
- Click Upload
Large Files
Files larger than 10MB automatically use presigned uploads:Attaching Files to Agents
Basic Attachment
/files/agent/<filename> in the sandbox.
Custom Mount Path
Writable Files
By default, files are read-only. For writable files:Using Files in Agent Code
Reading Files
Parsing Common Formats
CSV:Checking File Existence
Managing Files
List Your Files
View File Details
Delete Files
Deleting a file automatically detaches it from all agents.
Download Files
Agent File Management
List Attached Files
Detach Files
Dashboard File Management
Files Page
The Files page shows:- All your uploaded files
- Storage usage bar
- Quick search and filtering
Agent Files Section
Each agent’s detail page has an Attached Files section:- View attached files and mount paths
- Attach new files with the file picker
- Detach files you no longer need
Storage Usage
Check Your Quota
Storage Limits
| Plan | Limit |
|---|---|
| Free | 100 MB |
| Pro | 10 GB |
| Enterprise | Custom |
Best Practices
File Organization
- Use meaningful names —
customer-data-2024.csvnotdata.csv - Add descriptions — Document what each file is for
- Tag consistently — Use tags like
dataset,config,reference - Clean up unused files — Delete files you no longer need
Performance
- Keep files reasonably sized — Under 100MB for best performance
- Use appropriate formats — CSV/JSON for structured data
- Consider streaming — For very large files, process in chunks
Security
- Don’t upload secrets — Use Secrets for credentials
- Review before attaching — Only attach files agents actually need
- Verify file integrity — Check SHA256 hash for critical files
Common Patterns
Configuration Files
Data Processing
Reference Documents
Troubleshooting
File Not Found
If your agent can’t find a file:-
Verify the file is attached:
- Check the mount path in the output
- Ensure you’re using the correct path in code
Upload Failures
For upload issues:-
Check your storage quota:
- Verify the file exists locally
- For large files, ensure stable network connection
Permission Errors
If you get permission errors:- Files are read-only by default
- Use
--writablewhen attaching if writes are needed - Check file mode in
cast agents files list
See Also
- Managed Files Concept — How file storage works
- cast files — CLI reference
- Storage Buckets — BYO storage for large datasets