重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
upload-and-share by merit-systems/agentcash-skills
npx skills add https://github.com/merit-systems/agentcash-skills --skill upload-and-share通过 x402 微支付将任何本地文件上传到 S3 支持的云存储。返回一个公开 URL。无需 API 密钥。
有关安装和钱包设置,请参阅 rules/getting-started.md。
| 层级 | 最大大小 | 成本 |
|---|---|---|
10mb | 10 MB | $0.02 |
100mb | 100 MB | $0.20 |
1gb | 1 GB | $2.00 |
所有上传文件将在 6 个月后过期。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 任务 | 端点 | 价格 |
|---|
| 购买上传槽位 | https://stableupload.dev/api/upload | 基于层级 |
| 列出上传记录 | GET https://stableupload.dev/api/uploads | 免费 (需认证) |
| 获取上传详情 | GET https://stableupload.dev/api/download/:uploadId | 免费 (需认证) |
npx agentcash@latest balance
确保有足够的 USDC 余额来支付所选层级。如果余额不足且用户需要资金详情,请运行 npx agentcash@latest accounts 以获取存款链接和钱包地址。
选择能容纳文件的最小层级。首先使用 ls -la 或 wc -c 检查文件大小。
| 层级 | 最大大小 | 成本 |
|---|---|---|
10mb | 10 MB | $0.02 |
100mb | 100 MB | $0.20 |
1gb | 1 GB | $2.00 |
npx agentcash@latest fetch https://stableupload.dev/api/upload -m POST -b '{"filename": "report.pdf", "contentType": "application/pdf", "tier": "10mb"}'
参数:
filename — 上传文件的名称 (必需)contentType — MIME 类型 (必需,供浏览器参考)tier — "10mb"、"100mb" 或 "1gb" (必需)响应:
{
"uploadId": "k7gm3nqp2",
"uploadUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf?t=...",
"publicUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf",
"expiresAt": "2026-08-19T00:00:00.000Z",
"maxSize": 10485760
}
使用 Bash 将文件 PUT 到返回的 uploadUrl:
curl -s -X PUT "<uploadUrl>" -H "Content-Type: <mime>" --data-binary @/absolute/path/to/file
关键: 使用 --data-binary (而不是 -d) 以保留二进制内容。使用绝对路径。
将 publicUrl 提供给用户。此 URL 可立即公开访问,并将在 6 个月内保持有效。
| 文件类型 | Content Type |
|---|---|
application/pdf | |
| PNG 图像 | image/png |
| JPEG 图像 | image/jpeg |
| CSV | text/csv |
| JSON | application/json |
| 纯文本 | text/plain |
| ZIP 压缩包 | application/zip |
| Excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| 未知类型 | application/octet-stream |
要列出当前钱包的上传记录:
npx agentcash@latest fetch https://stableupload.dev/api/uploads
npx agentcash@latest fetch https://stableupload.dev/api/download/k7gm3nqp2
npx agentcash@latest discover https://stableupload.dev上传用户刚创建的文件: 跳过发现步骤,直接进行钱包检查 + 购买槽位 + 上传。
上传多个文件: 为每个文件购买单独的槽位。可以并行购买槽位,但上传时必须为每个文件使用正确的 uploadUrl。
用户要求"分享"或"发送"文件: 上传文件并提供公开 URL。该 URL 可以在任何地方分享。
为电子邮件托管图像: 上传图像,然后在电子邮件 HTML 中引用 publicUrl:
<img src="https://f.stableupload.dev/abc/photo.png" alt="Photo" />
npx agentcash@latest accounts 以显示存款链接和钱包地址每周安装量
50
代码仓库
GitHub 星标数
1
首次出现
2026年2月20日
安全审计
安装于
cursor50
gemini-cli50
github-copilot50
amp50
codex50
kimi-cli50
Upload any local file to S3-backed cloud storage via x402 micropayments. Returns a public URL. No API keys needed.
See rules/getting-started.md for installation and wallet setup.
| Tier | Max Size | Cost |
|---|---|---|
10mb | 10 MB | $0.02 |
100mb | 100 MB | $0.20 |
1gb | 1 GB | $2.00 |
All uploads expire after 6 months.
| Task | Endpoint | Price |
|---|---|---|
| Buy upload slot | https://stableupload.dev/api/upload | Tier-based |
| List uploads | GET https://stableupload.dev/api/uploads | Free (auth) |
| Get upload details | GET https://stableupload.dev/api/download/:uploadId | Free (auth) |
npx agentcash@latest balance
Ensure sufficient USDC balance for the chosen tier. If balance is low and the user needs funding details, run npx agentcash@latest accounts to get deposit links and wallet addresses.
Pick the smallest tier that fits the file. Check file size first with ls -la or wc -c.
| Tier | Max Size | Cost |
|---|---|---|
10mb | 10 MB | $0.02 |
100mb | 100 MB | $0.20 |
1gb | 1 GB | $2.00 |
npx agentcash@latest fetch https://stableupload.dev/api/upload -m POST -b '{"filename": "report.pdf", "contentType": "application/pdf", "tier": "10mb"}'
Parameters:
filename — name for the uploaded file (required)contentType — MIME type (required, advisory for browser)tier — "10mb", "100mb", or "1gb" (required)Response:
{
"uploadId": "k7gm3nqp2",
"uploadUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf?t=...",
"publicUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf",
"expiresAt": "2026-08-19T00:00:00.000Z",
"maxSize": 10485760
}
Use Bash to PUT the file to the returned uploadUrl:
curl -s -X PUT "<uploadUrl>" -H "Content-Type: <mime>" --data-binary @/absolute/path/to/file
Critical: Use --data-binary (not -d) to preserve binary content. Use the absolute path.
Present the publicUrl to the user. This URL is publicly accessible immediately and remains live for 6 months.
| File Type | Content Type |
|---|---|
application/pdf | |
| PNG image | image/png |
| JPEG image | image/jpeg |
| CSV | text/csv |
| JSON | application/json |
| Plain text | text/plain |
| ZIP archive |
To list uploads for the current wallet:
npx agentcash@latest fetch https://stableupload.dev/api/uploads
npx agentcash@latest fetch https://stableupload.dev/api/download/k7gm3nqp2
npx agentcash@latest discover https://stableupload.dev if you need to verify endpointsUpload a file the user just created: Skip discovery, go straight to wallet check + buy slot + upload.
Upload multiple files: Buy separate slots for each file. Slots can be purchased in parallel but uploads must use the correct uploadUrl for each.
User asks to "share" or "send" a file: Upload it and present the public URL. The URL can be shared anywhere.
Host images for emails: Upload the image, then reference the publicUrl in email HTML:
<img src="https://f.stableupload.dev/abc/photo.png" alt="Photo" />
npx agentcash@latest accounts to show deposit links and wallet addressesWeekly Installs
50
Repository
GitHub Stars
1
First Seen
Feb 20, 2026
Security Audits
Gen Agent Trust HubFailSocketWarnSnykFail
Installed on
cursor50
gemini-cli50
github-copilot50
amp50
codex50
kimi-cli50
Supabase Postgres 最佳实践指南 - 8大类别性能优化规则与SQL示例
89,100 周安装
application/zip |
| Excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Unknown | application/octet-stream |