Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I build Suwu: an omarchy inspired remote shell with the cheapest model in Opencode Go

说明与用途

Suwu 是一个基于 Go 的 Web 远程终端,支持平铺窗口、复制粘贴和 LLM 辅助,使用廉价 LLM 模型,费用低于 10 美元。

问题

Need a web‑based remote shell that feels like Omarchy but without installing a VNC client or a separate OS, and that can run on a cheap LLM model.

结果

Suwu delivers a seamless web‑based remote shell with tiling, copy/paste, and LLM‑assisted coding, built on a cheap LLM model and a single Go binary, costing under $10 in LLM usage.

工作流

  • 1. Chose a cheap LLM (DeepSeek V4, later Xiaomi MiMo 2.5) via Opencode Go.
  • 2. Started from ghostty‑web demo and used a Pi coding agent to analyze and replicate it.
  • 3. Faced mouse click and clipboard issues; decided to switch to xterm.js + libghostty‑vt for PTY retention.
  • 4. Re‑implemented the demo with xterm.js, guided by the agent and LLMs.
  • 5. Added web‑based tiling window manager and integrated LLM‑powered coding features.
  • 6. Used Suwu to develop itself, iterating quickly with the agent and human debugging.
  • 7. Debugged React loops, UI bugs, and data inconsistencies by guiding the agent with focused prompts and tests.
  • 8. Deployed the final binary and shared the project on GitHub and a demo site.

证据

Suwu is a single binary thanks to Go, so I can easily maintain copies of Suwu on my machine.

来源

Opencode does give me a breakdown of how much is spent, even for a subscription service. So I count the spending from the Opencode dashboard: the peak spending per day was around $3, and most of the time it was around $0.5.

来源

  • 记录日期: 2026-09-07T04:22:39.652Z