Deno Deploy sunsets in April 2027: how to move your app

Deno Deploy will be sunset in April 2027. How to get your code, Deno KV data and secrets out, run the same Deno code elsewhere, and pick a new home.

By Nov 24, 20266 min read

On 9 October 2026, Deno announced that its entire team is joining Cloudflare and that Deno Deploy "will continue operating for six months before shutting down." Deno's product, pricing and docs pages now carry the banner "Deno Deploy will be sunset in April 2027", and the docs add that existing applications keep running until then. No page names a day in April, so plan to be moved by the end of March.

Deno Deploy made shipping a TypeScript server about as simple as it gets, and Deno is a great runtime. The good news: Deploy runs the standard Deno runtime, so most Deploy apps run wherever Deno does. We make Server4Agent, one of the places you can move to, so weigh our view with that in mind. The Deno details come from Deno's announcement, the Deno Deploy page and the Deno docs, as they read on 24 November 2026.

Quick answer

  • Deno's own path: migration support for paying customers moving to Cloudflare Workers. If you pay for Deploy or need an edge network, start there.
  • Get your code: if you deployed from GitHub, it is in your repository. If it only lives in the Deploy dashboard, copy it out now.
  • Get your Deno KV data: copy every key into a local file with the short script below.
  • Collect your secrets: Deploy never shows one again once saved, so gather the values from where you first got them.
  • Redeploy, check it, then move your domain. Deploy keeps serving until the sunset, so DNS can switch with no gap.

Key takeaways

  • Two timelines matter: Deploy is sunset in April 2027, and the Deno runtime gets monthly fix and security releases for one more year, then Deno ends its own development of it. Deno stays open source.
  • Deploy code is plain Deno. Deno.serve, Deno.openKv and Deno.cron run in the Deno CLI with the --unstable-kv and --unstable-cron flags.
  • Outside Deploy, Deno KV is a SQLite file. Give Deno.openKv() a path inside your project.

How each part of a Deploy app runs elsewhere

Your app usesOn Deno DeployOutside Deploy, per Deno's docs
Deno.serveStarted on a request, stopped when idleSame code. Listens on port 8000 unless you pass a port
Deno KVA managed database assigned to the appBuilt into the CLI. A file path gives a local SQLite database; with no path, it lives in your home directory
KV queues (enqueue, listenQueue)Part of Deno KVWork with a local database file, not over a remote connection
Deno.cronFound at deploy time, run and retried by the platformKeeps its state in memory in your process, so it fires only while that process runs
Environment variablesSet per context in the dashboard, secrets hidden once savedDeno.env.get reads them from the process, as before
PostgresDATABASE_URL injected for youSet it yourself. A Prisma Postgres instance made through Deploy can be claimed into your own Prisma account (permanently)
Custom domainDNS records and a Let's Encrypt certificateAdd the domain on the new host, then change DNS

Copy your Deno KV data out

Deno's KV docs describe opening a Deploy database from outside Deploy with its connection URL (the database ID is on its page in the Deploy console) and a personal or organization access token in DENO_KV_ACCESS_TOKEN. The copy is a few lines:

ts
// copy-kv.ts
const from = await Deno.openKv("https://api.deno.com/v2/databases/<Database ID>/connect");
await Deno.mkdir("./data", { recursive: true });
const to = await Deno.openKv("./data/kv.sqlite3");

let copied = 0;
for await (const entry of from.list({ prefix: [] })) {
  await to.set(entry.key, entry.value);
  copied++;
}
console.log(`Copied ${copied} keys`);

Run it with deno run -A --unstable-kv copy-kv.ts, then point Deno.openKv() in your app at "./data/kv.sqlite3". It does not keep key expiry times. For a large database, Deno's backup docs describe continuous backup to an S3-compatible bucket that the open source denokv tool can restore.

Where each kind of app fits

Your appA good home
Needs to answer from many locations at onceCloudflare Workers, Deno's own recommended path
A Deno web app, API, bot or scheduled job you keep changing from your AI assistantServer4Agent. The same Deno code runs on a server, with KV as a file in the project
Several services sharing one KV database, and you are happy to run serversA VPS with Deno and a self-hosted denokv server

