AI不在电脑里打工 | My AI Lab Lives in the Cloud
不用买 VPS,也不用让 M2 电脑熬夜加班:让 AI 写代码,Codespaces 提供云端工作区,Tailscale 把机器安全串起来,GPU 偶尔负责重活,最后把成品丢进免费主机长期展示。唯一的小脾气是免费资源都有额度,但钱包可以继续保持安静。
Your M2 Mac can finally stop doing all the heavy lifting. AI writes the code, Codespaces provides the cloud workspace, Tailscale connects everything privately, a free GPU handles the occasional heavy job, and TinkerHost keeps the finished site online. Free clouds have limits, but at least your wallet gets a nap.
实操案例
这个例子做的是一个“免费 AI 实验室展示站”:AI 在云端帮你写一个简单网站,Codespaces 负责开发,Tailscale 提供私网连接,免费 GPU 做一次 AI 推理实验,最后把网站发布到 TinkerHost。/This example builds a “Free AI Lab” website: AI helps write it in the cloud, Codespaces provides the workspace, Tailscale provides private connectivity, a free GPU runs one AI inference experiment, and TinkerHost publishes the final site.
1. 准备免费账号/Create the free accounts
准备一个 GitHub、Tailscale、MonkeyCode 和 TinkerHost 账号,全部先使用免费方案。/Create GitHub, Tailscale, MonkeyCode, and TinkerHost accounts and start with their free plans.
2. 创建 GitHub 项目/Create the GitHub project
在 GitHub 新建一个公开仓库,例如 free-ai-lab,把网站代码全部放进去。/Create a public GitHub repository such as free-ai-lab and keep all website code there.
3. 用 MonkeyCode 写第一版/Build the first version with MonkeyCode
打开 MonkeyCode 在线环境,让 AI 生成一个只有 HTML、CSS 和 JavaScript 的个人 AI Lab 展示页。/Open MonkeyCode Online and ask the AI to create a personal AI Lab page using only HTML, CSS, and JavaScript.
4. 把代码放进 GitHub/Push the code to GitHub
检查页面后把代码提交到 GitHub,让 GitHub 成为这个小项目唯一的代码仓库。/Review the page and push it to GitHub so GitHub becomes the single source of truth for the project.
5. 启动 Codespaces/Start Codespaces
在 GitHub 仓库中创建 Codespace,让浏览器直接进入 Linux 开发环境,不需要在 M2 上安装 Node 或 Python。/Create a Codespace from the repository and enter a Linux development environment in the browser without installing Node or Python on the M2.
6. 用 Codespaces 测试网站/Test the website in Codespaces
在 Codespaces 中启动本地 Web Server,打开 GitHub 提供的预览地址确认页面正常运行。/Start a local web server inside Codespaces and use its preview address to verify that the page works.
7. 加入 Tailscale/Connect Tailscale
把官方 Tailscale Codespace Feature 加入 devcontainer 配置,让这个临时开发环境可以进入自己的私有网络。/Add the official Tailscale Codespace Feature to the devcontainer configuration so the temporary development environment can join your private network.
8. 从 Mac 私下访问云端环境/Access the cloud workspace privately
在 M2 上安装 Tailscale 并登录同一个账号,然后通过 Tailscale 网络访问需要私下测试的服务。/Install Tailscale on the M2 and sign in to the same account, then access private test services through the Tailscale network.
9. 准备一次 GPU 实验/Prepare one GPU experiment
使用一个当前有免费额度的 GPU 云环境运行一个小型公开模型推理实验,不把 GPU 当成永久 VPS。/Use a GPU cloud service with an available free allowance for one small public-model inference experiment instead of treating the GPU as a permanent VPS.
10. 运行简单 AI 推理/Run a simple AI inference
选择一个小型模型完成一次文本生成或图片分类,把结果保存成项目中的 JSON 或 Markdown 文件。/Run one small text-generation or image-classification task and save the result as a JSON or Markdown file in the project.
11. 让 GPU 用完就停/Stop the GPU when finished
实验结束立即停止 GPU 环境,因为免费 GPU 的容量和额度都不是永久保证。/Stop the GPU environment immediately after the experiment because free GPU capacity and quotas are not guaranteed.
12. 把实验结果放进网站/Add the result to the website
让 MonkeyCode 或 Codespaces 把 GPU 实验结果整理成一个简单的“AI Experiment”页面。/Use MonkeyCode or Codespaces to turn the GPU experiment result into a simple “AI Experiment” page.
13. 发布到 TinkerHost/Publish on TinkerHost
在 TinkerHost 创建免费 Web Hosting,上传最终 HTML、CSS 和 JavaScript 文件。/Create free Web Hosting on TinkerHost and upload the final HTML, CSS, and JavaScript files.
14. 启用免费 SSL/Enable free SSL
使用 TinkerHost 提供的免费 SSL 和免费子域名,让网站直接通过 HTTPS 打开。/Use TinkerHost’s free SSL and free subdomain so the website opens over HTTPS.
15. 把最终架构串起来/Connect the final architecture
最终结构就是 MonkeyCode 写代码,GitHub 保存代码,Codespaces 云端开发,Tailscale 私网连接,GPU 云偶尔做重计算,TinkerHost 长期展示成品。/The final architecture is MonkeyCode for coding, GitHub for source control, Codespaces for cloud development, Tailscale for private networking, a GPU cloud for occasional heavy computation, and TinkerHost for long-term hosting.
16. 让 M2 回归轻松生活/Let the M2 relax
以后 MacBook M2 主要负责浏览器、Git 和控制操作,真正需要大量 CPU 或 GPU 的任务再交给云端。/From then on, the MacBook M2 mainly handles the browser, Git, and control tasks while heavier CPU or GPU work moves to the cloud.
最终效果
你最终得到的不是“一台所谓永久免费超级 VPS”,而是一套更实用的免费云端工作流:AI 写代码、云端开发、私网访问、GPU 实验和免费网页托管各司其职。/Instead of a mythical permanent super-VPS, you end up with a practical free cloud workflow where AI coding, cloud development, private networking, GPU experiments, and web hosting each do the job they are actually designed for.
相关链接 Related Links
https://monkeycode-ai.net/
https://monkeycode-ai.com/
https://github.com/chaitin/MonkeyCode
https://monkeycode.docs.baizhi.cloud/
https://www.freecloud.ltd/
https://web.freecloud.ltd/
https://tailscale.com/
https://tailscale.com/pricing
https://tailscale.com/kb/1017/install/
https://github.com/tailscale/codespace
https://github.com/tailscale/codespace
https://github.com/
https://docs.github.com/en/codespaces
https://docs.github.com/en/billing/concepts/product-billing/github-codespaces
https://docs.github.com/en/actions/concepts/billing-and-usage
https://tinkerhost.net/
https://tinkerhost.net/free
https://tinkerhost.net/legal/friendly-tos
评论
发表评论