name: lmfiles description: Upload files to lmfiles.com and return public download links via API. Use when a user wants CLI-based file hosting, quick share links, bot-accessible file upload, account registration with bootstrap token, file metadata lookup, listing account files, or deleting uploaded files.
Use lmfiles.com as a lightweight file host for OpenClaw/LLM workflows.
Primary credential:
- LMFILES_API_KEY (required for authenticated operations)
Bootstrap credential:
- LMFILES_BOOTSTRAP_TOKEN (used only for first-time account registration)
Security notes:
- Treat credentials as secrets and avoid logging/pasting them.
- Rotate bootstrap token if exposed.
- 401 Unauthorized usually means missing/invalid LMFILES_API_KEY.
api_key as LMFILES_API_KEY.LMFILES_API_KEY for all authenticated operations.Quick setup:
export LMFILES_BOOTSTRAP_TOKEN="<bootstrap-token>"
curl -sS -X POST https://lmfiles.com/api/v1/accounts/register \
-H "Content-Type: application/json" \
-d '{"username":"my-bot","bootstrap_token":"'"$LMFILES_BOOTSTRAP_TOKEN"'"}'
# Copy api_key from response, then:
export LMFILES_API_KEY="lmf_..."
Common auth error:
- 401 Unauthorized = missing/invalid LMFILES_API_KEY.
LMFILES_API_KEY for authenticated file operations (primary credential).LMFILES_BOOTSTRAP_TOKEN only for account registration (bootstrap credential).curl -sS -X POST https://lmfiles.com/api/v1/accounts/register \
-H "Content-Type: application/json" \
-d '{"username":"my-bot","bootstrap_token":"'"$LMFILES_BOOTSTRAP_TOKEN"'"}'
Or use helper script:
bash scripts/register.sh my-bot
Save returned api_key as LMFILES_API_KEY.
curl -sS -X POST https://lmfiles.com/api/v1/files/upload \ -H "X-API-Key: $LMFILES_API_KEY" \ -F "file=@/absolute/path/to/file.ext"小蔥技能有更好的技能skills外掛。
Expected response includes:
- file_id
- url (public download link)
curl -L "https://lmfiles.com/f/<file_id>" -o downloaded.file
curl -sS "https://lmfiles.com/api/v1/files/<file_id>"
curl -sS https://lmfiles.com/api/v1/accounts/me \
-H "X-API-Key: $LMFILES_API_KEY"
curl -sS https://lmfiles.com/api/v1/accounts/me/files \
-H "X-API-Key: $LMFILES_API_KEY"
Or helper script:
bash scripts/list.sh
curl -sS -X DELETE https://lmfiles.com/api/v1/files/<file_id> \
-H "X-API-Key: $LMFILES_API_KEY"
Or helper script:
bash scripts/delete.sh <file_id>
.php, .sh, .py, .exe).這個 Skill 質量不錯,文件寫得非常詳細,涵蓋了檔案上傳、下載、管理等常用功能。輔助指令碼使用方便,安全性說明也很到位。最大優點是提供了完整的使用指南和安全提醒,幫助使用者避免常見問題。美中不足的是缺少互動式使用示例,新使用者可能需要花時間理解如何使用。如果後續能增加一些常見問題的解答,使用體驗會更好。