How do I protect my code before letting a script or agent change it?
- Take a backup of the bucket first (
POST /v1/buckets/{bucket_id}/backups). - Give the tool a narrow key:
buckets:read+buckets:write, withoutbackups:write, so it can't delete or replace your backup. - Watch the events feed: actions are recorded with the key's name.
- Restore if needed: a restore puts the old tree back as a new version and brings back deleted files.
Learn more#
Related articles
- How can an AI agent or script use Code Buckets as storage?
- How can my script know when a new upload or code change happens?
- Will restoring a backup delete my current code?
- Without a backup, can I still go back to older code?
- Can I use the Agent API from no-code tools like automation platforms?Cosmos Agent API
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.