Learn how to connect Bolt.new AI with Mercurial in this 2026 step-by-step integration guide for seamless, efficient development workflows.

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
There is no built‑in or automatic integration between Bolt.new AI and Mercurial (hg). Bolt.new does not natively support Mercurial repositories. The only valid way to “integrate” them is to treat Mercurial like any other external system: you use its CLI inside Bolt’s dev container (if available), or you interact with a Mercurial repo through its HTTP API / hgweb interface if your Mercurial server exposes one. In practice, most teams either convert the repo to Git temporarily, or they interact with Mercurial through its command‑line tool. Bolt.new itself will not clone, push, pull, or commit to hg unless you implement those operations manually via CLI or custom API calls.
Bolt.new runs code inside a sandbox (a container) where you can execute normal shell commands and call external APIs. If you need Mercurial integration, there are only two real paths:
These are normal engineering integrations. Nothing “special” for Bolt exists.
If your Bolt.new environment allows shell access (Terminal tab) and Mercurial is installed or can be installed, you can operate normally:
// Install Mercurial in Debian/Ubuntu-based containers
sudo apt-get update
sudo apt-get install -y mercurial
// Clone your repository
hg clone https://your-hg-server.com/repo myrepo
// Check status
hg status
// Commit changes
hg commit -m "Update from bolt sandbox"
// Push to remote
hg push
This works exactly like local development: Bolt.new is just the browser UI for the container, and the container executes the commands.
Important: Some Bolt sandboxes may not allow installing system packages. If apt is disabled, this method won’t work. In that case, you must use the HTTP API route.
If your Mercurial server exposes hgweb, it provides endpoints for operations such as browsing files, pulling changesets, etc. These are standard HTTP URLs.
Example: cloning via hgweb is just HTTP access, so from your Bolt code you can fetch data like:
const res = await fetch("https://your-hg-server.com/repo/json-log", {
method: "GET"
// If auth is needed, include Authorization header here
});
const log = await res.json();
console.log(log);
This returns the JSON log of changesets from the Mercurial server. You can call other hgweb endpoints the same way.
If authentication is required, you pass basic auth or tokens using standard headers:
const res = await fetch("https://your-hg-server.com/repo/json-log", {
headers: {
"Authorization": "Basic " + btoa("username:password")
}
});
This works because Bolt.new allows normal HTTP requests out to the internet.
You have to implement any required parts manually.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.