Skip to main content

Overview

Each personal CREAO agent has a durable file space — the skill folder mounted into sandbox runs (for example SKILL.md plus supporting references, scripts, and templates). CREAO CLI can upload a file to an exact path, list those files, fetch a short-lived download URL, and delete a file. Together with Update an agent, this lets you write an agent’s whole skill folder on your machine and push it as is: skill_content sets SKILL.md, and each supporting file is uploaded to the path SKILL.md refers to. No agent run rewrites the files on the way in.

Get an agent with its files

Get an agent returns the same file list in files, each with a download_url, so one request covers the whole agent. Add include=file_content to also get the text of small UTF-8 files, such as scripts and Markdown, in content:
content is filled for text and code files up to 256 KB each, in list order, until the inlined text reaches 2 MB. Binary files, larger files, and files past that budget return content: null; download them from download_url. Without include=file_content, every content is null.

Upload a file

Send the file as multipart/form-data in the file field, and the relative path inside the agent in path:
  • Folders are kept. A run sees the file at the same relative path in the agent’s folder, so a SKILL.md that says “read references/style-guide.md” finds it.
  • Uploading to a path that already holds a file replaces it and returns 200. A new file returns 201.
  • path defaults to the uploaded file name. curl -F "file=@references/style-guide.md" sends only style-guide.md as the name, so pass path for any file in a folder.
  • Characters outside the safe file-name set, such as spaces, become _. The response name is the stored path. .. segments are refused.
  • SKILL.md and config.yaml at the root are part of the agent definition. Set them with skill_content and config_content on Update an agent; uploading them returns AGENT_FILE_PATH_RESERVED. A SKILL.md inside a folder, such as skills/research/SKILL.md, is an ordinary file.
  • Each file can be up to 20 MB, and an agent holds at most 50 files, including SKILL.md.

Push a local agent folder

This script makes the agent match a local folder: it sets SKILL.md from the folder, uploads every other file to its relative path, and deletes files that are no longer in the folder.
The next run of the agent uses the new files. The script skips hidden files such as .DS_Store, and it assumes local names are already safe (no spaces, quotes, parentheses, or &): a stored name that differs from the local one looks deleted and is removed. Every call counts toward the per-minute request limit, so pace a folder of more than about 25 files; see Rate limits.

List files

Agents are capped at 50 files, so this endpoint is not paginated. Listings include the auto-staged SKILL.md when present.

Download a file

download_url is a presigned URL that expires in 1 hour.

Delete a file

Deleting SKILL.md is allowed. CREAO re-stages it automatically the next time the agent’s skill content is updated.

Errors

See also the OpenAPI operations under Agent Files.