Artifacts
Artifacts
An artifact is a file shared by URL: a report, a build output, a screenshot, a log. An agent uploads it and hands out the link, in a message, an MR comment or a chat answer. Artifacts belong to the project, are stored encrypted, and outlive the machine that made them.
space-env artifact put report.html
space-env artifact put build.log --name runs/42/build.log --ttl 30d --lease 2d
space-env artifact list --prefix runs/42/
space-env artifact get runs/42/build.log -o build.log
space-env artifact rm runs/42/build.log- The URL is a bearer link. Anyone who has it can download the file until its lease
ends (
--lease, default 7 days, never past the artifact’s life). There is no way to get a new URL for an existing artifact: upload it again.listshows no URLs. - The artifact lives
--ttl, by default and at most your plan’s retention, or until its project is deleted. - A name is segments of
A-Z a-z 0-9 . _ -separated by/(runs/42/report.html), at most 200 characters; by default the file’s name. Uploading to a name that exists replaces the content and keeps the links: they serve the new file. - Images an agent makes (Codex’s image generation, say) over 256 KB go to artifacts of
their own,
agent-images/<hash>.png, and its chat links them rather than holding the whole picture: a chat with many large pictures would be too big to load. - At most 1 GiB per file. HTML, SVG and XML always download, never open in the browser: to show a page, share it.
From your own computer, space artifacts does the same in the project of your API key
(reference). Every option is in the
space-env reference.
Last updated on