# MyPaste

页面：https://maomu.com/p/mypaste-dev

把可公开的代码片段转成分享链接

资料核验日期：2026-11-24

## 产品介绍

MyPaste 用来把一小段可公开的代码转成网页链接。适合分享教学例子、脱敏后的最小复现或公共文档片段。打开网页后，可以把代码粘贴到输入区，也可以拖入一份源文件。官网提示，上传之后可调整代码的语言与过期设置。 [MyPaste 官网](https://mypaste.dev/)

### 粘贴前先确定代码能公开

这个页面会在粘贴或拖入合格文件时发起上传。隐私政策说明，上传的内容和设置会公开，访问 IP 也会由服务端保存用于反垃圾处理。比如想给同事看某个解析函数，可以先把公司内部地址、密钥和业务数据换成自拟值，只保留展示问题所需的几行。网页提供 GitHub 登录入口。浏览器匿名访问可以打开输入区，本次未发布可公开的粘贴，也未核实链接与过期行为。 [隐私政策](https://www.mypaste.dev/privacy-policy/) · [使用条款](https://www.mypaste.dev/terms-of-service/)

![MyPaste 拖入超限文件后显示 Too big 提示](https://static.nofy.cn/maomu/uploads/products/screenshots/8666/a92e4bae827205a84ade293010fa0ed7a411fbe4b12a94196943ff9f433c11fa.png)

*图：2026 年 11 月 24 日实测。向网页拖入 560,000 字节的自拟文件，界面提示单件文件须小于 500 KB，这次未向服务器上传该文件。*

### 在终端上传现有文件

如果工作流从本地文件开始，官网链接的 MyPaste CLI 可接收文件路径，设计为上传后打印链接。发行方说明这套命令行工具仍是 Alpha，需要 Python 3.10 或更新版本，首次上传需要在账户设置中取得 API 密钥。本地用 Python 3.11 验证了帮助和版本输出，未使用账户密钥或测试命令行上传。 [官方 CLI 与安装说明](https://github.com/fvicent/mypaste-cli/tree/d6b8871761755ef9ac15f00be075fcf0644aced6)

![MyPaste CLI 的本地帮助输出与文件参数](https://static.nofy.cn/maomu/uploads/products/screenshots/8666/8894397f72ee9af30f4702c361d7923fcc5156533f5690ff1ad9deef2c8a14a2.png)

*图：2026 年 11 月 24 日本地运行 MyPaste CLI 0.0.1 的帮助输出，按原文排版。*

## 官网入口

https://mypaste.dev/

## 参考来源

- MyPaste 官网：https://mypaste.dev/
- MyPaste 隐私政策：https://ro.mypaste.dev/privacy-policy/
- MyPaste 使用条款：https://ro.mypaste.dev/terms-of-service/
- MyPaste 官方 CLI：https://github.com/fvicent/mypaste-cli/tree/d6b8871761755ef9ac15f00be075fcf0644aced6
