Val Town is shutting down: move your vals before January 10

Val Town goes read-only on 10 December 2026 and stops running vals on 10 January 2027. How to export code, SQLite, blobs and secrets, and where each val fits.

By Nov 24, 20266 min read

Val Town is winding down. Its post of 10 November 2026 sets the dates: new signups and plan upgrades ended that day, code becomes read-only on 10 December 2026, and vals keep running until 10 January 2027, when all other services end. The timeline also lists open-sourcing Val Town on 1 February 2027.

Val Town made it a joy to write a few lines of TypeScript and have a live API or scheduled job a moment later, and its team has wound down with the same care, publishing thorough guides for moving to Cloudflare, Vercel, Netlify and Render. This post covers getting everything out, where each kind of val fits, and moving a val from the AI assistant you already use. We make Server4Agent, one of the places you can move to, so weigh our view with that in mind. The Val Town details come from its winding-down post and migration docs as they read on 24 November 2026.

Quick answer

  • Finish anything that changes code before 10 December, including Val Town's export scripts and the redirects from your val.run addresses.
  • Get your code with the Val Town plugin in your AI assistant, the vt command line tool, or Val Town's GitHub guide.
  • Get your data: SQLite as a SQL file, blobs key by key, and each environment variable the val uses.
  • Redeploy, check it works, then redirect. A val stops receiving requests as soon as its redirect is set.
  • To keep your vals running and keep changing them by asking, connect Server4Agent to your AI assistant and ask it to move them.

Key takeaways

  • Two dates matter most: 10 December 2026, when code goes read-only and redirects become permanent, and 10 January 2027, when vals stop.
  • The read-only step does not include SQLite and blob storage, so your data keeps changing until you pause writes and export it.
  • Choose the new home by what each val does: HTTP, cron, email or script.

Get everything out

  • Code. The Val Town plugin or MCP server lets your AI assistant read your vals, query their SQLite and blob storage, and list environment variable names. Or copy a val to your computer with the vt tool (deno install -grAf jsr:@valtown/vt, then vt clone), or follow the GitHub guide.
  • Imports. Val Town's guides say to copy anything imported from esm.town into the project, because those imports still depend on Val Town. Calls to std/sqlite, std/blob and std/email need replacing too.
  • SQLite. The SQLite guide adds a temporary, token-protected HTTP file to the val that streams your tables as a plain SQL file. Pause writes and scheduled jobs first, because it reads in pages rather than as one snapshot.
  • Blobs. List the keys with blob.list and read each with blob.get, as the blob guide shows.
  • Environment variables. Val Town's MCP server lists secret names, not values. The secrets guide encrypts the values inside Val Town for you to decrypt locally. Getting the keys again from the services that issued them is simpler, where you can.

The SQLite and secrets recipes both add a file to your val, so run them before 10 December. Val Town's migration page also recommends moving from Deno to Node, Bun or a provider's own runtime, because it says Deno's core maintainers won't support Deno beyond October 2027.

Point traffic at the new home

Test each val on its new host while the old one keeps running, then redirect each *.val.run address from the val's HTTP settings, as the redirects page shows. Redirects can be added and edited until 10 December 2026, then become permanent. Many webhooks do not follow redirects, so update those URLs with each provider. The page does not say how long redirects last after 10 January, so update links you control too.

Where each kind of val fits

Val Town has three triggers (HTTP, cron and email) plus script vals, which have none. Its where to migrate page names Cloudflare as the most feature-equivalent platform.

Your valVal Town's guides point toWhere Server4Agent fits
HTTP: an API, a site or a webhookA Cloudflare Worker, a Render web service, Vercel or NetlifyA good fit. The app runs on your server at its own HTTPS address
A static page with no server codeCloudflare, Netlify, Vercel or GitHub PagesWorks, but those hosts have free plans made for it
Cron, on an interval or a cron expressionCloudflare Cron Triggers, a Render cron job, or scheduled jobs on Vercel or NetlifyA good fit. Jobs run with cron on your server
Email, run when mail reaches its valtown.email addressA provider that receives mail, such as Cloudflare, Resend, Postmark, Mailgun or SendGridNo inbound email trigger. You would need a provider's inbound webhook calling an HTTP endpoint
Script, with no triggerNot covered separatelyA file the assistant runs when you ask, or cron runs on a schedule

