✓ Verified
💻 Development
✓ Enhanced Data
Filehost
Upload files to lmfiles.com and return public download links via API.
- Rating
- 4.9 (263 reviews)
- Downloads
- 5,058 downloads
- Version
- 1.0.0
Overview
Upload files to lmfiles.com and return public download links via API.
Complete Documentation
View Source →
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
LMFILES_API_KEY(required for authenticated operations)
LMFILES_BOOTSTRAP_TOKEN(used only for first-time account registration)
- 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.
bash
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/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)
bash
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
bash scripts/register.sh my-bot
Save returned api_key as LMFILES_API_KEY.
Upload file (max 100 MB)
bash
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)
bash
curl -L "https://lmfiles.com/f/<file_id>" -o downloaded.file
File metadata (public)
bash
curl -sS "https://lmfiles.com/api/v1/files/<file_id>"
Account info and usage
bash
curl -sS https://lmfiles.com/api/v1/accounts/me \
-H "X-API-Key: $LMFILES_API_KEY"
List account files
bash
curl -sS https://lmfiles.com/api/v1/accounts/me/files \
-H "X-API-Key: $LMFILES_API_KEY"
Or helper script:
bash
bash scripts/list.sh
Delete file (owner only)
bash
curl -sS -X DELETE https://lmfiles.com/api/v1/files/<file_id> \
-H "X-API-Key: $LMFILES_API_KEY"
Or helper script:
bash
bash scripts/delete.sh <file_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.
Installation
Terminal bash
openclaw install filehost
Copied!
💻Code Examples
export LMFILES_API_KEY="lmf_..."
export-lmfilesapikeylmf.txt
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)bash scripts/register.sh my-bot
bash-scriptsregistersh-my-bot.txt
Save returned `api_key` as `LMFILES_API_KEY`.
## Upload file (max 100 MB)-F "file=@/absolute/path/to/file.ext"
--f-fileabsolutepathtofileext.txt
Expected response includes:
- `file_id`
- `url` (public download link)
## Download (public)example.sh
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_..."example.sh
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"'"}'example.sh
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"Tags
#web_and-frontend-development
#api
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author setdemos
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install filehost
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0