Skip to main content
The 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:
  1. Upload files from local filesystem
  2. Agents stage files into sandbox using sandbox_stage_file
  3. Agents process data in the sandbox
  4. Agents publish results using sandbox_publish_file
  5. 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.
You can use either the full key (files/f_abc123) or just the file ID (f_abc123)—it auto-expands.

List

List files in the object store.
Example output:

Info

Show metadata for a file.
Output:

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

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

Fix: Ensure NATS is running or set custom URL:
Fix: Verify the file key:
Fix: Increase 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