我雇了个不睡觉的程序员,月薪一杯奶茶 | I Hired a Programmer Who Never Sleeps — Salary: One Bubble Tea

以前想雇个 AI 程序员,钱包先递辞职信。现在终端里住进一位不睡觉的卷王:扔张截图过去,它连猜带写把网页端上来,速度快得像外卖小哥抢单,账单轻得像奶茶找零。配一次,命令行、桌面、编辑器三处通吃。小毛病嘛——偶尔自信过头,写完还嘴硬,你得客串一下代码监工。但比起省下的时间和钞票,这点脾气就像猫掉毛:忍了,真香。
Hiring an AI programmer used to make your wallet file for divorce. Now a sleepless workaholic lives in your terminal: toss it a screenshot and it serves up a working webpage faster than a delivery rider grabbing orders, with a bill lighter than bubble-tea change. Configure once, and it works across CLI, desktop and editor. Quirks? Occasionally overconfident and argues back — you'll moonlight as a code inspector. But like cat hair on a lovable cat, totally worth it.

实操案例

用 DeepSeek 免费额度驱动 Codex CLI,让它看一张 UI 截图自动写出能跑的 Python Flask 网页,再用 CLIProxyAPI 把这套能力包装成本地 API,一个例子串起全部技术要点。/Use DeepSeek's free credits to power Codex CLI, have it look at a UI screenshot and auto-build a runnable Python Flask webpage, then wrap it all into a local API via CLIProxyAPI — one example covering every key point.

1. 安装 Codex CLI/Install Codex CLI
Mac/Linux 用户在终端运行官方一键脚本;Windows 用户用 PowerShell 脚本或 npm 安装。/Mac/Linux users run the official one-liner in the terminal; Windows users use the PowerShell script or npm.

# Mac / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
# 或 / or
npm install -g @openai/codex

装好先跑一次 codex 再退出,让 ~/.codex 目录生成,后面要用。/Run codex once and quit so the ~/.codex folder gets created — you'll need it soon.

2. 注册 DeepSeek 领免费额度/Grab DeepSeek free credits
去 platform.deepseek.com 邮箱注册,创建一个 API Key,只花赠送额度,一分钱不充。/Register at platform.deepseek.com with your email, create an API Key, and spend only the free credits — not a cent of top-up.

3. 把 Codex 换上 DeepSeek 引擎/Swap Codex onto the DeepSeek engine
跑官方一键配置脚本(链接见文末),配置一次,CLI、桌面 App、VS Code 扩展三处同时生效。/Run the official setup script (link at the end) — configure once and it applies to the CLI, desktop app and VS Code extension all at once.
重启后横幅显示 model: deepseek-v4-flash,就说明换血成功。/After restarting, the banner should read model: deepseek-v4-flash — the swap took.

4. 扔截图,收网站/Toss in a screenshot, get a website back
截一张你喜欢的登录页存成 ui.png,运行 codex,告诉它:看图,用 Python Flask 复刻,带表单校验,本地跑起来。/Screenshot any login page as ui.png, run codex and say: look at this, recreate it with Python Flask, add form validation, run it locally.
它会自己写 app.py、装依赖、起服务,你只管开 http://127.0.0.1:5000 验货。/It writes app.py, installs dependencies and starts the server — you just open http://127.0.0.1:5000 and inspect the goods.

5. 用 CLIProxyAPI 变出本地 API/Conjure a local API with CLIProxyAPI
从 GitHub 下载对应平台版本(或图形版 EasyCLIProxyAPI),启动后用免费账号 OAuth 登录。/Download the build for your platform from GitHub (or the GUI version), start it and log in via OAuth with a free account.
它会吐出一个 OpenAI 兼容的本地端点,任何脚本都能复用你刚配好的模型。/It exposes an OpenAI-compatible local endpoint, so any script can reuse the model you just set up.
用下面的 Python 小脚本验货。/Verify with the little Python script below.

# 验证本地代理端点/Verify the local proxy endpoint
from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:8317/v1",  # CLIProxyAPI 本地端点/local endpoint
    api_key="sk-local",                    # 本地代理不校验真实 key/no real key needed
)
resp = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[{"role": "user", "content": "给我的 Flask 登录页加一个'记住我'复选框,只回传 diff"}],
)
print(resp.choices[0].message.content)

6. 收尾/Wrap-up
项目 git init 推上 GitHub,完成截图进、网站出、API 可复用的免费闭环。/Run git init and push to GitHub — closing the free loop of screenshot in, website out, API reusable.

要点覆盖对照:步骤 1 = Codex CLI 安装与常用命令;步骤 3 = 中转换模型的现代正统做法(官方 Responses API 直连);步骤 4 = V4 Flash 识图编程 + Python 产出;步骤 5 = CLIProxyAPI 真实用途;全程零付费,Python 要求已满足(app.py + 验证脚本)。

相关链接 (Related Links):

https://benchlm.ai/benchmarks/terminalbench21

https://openai.com/codex/

https://openaicli.com/docs

https://platform.deepseek.com/sign_in

https://api-docs.deepseek.com/quick_start/pricing/?article_id=article_1779470751466_8

https://github.com/asuojun/claude-vision-skill

https://nodejs.org/en/download

https://github.com/router-for-me/CLIProxyAPI

https://github.com/router-for-me/CLIProxyAPIDocs/blob/main/docs/en/introduction/quick-start.md

https://github.com/router-for-me/CLIProxyAPI/blob/main/docs/sdk-usage.md

https://github.com/router-for-me/Cli-Proxy-API-Management-Center

https://ccs.kaitran.ca/

https://github.com/kaitranntt/ccs

https://github.com/mnfst/awesome-free-llm-apis

评论

爽文共赏/Popular Posts

5分钟拿下原生IP + 免费节点 手残变大佬 | From Noob to Pro in 5 Minutes: 10 Real IPs + Daily Fresh Free Nodes

免费节点无限续?OneBox+subs-check,付费党沉默了 | Free Nodes Never Die? OneBox + subs-check, Paid Users Left Speechless

一口气搭好!Cloudflare融合Railway与Galaxy打造纯净原生免费VPS | Build a Pure Free VPS with Cloudflare + Railway + Galaxy in One Go

3 Steps to AI Video Fame✨WebSocket+Copilot Auto-Update, Newbies Win Too | 3 步 AI 视频封神✨WebSocket+Copilot 自动更,小白也能卷赢

Stop Note-Taking Pain—AI One-Click, Efficiency Skyrockets | 别再苦抄笔记!用AI一键效率爆表💥

Game-Changing! Get AI Parenting+Math Enlightenment for Free | 0成本get AI育儿+数学启蒙双buff,躺赢养娃