stn files commands manage files in NATS Object Store for staging data to/from sandbox containers.
Overview
Files serve as a staging area between your local system and sandbox containers:- Upload files from local filesystem
- Agents stage files into sandbox using
sandbox_stage_file - Agents process data in the sandbox
- Agents publish results using
sandbox_publish_file - Download results to local filesystem
File staging bypasses LLM context entirely—no token costs, no size limits, full binary support.
Commands
Upload
Upload a file to NATS Object Store.Download
Download a file from the object store.List
List files in the object store.Info
Show metadata for a file.Delete
Delete a file from the object store.File Key Conventions
Station uses a hierarchical key structure:
File ID format:
f_{ulid} (time-ordered, globally unique)
Local vs Remote Mode
- Local Mode
- Remote Mode
Connects directly to NATS JetStream on the local machine.Requires NATS server running locally.
Complete Example
Process a large CSV file through a sandbox workflow:Configuration
Environment Variables
Station Config
Troubleshooting
Connection Failed
Connection Failed
File Not Found
File Not Found
File Too Large
File Too Large
storage.max_file_size in config or split the file.Next Steps
Sandbox Execution
Learn about sandbox file staging tools
Workflows
Build multi-step agent pipelines

