Open Agents開源雲端程式碼Agent平台,作者三個月內全靠它撰寫所有程式碼
AI 語音朗讀 · Edge TTS
Open Agents開源雲端程式碼Agent平台,作者三個月內全靠它撰寫所有程式碼。
作者三個月前開始打造雲端運行的程式碼Agent,此Agent已撰寫所有他發佈的程式碼,包括自身程式碼,如今開源為「Open Agents」,徹底改變其工作流程,讓他從瀏覽器端到端完成一切發佈。作者厭倦本地運行Agent的麻煩,如管理worktrees、保持筆電開啟避免休眠,於是建構雲端平台,可同時啟動多個Agent平行運行,工作階段無時間限制,數百次工具呼叫橫跨數小時,關閉筆電也能持續進行。
平台架構與核心決策
Open Agents為三層系統:Web → Agent workflow → Sandbox VM。
Web應用處理認證、工作階段、聊天與串流UI;Agent以Vercel上的持久化workflow運行;沙盒為執行環境,包含檔案系統、shell、git、開發伺服器與預覽連接埠。
關鍵架構決策:Agent不運行於沙盒內,而是外部透過工具(如檔案讀取、編輯、搜尋、shell指令)互動,此分離確保:
- Agent執行不綁定單一請求生命週期
- 沙盒生命週期可獨立休眠與恢復
- 模型/供應商選擇與沙盒實作可獨立演進
- VM維持純執行環境,而非控制平面
當前功能與執行細節
聊天驅動的程式碼Agent支援多項工具,具備持久化多步驟執行。
- chat驅動程式碼Agent,內含檔案、搜尋、shell、工作、技能與web工具
- Workflow SDK支撐的持久化多步驟執行
- Vercel沙盒的隔離環境,基於快照恢復
- 沙盒內repo複製與分支工作
- 成功運行後的選用自動commit、push與PR建立
- 唯讀連結分享工作階段
- 選用ElevenLabs語音輸入轉錄
執行細節:聊天請求啟動workflow運行而非內聯執行;每個Agent回合可橫跨多個持久化workflow步驟;活躍運行可透過重新連線串流恢復;沙盒使用基底快照,暴露連接埠3000、5173、4321與8000,閒置後休眠;自動commit與PR為使用者偏好功能,非常開啟。
技術堆疊與部署需求
平台由以下技術驅動:
- AI SDK - Agent harness
- ▲ AI Gateway - 數百模型內建fallback
- ▲ Sandbox - 安全、隔離且持久化VM
- Workflow DevKit - 持久化且近乎無限執行
最低運行需求:POSTGRES_URL與JWE_SECRET,用於啟動應用與載入伺服器狀態。
完整部署需token加密與Vercel OAuth:ENCRYPTION_KEY、NEXT_PUBLIC_VERCEL_APP_CLIENT_ID、VERCEL_APP_CLIENT_SECRET,否則Vercel登入失效。
GitHub repo存取、push與PR需:NEXT_PUBLIC_GITHUB_CLIENT_ID、GITHUB_CLIENT_SECRET、GITHUB_APP_ID、GITHUB_APP_PRIVATE_KEY、NEXT_PUBLIC_GITHUB_APP_SLUG、GITHUB_WEBHOOK_SECRET。
選用:REDIS_URL、KV_URL、VERCEL_PROJECT_PRODUCTION_URL等。
部署步驟:fork repo、建PostgreSQL資料庫、產生JWE_SECRET與ENCRYPTION_KEY、匯入Vercel、設定環境變數、建立Vercel OAuth app與GitHub App。
本地設定:bun install、複製.env範例、填入必要值、bun run web。
Repo結構:apps/web(Next.js app、工作流程、認證、聊天UI)、packages/agent(Agent實作、工具、子Agent、技能)、packages/sandbox(沙盒抽象與Vercel整合)、packages/shared(共享工具)。
作者使用心得與貢獻
作者大量使用後無法想像回頭,稱其為「我建過的最佳東西」,每日迭代數月,展示完整使用範例:https://open-agents.dev/u/nicoalbanese、工作階段範例:https://open-agents.dev/shared/JqlQ1TbehOkm。雖然設計為程式碼用途,但易適應其他領域,鼓勵fork自訂:https://vercel.com/templates/template/open-agents。
特別感謝@willsather超越作者內部排行榜(作者上週還第一😂),發佈git panel、CI auto fix、file viewer、重設計側邊欄等最佳更新;@nishimiya建構出色首頁。立即試用:https://open-agents.dev。
3 months ago I started building a coding agent that runs in the cloud.
— Nico Albanese (@nicoalbanese10) April 13, 2026
It's since written every line of code I've shipped, including itself.
Today, I'm open sourcing it. Introducing Open Agents. pic.twitter.com/puuqWfMKej
Open Agents has completely changed how I work. I now ship literally everything, end-to-end, from the browser.
— Nico Albanese (@nicoalbanese10) April 13, 2026
It's impossible to fit all the features in one post, so here it is in action: pic.twitter.com/oyyxEbRG2t
Some backstory: I was tired of running agents locally: managing worktrees, keeping my laptop open, and hoping it doesn't fall asleep.
— Nico Albanese (@nicoalbanese10) April 13, 2026
Having access to this insane intelligence but being forced to babysit it from my terminal felt like a crazy paradox. pic.twitter.com/gsuWYDgxM9
So I built a platform where I can spin up as many agents as I want, all running in parallel in the cloud.
— Nico Albanese (@nicoalbanese10) April 13, 2026
Sessions work as long as they need to. Hundreds of tool calls across hours. No timeouts. I close my laptop and they keep going.
Session pictured: https://t.co/z96rMK5o2K pic.twitter.com/qZ5PHnfaNs
Open Agents is powered by:
— Nico Albanese (@nicoalbanese10) April 13, 2026
- AI SDK - agent harness
- ▲ AI Gateway - hundreds of models with built-in fallback
- ▲ Sandbox - secure, isolated, and persistent VMs
- Workflow DevKit - durable and effectively infinite execution pic.twitter.com/XpzsmmEvb3
I have used Open Agents A LOT and I can't imagine going back.
— Nico Albanese (@nicoalbanese10) April 13, 2026
I think it's the best thing I've ever built.
See my full usage here:https://t.co/PlDmJpDKho pic.twitter.com/51YkEnmmF4
I've been iterating on this every day for several months and I'm so excited to open source it.
— Nico Albanese (@nicoalbanese10) April 13, 2026
While this is designed for coding, it can easily be adapted to other problem spaces.
Fork it. Make it yours.https://t.co/JWLd14kIDb pic.twitter.com/BDCN6Yv4AT
Also major shout out to @willsather who has:
— Nico Albanese (@nicoalbanese10) April 13, 2026
1) overtaken me in the internal leaderboard (I was at AIE last week 😂)
2) shipped some of the best recent updates (git panel, ci auto fix, file viewer, redesigned sidebar)
and @nishimiya who shipped the awesome landing page! pic.twitter.com/5XypnsCLQP
Try it now!https://t.co/j9nAjpdMKZ
— Nico Albanese (@nicoalbanese10) April 13, 2026