Server4Agent is not a global edge network. Each project runs on one server whose size you pick: small, medium or large. If you need edge distribution, Deno's recommended path or another edge host fits better.

Moving to Server4Agent from your AI assistant

  1. Connect Server4Agent once in the AI assistant you already use (in ChatGPT it is in the plugin directory: add it and sign in), or type the goal in the dashboard. Nothing to install. The integrations page has the steps for each app.
  2. Bring the code. Ask the assistant to clone your repository into a new project. Git is preinstalled.
  3. Install Deno in the workspace. Deno is not preinstalled, and only the workspace survives a server restart, so the assistant installs it there (adding unzip with sudo if the script asks for it):
sh
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/home/node/workspace/.deno sh

Deno's install docs put the binary at $DENO_INSTALL/bin/deno. Point DENO_DIR, Deno's cache, into the workspace too.

  1. Listen on the project's port. Each project hands its app a PORT: Deno.serve({ port: Number(Deno.env.get("PORT")), hostname: "0.0.0.0" }, handler).
  2. Move the data. Run the copy script in the project folder, where files persist. Keep the explicit path: the default KV location is in the home directory.
  3. Set your secrets. Add each value as a secret on your account from the dashboard; the assistant attaches it to the project by name, so keys stay out of the chat.
  4. Start it. The assistant runs start_app with, for example, /home/node/workspace/.deno/bin/deno run -A --unstable-kv --unstable-cron main.ts (Deploy ran apps with all permissions). It records the command, so a restart brings the app back with its Deno.cron jobs, and a server with a running process is never put to sleep, so those jobs keep firing after you close the chat. A job that should run on its own can be a crontab line instead; the crontab is restored after a restart.
  5. Check it, publish it, then move your domain. A new project is private, so test it at its <slug>.apps.server4agent.com address (HTTPS included) first. Then open it to your team, named teammates, a password or the public. Custom domains are on paid plans (how to): connect yours, then switch DNS.

For a small app, one message can cover it:

Clone my Deno app from this repo into a new project, install Deno in the workspace, copy my KV data into a file in the project, and keep it running on the project's port.

If you later want the app on Node 22, which is already on the server, ask the assistant to port it in the same project.

FAQ

When does Deno Deploy shut down?

In April 2027, according to the banner on Deno's product, pricing and docs pages. Deno's 9 October 2026 announcement says Deploy will operate for six months before shutting down. No page gives an exact day, and existing apps keep running until then.

Is the Deno runtime going away too?

Not now. The announcement says Deno will support the runtime for another year with monthly bug fix and security releases, then end its own development of it. Deno stays open source, and the announcement welcomes others who want to continue its development.

What does Deno recommend for Deno Deploy users?

The announcement says Deno will provide migration support for paying customers moving to Cloudflare Workers. We found no separate migration guide in Deno's docs on 24 November 2026.

Does Deno KV work outside Deno Deploy?

Yes. Deno KV is built into the Deno CLI behind the unstable KV flag, and with a file path the database is a local SQLite file. To bring data across, open the Deploy database from a script with an access token and copy every key.

Does Deno.cron work outside Deno Deploy?

Yes, with the unstable cron flag. It runs inside your process and keeps its state in memory, so jobs fire only while that process runs, and each running copy of the app has its own set.

Can I run a Deno app on Server4Agent?

Yes. Deno is not preinstalled, so the assistant installs it into the workspace, which survives a restart. The same Deno.serve code then runs on the project's port.

Does Server4Agent support custom domains?

Yes, on paid plans: 2 on Solo, 3 on Starter, 10 on Pro and 30 on Business. Connect the domain to the project, then switch DNS.

Does Server4Agent have a free plan?

Yes. The Free plan includes a small server and one live public project. Paid plans are Solo at $19 a month, Starter at $29, Pro at $99 and Business at $299. AI credits are included, and an account-wide budget cap limits what you can spend.

External references

All read on 24 November 2026.

Questions, or a tool you want built?

Ask us about this post, or tell us what you would hand to an assistant first. A person reads every message and answers within one business day.