cd /news/ai-tools/how-to-deploy-an-app-you-built-with-… · home › topics › ai-tools › article
[ARTICLE · art-179735] src=getfloo.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

How to deploy an app you built with OpenCode

A new guide from floo walks developers through deploying an app built with OpenCode by committing the project directory to Git, adding a Dockerfile and floo.app.toml, and running the floo CLI's `floo deploy` command. The guide instructs builders to first trace where the app stores data — browser storage, an existing API, or a same-app route writing to Postgres — to determine whether a static host, frontend plus API, or full app server is needed, and to keep build and deploy instructions in the repository's AGENTS.md for future OpenCode sessions.

recommendation

Commit the project directory to Git and keep build and deploy commands in AGENTS.md so each OpenCode session reproduces the same deployment.

more in playbook: Running AI in production
by read2 min views2 publishedDec 1, 2026

OpenCode works in your project directory. To put the app on a live URL, deploy that directory’s source code. OpenCode keeps its own editing snapshots. Make a Git commit in the project itself so your deployed version can be reproduced. OpenCode’s snapshot docs

Find the server your app needs #

Look at one action that changes data. If someone adds an expense and the next person opening the page can see it, trace the request from the browser to the service that stores the record. That tells you what to deploy.

What happens after Save What to host
It writes to browser storage A static host can serve the app. Each browser still has a separate copy of the records.
It calls an API you already run Deploy the frontend and verify the API allows requests or sign-in callbacks from the new URL.
It calls a route inside the same app and writes to Postgres Deploy the app server and configure the database it will use. Test that a new process can read what the old one saved.

Open OpenCode in the project and paste this #

Start OpenCode from the directory containing the app. Paste this into its terminal UI:

Prepare this repository for its first floo deploy. Read the existing project instructions, dependency files, and start scripts. Identify the correct build and start commands and trace where the app saves records. Keep the existing runtime, data, and app sign-in. Follow https://getfloo.com/docs/guides/dockerfiles and https://getfloo.com/docs/cli/deploy. Add or update the Dockerfile and floo.app.toml. Make the server listen on 0.0.0.0 and honor PORT. List required environment variable names without values. Run the build and floo preflight. Stop before deployment and show me the changed files and how to test the first live URL.

Install the floo CLI and sign in when prompted. Review the changes and commit the files, leaving local secrets out of Git. Run floo deploy from the repo. A project already connected to GitHub can deploy from that repo. A local repository can use the floo-hosted project flow.

Open the returned URL in a clean browser. For the expense example, add a test expense and open it in a second session with the same access. If you want someone to use the app without a floo login, review the public access settings first. Keep the build and deploy instructions in the repository’s AGENTS.md so future OpenCode sessions use the same commands.

Sign up and deploy your OpenCode app on floo. For another worked example, read the Claude Code hosting guide.

── more in #ai-tools 4 stories · sorted by recency
── more on @opencode 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-deploy-an-app…] indexed:0 read:2min 2026-12-01 · —