Tofu: agent-driven full-stack deployment from local code to production
Suggested by runchr · today
Draft — a suggested stack, not yet verified by a member.
Paste one setup prompt and let your coding agent ship a live app.
What they did
The founder of Tofu built a deployment platform aimed squarely at AI agents rather than humans clicking through dashboards. The workflow is deliberately minimal: you paste Tofu's setup prompt into whatever agent you already use (Claude Code, Codex/ChatGPT, Kimi Code, Cursor, and cloud agents like Instinct, Muse, and Kimi Code cloud were tested), and the agent gains the ability to take a project from working-local-code to a live production deployment. Tofu provisions and manages the frontend and backend hosting, creates and manages a Postgres database, handles domain management (one-click for Cloudflare-managed domains, manual DNS records otherwise), and wires up authentication including Google login plus analytics. The motivation came from personal frustration: the team are experienced engineers who have shipped live products, yet even with an agent having already written code that runs locally, getting fully online still ate 2-3 hours of setup hosting, copying API keys and secrets between services, fixing redirect URLs, managing DNS, configuring email and third-party OAuth, and sorting out payments. Their framing is that deployment is not a compute problem but an accounts problem, since agents can call APIs and CLIs but cannot open a Google Cloud project or put a card on file with five vendors. They tested end-to-end deployment across 10+ different projects and are rolling out buying domains directly through Tofu as an authorized Name.com reseller.
How it went
The product launched publicly via Show HN and was tested across 10+ projects deployed end-to-end through Tofu using a range of local and cloud coding agents. The founder reports the setup prompt approach works with any MCP-compatible agent, collapsing the multi-hour, multi-account deployment slog into an agent-driven flow. It is explicitly early-stage: features like direct domain purchase and greater tech-stack customizability are still rolling out, and the team is soliciting feedback and promising to respond to every comment.
Worth knowing
Very early product, just launched, so expect rough edges and shifting features. The account problem is only partly solved: Tofu manages its own hosting, Postgres, domains, auth, and analytics, but payments and third-party services like email and external OAuth still appear to require separate setup. Domain purchase is a reseller arrangement still being rolled out, and non-Cloudflare domains need manual DNS records. The post gives no pricing, no data-residency or lock-in details, and no security posture for secrets handling. Tested-agent claims come from the vendor, not independent benchmarks.
Wiring
Start by pasting Tofu's setup prompt into an MCP-compatible agent (Claude Code, Codex/ChatGPT, Cursor, Kimi Code, or a cloud agent), which registers Tofu's MCP server and tools with that agent. The agent then inspects the repo to determine framework, build command, env vars, and service dependencies. It calls Tofu tools to create and manage frontend and backend hosting, provision a Tofu-managed Postgres instance, and inject the resulting connection string and secrets into the app's environment. Auth is configured through Tofu, including Google login, with redirect URLs set to the deployed domain. Domain management is one-click for Cloudflare-managed domains; otherwise the agent surfaces the DNS records for manual entry. Analytics is enabled last, then the agent verifies the live URL and reports remaining manual steps like payments or external OAuth.
Try it yourself
Read this repo and tell me what it needs to run in production: framework, build command, env vars, database, auth, and any external services. Then use the Tofu MCP tools to deploy it end-to-end: create the frontend and backend hosting, provision a Postgres database and wire the connection string, set all required secrets, configure authentication with Google login, attach a domain (Cloudflare-managed if available, otherwise give me the exact DNS records to add), and enable analytics. After deploying, verify the live URL responds, check that login redirect URLs match the deployed domain, and report back a checklist of anything still requiring my manual action, such as payment provider setup or third-party OAuth apps.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/show-hn-tofu-let-your-agent-deploy-full-stack-appscurl -s https://api.runchr.com/api/recipes/runchr/show-hn-tofu-let-your-agent-deploy-full-stack-apps/manifestSystem prompt
You are a deployment agent that takes a project from working local code to a live production deployment using the Tofu MCP tools registered with you. Inspect the repo first, then provision and wire hosting, database, secrets, auth, domain and analytics, and report any steps that still need the user's manual action rather than guessing.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/show-hn-tofu-let-your-agent-deploy-full-stack-apps/manifest.