← 返回 Skills 市场
setdemos

LMfiles.com file hosting

作者 S. Rob Beck · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
599
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install filehost
功能描述
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 up...
使用说明 (SKILL.md)

lmfiles

Use lmfiles.com as a lightweight file host for OpenClaw/LLM workflows.

Provenance & trust

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.

Before first use (required)

  1. Register an account once with a bootstrap token.
  2. Save returned api_key as LMFILES_API_KEY.
  3. Use LMFILES_API_KEY for all authenticated operations.

Quick setup:

export LMFILES_BOOTSTRAP_TOKEN="\x3Cbootstrap-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.

Required env vars

  • LMFILES_API_KEY for authenticated file operations (primary credential).
  • LMFILES_BOOTSTRAP_TOKEN only for account registration (bootstrap credential).

Register account (one-time)

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.

Upload file (max 100 MB)

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"

Expected response includes:

  • file_id
  • url (public download link)

Download (public)

curl -L "https://lmfiles.com/f/\x3Cfile_id>" -o downloaded.file

File metadata (public)

curl -sS "https://lmfiles.com/api/v1/files/\x3Cfile_id>"

Account info and usage

curl -sS https://lmfiles.com/api/v1/accounts/me \
  -H "X-API-Key: $LMFILES_API_KEY"

List account files

curl -sS https://lmfiles.com/api/v1/accounts/me/files \
  -H "X-API-Key: $LMFILES_API_KEY"

Or helper script:

bash scripts/list.sh

Delete file (owner only)

curl -sS -X DELETE https://lmfiles.com/api/v1/files/\x3Cfile_id> \
  -H "X-API-Key: $LMFILES_API_KEY"

Or helper script:

bash scripts/delete.sh \x3Cfile_id>

Constraints

  • Max upload size: 100 MB.
  • Executable file types are rejected (for example .php, .sh, .py, .exe).
  • Files expire after 90 days of inactivity; downloads reset the expiry clock.
  • Downloads are public for anyone with the URL.

Safety checks before upload

  • Confirm file is safe to publish publicly.
  • Avoid uploading secrets or credentials.
  • If uncertain, ask user before upload.
安全使用建议
This skill appears to be a simple CLI wrapper for lmfiles.com and its scripts are short and only call lmfiles.com. However: (1) the registry metadata incorrectly says no env vars are required while the SKILL.md and scripts require LMFILES_API_KEY (and a bootstrap token for registration). That mismatch is the primary concern — confirm with the publisher or registry before installing. (2) Because the package source/homepage is missing, verify you trust lmfiles.com and the publisher ID before supplying API keys. (3) Don't store LMFILES_API_KEY as a broadly accessible global environment variable on shared systems; prefer a per-agent or per-session secret and rotate keys if exposed. (4) Do not upload secrets or credentials to the service. If you need to proceed, inspect the included scripts (they are small) and consider creating a dedicated lmfiles account with limited scope for this skill.
功能分析
Type: OpenClaw Skill Name: filehost Version: 1.0.2 The skill bundle is designed to integrate with lmfiles.com for file hosting. All `curl` commands target the specified `lmfiles.com` domain, and API keys are handled via environment variables. The shell scripts (`scripts/*.sh`) employ good security practices such as `set -euo pipefail` and proper quoting of user-provided arguments (e.g., filenames, file IDs, usernames) to prevent shell injection. Crucially, the `SKILL.md` explicitly includes 'Safety checks before upload' instructions, guiding the AI agent to confirm file safety, avoid uploading secrets, and ask the user if uncertain, which acts as a defense against prompt injection leading to accidental data exposure. There is no evidence of data exfiltration, persistence mechanisms, or execution of arbitrary remote code.
能力评估
Purpose & Capability
SKILL.md and the helper scripts clearly require an API key (LMFILES_API_KEY) and optionally a bootstrap token to register an account; that is coherent with a file-hosting skill. However the registry metadata above states 'Required env vars: none' and 'Primary credential: none', which contradicts the actual instructions and scripts. This metadata mismatch is a meaningful incoherence: either the metadata is stale/incorrect or the skill was published without declaring needed credentials.
Instruction Scope
Runtime instructions and the four helper scripts only call lmfiles.com endpoints via curl for register, upload, list, and delete operations andread only the declared env vars. They do not attempt to read unrelated files, system config, or call other external endpoints. The SKILL.md also contains reasonable safety guidance (don't upload secrets).
Install Mechanism
There is no install spec — this is instruction-only plus small bash helpers included in the package. No external downloads, archives, or package manager installs are performed by the skill itself. The included scripts are short and transparent.
Credentials
The skill legitimately needs LMFILES_API_KEY and optionally LMFILES_BOOTSTRAP_TOKEN as described in SKILL.md and enforced in scripts, which is proportionate to the described functionality. However the registry metadata's omission of those required env vars is a discrepancy that could lead to confusing install-time behavior (platform might not prompt for the API key). The requested secrets themselves are limited to the service's API keys and are not overly broad.
Persistence & Privilege
No special persistence or elevated privileges are requested. Flags show always:false and model invocation is allowed (normal). The skill does not modify other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install filehost
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /filehost 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2 - Added helper scripts: register.sh, list.sh, delete.sh. - Improved first-use onboarding and auth troubleshooting. - Added provenance links and explicit credential roles (API key vs bootstrap token). - Added security notes for secret handling and token rotation.
v1.0.1
Initial release of filehost skill as lmfiles. - Enables CLI-based file hosting via lmfiles.com, returning public download links. - Supports account registration with bootstrap token, file upload, metadata lookup, listing, and deletion. - Uploads limited to 100 MB; executables are blocked; files expire after 90 days of inactivity. - Requires API key environment variable for authenticated actions. - Public download links; users are cautioned not to upload sensitive information.
元数据
Slug filehost
版本 1.0.2
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

LMfiles.com file hosting 是什么?

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 up... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 599 次。

如何安装 LMfiles.com file hosting?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install filehost」即可一键安装,无需额外配置。

LMfiles.com file hosting 是免费的吗?

是的,LMfiles.com file hosting 完全免费(开源免费),可自由下载、安装和使用。

LMfiles.com file hosting 支持哪些平台?

LMfiles.com file hosting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LMfiles.com file hosting?

由 S. Rob Beck(@setdemos)开发并维护,当前版本 v1.0.2。

💬 留言讨论