Moving a val to Server4Agent from your AI assistant

Server4Agent lets the AI assistant you already use build and publish web apps, APIs, bots and scheduled jobs at a live URL that stays online after the chat ends. Each project is a folder on a server plus an app at <slug>.apps.server4agent.com with managed HTTPS. Files in the project folder persist, so a SQLite file there keeps your data. A server with a published project, a cron job or a running process stays awake; one with none of those sleeps until the next request wakes it.

  1. Connect Server4Agent once. In ChatGPT, add it from the plugin directory and sign in. The integrations page has the steps for other apps, or type the goal in the dashboard. There is nothing to install.
  2. Bring the code. Ask the assistant to clone your GitHub repository, or give it the files vt clone produced. With the Val Town plugin connected too, you can ask it to read each val and rebuild it.
  3. Choose the runtime. Servers come with Node 22, Python 3, git, curl and cron, and the assistant can install more with sudo. Deno is not preinstalled: the assistant can install it with DENO_INSTALL inside /home/node/workspace, because only the workspace survives a restart. Or it can port the val to Node.
  4. Set the secrets. Add each key on the dashboard's Secrets page, or have the assistant store it with set_secret, and attach it to the project. Typed on the Secrets page, keys stay out of the chat and the code.
  5. Bring the data. Ask the assistant to load the SQL export into a SQLite file in the project folder, put blob files there too, and point the code at them.
  6. Start it. An HTTP val starts with start_app, which records it so a restart brings it back. A cron val becomes a cron job, and the crontab is saved in the workspace and restored after a restart. Val Town evaluated cron expressions in UTC, so say which time zone you mean.
  7. Check it, then switch. A new project is private. When it works, open it to your team, named teammates, anyone with a password, or the public, then set the redirect on Val Town. For your own domain, connect it first (paid plans, how to), then switch DNS.

For a cron val, the request can be this short:

Move my Val Town val that sends the morning digest. Port it to Node, keep its data in a SQLite file in the project folder, run it every day at 7:00 UTC with cron, and use the API key I added on the Secrets page.

If a val emailed you with std/email, apps on Server4Agent can email the account's own people (the owner and teammates at confirmed addresses) with no provider key. Anyone else needs your own email provider.

FAQ

When does Val Town shut down?

Vals keep running until 10 January 2027, when Val Town says all other services end. Code becomes read-only on 10 December 2026, apart from SQLite and blob storage, and redirects become permanent that day. New signups and upgrades ended on 10 November 2026, and Val Town says prepaid annual plans get a partial refund.

How do I export my vals from Val Town?

Connect the Val Town plugin or MCP server to your AI assistant, clone each val with the vt command line tool, or follow Val Town's GitHub guide. Do anything that changes a val before 10 December.

What is a good Val Town alternative?

It depends on the val. Val Town names Cloudflare as its most feature-equivalent platform. For vals you want to keep running and keep changing from the AI assistant you already use, Server4Agent runs HTTP apps and cron jobs on a server that assistant drives.

Does Server4Agent run Deno?

Deno is not preinstalled, but the assistant can install it into the project workspace, which survives a restart, or port the code to Node 22, which is preinstalled.

Will my cron vals keep running on Server4Agent?

Yes. The assistant schedules them with cron on your server, and a server with a cron job is never put to sleep, so jobs keep firing after you close the chat. The crontab is saved in the workspace and restored after a restart.

Can Server4Agent receive email like an email val?

No. Server4Agent has no inbound email trigger. One general approach is an email provider that receives the mail and sends each message to an HTTP endpoint in your app as a webhook.

Does Server4Agent have a free plan?

Yes. A single val moved over fits on the Free plan, which has a small server and one live public project. For more projects and custom domains, paid plans run from Solo at $19 a month to Business at $299, AI credits included, under an account-wide budget cap.

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.