Skip to main content
The default artifact root is /home/desktop/artifacts. Public artifact methods accept safe relative paths under that root.

Write and read an artifact

Use a separate prefix for each run. This prevents unrelated runs from writing the same file.

Upload and download files

List or delete public artifacts with the same relative paths:
logs/, manifest.ndjson, and traces/actions.ndjson are internal control paths. Read process logs through computer.processes.logs() or computer.processes.stderr().

Understand default storage

Artifact files use the Sandbox filesystem by default. They disappear when the Sandbox terminates. Mount a Modal Volume v2 when files must remain after termination. Set persist_artifacts=True and call computer.artifacts.sync() before you terminate the Sandbox.

Persist to a Modal Volume v2

The sync contract supports Modal Volume v2. Modal Volume v1 is not a supported immediate-sync target for this package. An existing reader must reload its Volume view after the writer commits. Avoid concurrent writes to one path because Volume conflict resolution uses the last writer.
Artifact paths and URIs can reveal run details. Do not log them unless your logging policy permits that data.