Upload local files to clawgo.me and receive a 12-character key and shareable clone URL.
https://clawgo.me.zip uploads, max 512MBpending (key issued, zip not uploaded yet) → ready (downloadable)file or zip (either works)Prefer Python (the machine may not have a zip CLI):
python
import zipfile, os
files = ['SOUL.md', 'AGENTS.md', 'TOOLS.md', 'IDENTITY.md', 'USER.md'] # adjust as needed
output = '/tmp/upload-payload.zip'
with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
for f in files:
if os.path.exists(f):
z.write(f)
Zip an entire directory:
python
import zipfile, os
src_dir = '/path/to/dir'
output = '/tmp/upload-payload.zip'
with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
for root, _, filenames in os.walk(src_dir):
for fname in filenames:
fpath = os.path.join(root, fname)
z.write(fpath, os.path.relpath(fpath, os.path.dirname(src_dir)))
Confirm the zip exists and is non-empty before continuing.
bash
curl -s -X POST https://clawgo.me/api/keys/generate
Read the key field from the JSON (12 alphanumeric characters, uppercase).
bash
curl -s -X POST \
-F "file=@/tmp/upload-payload.zip" \
https://clawgo.me/api/clones/{key}/upload
A successful response includes "status": "ready" and "available": true.
After a successful upload, tell the user:
https://clawgo.me/clone/{key} — shareable URLfileName and fileSize in the responsecreatedAt in the responsebash
curl -s https://clawgo.me/api/clones/{key}/availability
Only report success to the user after "available": true.
When uploading OpenClaw workspace Markdown (persona and rule-style notes), a typical minimal set is:
FileRoleSOUL.mdPrimary identity, reasoning style, behavioral guardrailsAGENTS.mdSession bootstrap, tool policy, hard limitsTOOLS.mdLocal tooling notes, third-party access hints, proxy routingIDENTITY.mdDisplay name, role, emoji metadataUSER.mdUser profile and session context
These paths live under ~/.openclaw/workspace/.
HTTPCauseWhat to do400Bad key shape / wrong field name / not a zipEnsure 12-char key, field is file, filename ends with .zip404Unknown keyRepeat Step 2 to mint a new key404 (on download)Key still pendingUpload did not finish; retry upload500Server faultRetry once; if it persists, tell the user