LMfiles.com file hosting
/install filehost
lmfiles
Use lmfiles.com as a lightweight file host for OpenClaw/LLM workflows.
Provenance & trust
- Service docs: https://lmfiles.com/docs
- OpenAPI schema: https://lmfiles.com/openapi.json
- API host: https://lmfiles.com
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 Unauthorizedusually means missing/invalidLMFILES_API_KEY.
Before first use (required)
- Register an account once with a bootstrap token.
- Save returned
api_keyasLMFILES_API_KEY. - Use
LMFILES_API_KEYfor 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/invalidLMFILES_API_KEY.
Required env vars
LMFILES_API_KEYfor authenticated file operations (primary credential).LMFILES_BOOTSTRAP_TOKENonly 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_idurl(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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install filehost - After installation, invoke the skill by name or use
/filehost - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 599 downloads so far.
How do I install LMfiles.com file hosting?
Run "/install filehost" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is LMfiles.com file hosting free?
Yes, LMfiles.com file hosting is completely free (open-source). You can download, install and use it at no cost.
Which platforms does LMfiles.com file hosting support?
LMfiles.com file hosting is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created LMfiles.com file hosting?
It is built and maintained by S. Rob Beck (@setdemos); the current version is v1.0.2.