Edit on val.town ↗

Townie

Townie is Val Town's in-browser coding agent. Pretty much anything you can do in the Val Town UI, Townie can do: read, write, and run code; read SQLite, blob storage, logs, and environment variables; schedule crons; view version history, create branches; and more.

Powered by frontier models and the Val Town MCP server. Available on all plans, including $1 of included credit on Free. Click the little robot in the top right corner on val.town to get started.

Townie

You can pick from the following models.

  1. Claude Haiku 4.5
  2. Claude Sonnet 5
  3. Claude Opus 5
  4. Claude Fable 5.1
  5. GLM-5.3 Flash
  6. DeepSeek V4.1 Flash

  1. Auto: Townie asks only before high-impact actions
  2. Allow all: Townie YOLOs changes to your vals
  3. Plan: Townie as your read-only thinking partner

Townie has full access to our MCP server, so it can do almost anything you as a user can do.

Our system prompt is public. It provides Townie full context on how to use the Val Town platform—e.g. available tools, the Val Town runtime, our standard library, different types of vals, etc.

Townie automatically attaches the val you're currently viewing as context. You can manually edit what vals are in context by selecting that menu in the chat bar.

You can open Townie with ⌘J. The following slash commands are available:

You can view your Townie chat history in settings to read and continue old chats.

As when coding without AI, you can use Val Town's versioning and collaboration tools like branching, remixing, PRs, and version history to safely work with Townie.

Every Val Town plan includes Townie credit: Business and Pro include $100 and $10 of monthly usage respectively, and Free includes $1.

🟩 Business 🟨 Pro 🟥 Free
$100/mo cap $10/mo cap $1/mo cap

Townie has been through many iterations, which we wrote about on our blog. We also documented learnings from prior versions in: What we learned copying all the best code assistants