Skip to content

Pointing mise at BatleHub ​

mise installs tools from wherever each backend happens to publish them: GitHub releases, npm, crates.io, nodejs.org/dist, a vendor's own host. Every one of those is a direct download, and none of them goes through a package manager you can point at a proxy with one setting. [settings.url_replacements] is how mise is told to route them here instead.

This page is the one home for that, connected and disconnected.

1. The connected case ​

Ask the CLI what your project needs, and it prints the block:

bash
batlehub-cli registry suggest --mise

It scans mise.lock first — the lock records the exact URL of every tool, per platform, so the answer is derived from what the project actually downloads rather than guessed from tool names. Add --mise-commented to get a block you can commit into a shared mise.toml without turning it on for everyone at once.

Order matters, and the generator handles it: mise applies the rules in declaration order, first match wins, and matching stops at the first hit. There is no fallback — the rule that matched is the only URL tried.

Credentials

For a registry that requires auth, add a ~/.netrc entry for the proxy host rather than embedding a token in the URL. mise reads it, and the token stays out of shell history, CI logs and mise doctor output.

1.1 The versions host ​

For a tool whose backend is the registry default — jq, node, terraform — mise asks mise-versions.jdx.dev for the list of versions before asking the backend, and after each install it reports the tool, version, OS and architecture there. A mise-versions registry routes both through this instance: the list is filtered by the block list (and by an age gate, if the registry has one), so latest never lands on a version the instance would refuse, and the report is answered here and sent nowhere. The generator writes its rule first when the instance has such a registry. In an air gap the list answers 404 at once, and mise falls back to the backend's list — the one §2 composes from what the bundle held.

1.2 Auto-wire: one rule for every host ​

The rules above are one per host and per URL shape, and they go stale when the instance mirrors a new host. With auto-wire (RFC 0045) the client carries one rule that sends every mirrored host to the instance, and the server decides where each request goes. It is enabled on the mise-versions registry:

toml
[[registries]]
name = "mise-versions"
type = "mise-versions"
  [registries.auto_wire]
  enabled = true      # default false
  overlay = false     # true to serve your own tools by short name (below)

Then print the block for your account and put it in one mise config file:

bash
batlehub-cli registry suggest --mise --auto-wire                    # connected
batlehub-cli registry suggest --mise --auto-wire --mise-catch-all   # air gap

mise does not merge url_replacements across files: a project mise.toml that still carries the classic rules replaces this block whole. Remove the classic block from every committed mise.toml (grep -rl url_replacements) before relying on the auto-wire one, and keep a mise-versions.jdx.dev rule in any block that stays, so tool listings keep going through the instance.

Your own tools by short name. With overlay = true, each [[registries.auto_wire.tools]] entry (a source on a github or forgejo registry of this instance, or explicit backends) is added to the registry archive mise floats, and the block turns registry_floating on. A name that also exists upstream is left out on both sides by default (on_collision = "drop") and listed on the configuration page. registry_floating also makes mise fetch the current aqua registry, from api.github.com/repos/aquaproj/aqua-registry/contents/registry.yaml. The github kind has no contents/ route, so that request answers 404: mise warns once (failed to load floating aqua registry) and keeps the aqua registry baked into its release, the one that release was tested with. An aqua package newer than your mise is not found until mise is upgraded. A binary with no forge behind it can be served today as an http: backend whose url points at a generic registry; it has no publish step and no per-version block list.

When an install fails. mise prints the URL it asked for. curl it with your token to read why:

bash
curl -s -H "Authorization: Bearer $BATLEHUB_TOKEN" '<the URL from the error>'
  • 404 with "code":"not_wired": the host or path is not mirrored for you — regenerate the block, or ask for read access on the registry behind it.
  • an overlay name that mise does not find: check mise --version (2026.8.0 or later), ls ~/.cache/mise/mise-registry/ (the archive was fetched), and the collision list on the configuration page. On an empty cache, the first command that names an overlay tool fails this way even when everything is right: mise reads the tool name before it fetches the archive. Run it again, or run mise registry first.

Turning it off. Switching overlay off keeps the archive route wired, so clients pick up the public registry at their next refresh. Names you stop serving go in retired, which keeps answering their listings here; a client drops its cached archive with rm -rf ~/.cache/mise/mise-registry.

1.3 conda channels and dotnet: tools ​

conda:. mise's conda backend sends every repodata and package request through url_replacements, and a conda registry fronts one channel. Each registry gets the rule of the channel its upstream names, so two registries of two channels get two rules:

toml
[settings.url_replacements]
"regex:^https://conda\\.anaconda\\.org/conda-forge/(.+)" = "https://hub.example.com/proxy/conda/$1"
"regex:^https://conda\\.anaconda\\.org/bioconda/(.+)" = "https://hub.example.com/proxy/conda-bio/$1"

A tool reads the channel of its own channel option, else conda.channel (default conda-forge). A registry left on the server's default upstream, the bare https://conda.anaconda.org, names no channel and gets no rule: it would claim every channel on the host. Two registries of one channel would leave the second rule dead, so setup refuses the mise file until --pick conda=<name> says which.

dotnet:. mise reads the version list itself, from dotnet.registry_url, and installs with dotnet tool install, a subprocess that reads NuGet.config and never sees url_replacements. So a nuget registry is two settings, not a rule:

toml
[settings.dotnet]
registry_url = "https://hub.example.com/proxy/nuget/nuget/v3/index.json"

and the NuGet.config source that batlehub-cli setup apply --only nuget writes. setup writes the first in the mise file and prints a reminder of the second when it is not configuring NuGet in the same run; without it the listing comes through BatleHub and the package does not, so a blocked version still installs. The search answer lists the one version each hit names, so mise ls-remote dotnet:… through BatleHub shows that version, not the whole history; an exact version (dotnet:tool@4.6.4) is not listed at all, and installs from the feed.

2. What an air gap needs ​

A host with no route off the site cannot install anything mise has not already been told about, and the failure it gives you today is a connect timeout with no name attached. Three things change that (RFC 0008):

  1. The lock becomes a plan. mise.lock already names every download; mise plan resolves each one onto the path it takes through this server, and reports the two things you cannot find out today — the tools that will not work at all, and the hosts nothing mirrors.
  2. The server refuses to dial out. With [air_gap] on, a miss is an immediate 503 that names the coordinate, not a timeout, and it is recorded — so the list of what the next bundle needs is produced by the estate rather than guessed.
  3. Verification moves to the connected side. mise's own cosign and attestation checks cannot run offline; instead they run once where they can, and what they found travels with the content.

2.1 Plan ​

bash
batlehub-cli mise plan --lock mise.lock --platform linux-x64 -o mise-plan.json
text
28 tool(s) · 41 download(s) · 6 registries · 3 host(s) with no mirror configured
  no mirror: binaries.sonarsource.com
  unsupported: asdf:mise-plugins/mise-postgres: a git-fetched plugin backend; mise clones it, and there is no HTTP path through BatleHub

Planning is offline: it reads the lock and the server's registry list and resolves nothing over the network.

--platform defaults to the platform of the machine you run it on, which is the common case and keeps a bundle the size of the estate that asked for it. Name several, comma-separated, for a mixed estate, or --platform all for every platform the lock records. If the lock has nothing for this host, the command says so and plans everything rather than writing an empty bundle.

A lock records two addresses for a forge release asset — the download URL and the API's own — and both are planned. They are one artifact reached two ways, they share a digest, and the bundle carries a single copy: the second address costs a manifest row and nothing else. It is not optional, because the aqua: and github: backends usually fetch the API one.

On a Forgejo the API address is {forge}/attachments/{uuid}, and the forgejo: backend uses only that one — it builds the URL from its own configured forge root and never reads the download URL it was served. Two rules, not one, therefore route it; BatleHub answers the uuid shape at /proxy/<registry>/attachments/<uuid> (see Forgejo), and registry suggest --mise writes both.

Add --include-mise to carry mise itself, so the bundle always contains the binary that will read the next plan. The version is the mise on your PATH unless --mise-version says otherwise.

Read no mirror before anything else. It is the answer to "is my rewrite table complete?", and it is cheaper to answer now than at install time on a machine with no network.

2.2 Seed ​

bash
batlehub-cli mise seed --plan mise-plan.json --verify

Every planned entry is fetched through BatleHub — fetching is warming — and the digest of what the server served is compared with the lock's. The exit status is non-zero if any entry is missing or any digest disagrees, so this is usable as a CI gate on the connected side.

--verify additionally reports what the supply-chain layer (RFC 0018) said about each entry and fails the run on a denied verdict. Strictness is the registry's [registries.security], not a flag here: a registry that requires provenance refuses an unsigned artifact whoever asks.

2.3 Export, carry, import ​

bash
# connected side
batlehub-cli mise export --plan mise-plan.json --sign-key ./estate.key -o estate.bhub

# disconnected side
batlehub-cli mise import estate.bhub

A bundle is a tar of three things:

text
manifest.json     the plan, plus what was verified about each entry
blobs/<sha256>    content-addressed, so identical bytes ship once
manifest.sig      an ed25519 detached signature over manifest.json

Blobs are named by their own digest, so a blob that does not hash to its name is rejected on the way in without reference to any signature — and the signature is checked before a single blob is read. An import is idempotent by bundle id: carrying the same bundle twice writes once.

Ed25519 because it is the only signature BatleHub verifies in-process. Cosign signatures are ECDSA over an x509 identity, which this server cannot check, so it records the verdict rather than the signature and labels it as evidence about a past check — never as a live one.

Overlay names across the gap. Add --include-mise-registry to the export when the disconnected instance serves its own tools by short name (overlay = true, §1). The bundle then carries mise's registry archive from every mise-versions registry with auto_wire, raw: the public archive as the connected instance fetched and checked it, without its overlay. The disconnected instance checks it again, merges its own overlay into it and serves it while nothing fresher is cached, so mise install acme-deploy works with no egress. The air-gap block that registry suggest --mise --auto-wire --mise-catch-all prints turns registry_floating on when the overlay is on. Without a carried archive, or with one that fails the check, the archive route answers 503 and mise keeps the registry it has. To refresh the archive, export the same plan again: without --bundle-id, the carried archives' digests are part of the bundle id, so a newer archive is a new bundle that the import does not skip as already seen.

3. Turning the air gap on ​

toml
[air_gap]
enabled             = true
bundle_trusted_keys = ["3b1f…"]   # hex ed25519 public keys accepted on import
record_misses       = true
miss_retention_days = 90

See configuration for the full reference. Two refusals at load are worth knowing about before you try them: an egress proxy alongside enabled = true is a contradiction, and enabled = true with no trusted keys would accept any bundle at all.

3.1 The catch-all rule ​

bash
batlehub-cli registry suggest --mise --mise-catch-all

appends one final rule sending anything no other rule matched to /_air-gap/unmirrored/{host}/…. That route fetches nothing: it answers 501, names the host and records it. An unmirrored host becomes a line in the console instead of a connect timeout on a workstation.

It must be last, which is why the generator appends it rather than telling you to — and it is preceded by an identity rule for this server's own host, because the catch-all matches every https URL and would otherwise send a backend you had already pointed at BatleHub into the 501 sink.

4. Reading what is missing ​

bash
batlehub-cli air-gap missing
batlehub-cli bundle list

or the console's Air gap page under Operations. The miss log is one row per (registry, key) with a counter — mise retries, and the log must not grow with the retries — sorted most-asked first, which is the order to build the next plan in. Two columns say what the row means for the next plan: Requested, the version the client asked for when its request named one (mise's release by tag does, so mise install gh@2.61.0 against an instance holding 2.60.0 reads requested v2.61.0, held v2.60.0), and Held, what the instance had of that tool.

A coordinate an administrator blocked never appears there. A blocked package is not a gap in the mirror, and proposing it for the next bundle would be undoing the block by accident.

5. What will not work ​

  • asdf: plugins. mise fetches them over git, and there is no HTTP path through a proxy. mise plan lists them under unsupported, with the backend named.

  • A vfox: plugin mise clones. The plugins built into mise download over HTTP, so the rewrite rules cover them once mise lock has recorded the URL; without a lock mise plan prints a note: asking for one. A plugin named by URL, or one mise does not embed, is cloned over git and cannot come through.

  • The subprocesses of a few vfox plugins. Three embedded plugins run a program whose own downloads never see url_replacements: connected they go direct, air-gapped they fail. mise plan and registry suggest flag them with a note.

    PluginSubprocess
    phpconfigure, make
    poetrythe installer script, run by python
    pipenvpip

    The list is re-measured on each mise pin bump; a plugin missing from it loses the warning, not a route.

  • packslip: on its own host. packslip:{owner}/{repo} and packslip:github.com/… come through the github kind; a packslip:{host} tool reads https://{host}/.well-known/packslip.json, which no registry mirrors, and the plan says so.

  • A dotnet: tool with the mise block alone. The install is a dotnet tool install that reads NuGet.config, not mise (§1.3): run batlehub-cli setup apply --only nuget as well, or the package goes direct.

  • core:dotnet. mise runs Microsoft's dotnet-install.sh, whose download feed is hard-coded and set only by --azure-feed, which mise does not pass. No rewrite rule reaches it: registry suggest lists it under Not routable through BatleHub and mise plan under unsupported.

  • Compiled core: installs. python.compile, ruby.compile, node.compile and kerl-built Erlang clone their build tools over git and run them as subprocesses. A lock entry for core:node, core:python, core:ruby or core:erlang that records no URL is read as one, and mise plan lists it as unsupported; run mise lock if the install is in fact precompiled.

  • An older mise. A release that does not know a setting only warns and lets the tool go direct. Each rule's floor is the oldest release its wiring was read in, and setup prints it beside the rule:

    Rulemise ≥
    conda: (rattler's url_replacements middleware)2026.9.5
    dotnet.registry_url2026.9.5
    every other rule on this page2026.11.3

    2026.11.3 is the release the heavy suites pin; nothing older than 2026.9.5 was read, so the two earlier floors are what was checked, not the first release that had the feature.

  • A host you have no registry for. The plan says so; add a registry or drop the tool.

  • Live signature verification on the disconnected side. It cannot run there: github_attestations, github.slsa, aqua.cosign, aqua.slsa and aqua.minisign each reach Sigstore or the forge before installing, and a transparency log is not cacheable. Turn all five off; the runbook has the block. The checksum in mise.lock is still verified locally — it needs nothing but the bytes — and what replaces the signature is BatleHub's verdict, recorded when it could be and carried across with them.

  • A version the bundle did not carry. A bundle carries artifacts and the entry that finds them, not the forge's own documents. Since RFC 0008-bis the disconnected instance composes the release document from the assets it holds, so mise install some-tool@1.2.3 works without a lock when 1.2.3's asset was bundled — mise reads the release by tag, finds the asset, installs. For a version that was not bundled the release is a 503, recorded under the document kind with the tag as Requested, and mise's fallback to the release list finds only the held versions. The lock is still the bill of materials: an install from mise.lock attempts exactly one URL, the asset the lock names, and mise plan reads the lock rather than the config because that is the list the bundle must carry. Keep lockfile = true and commit the lock.

5.1 The core toolchains ​

Each of mise's thirteen core: toolchains has one route, and registry suggest --mise, mise plan and setup agree on it (RFC 0048):

ToolRoute
nodethe nodedist kind; the block also sets node.mirror_url
rustthe rustup kind, through RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT under [env]: rustup is a subprocess and reads no rewrite rule
gothe godist kind
python, bun, rubythe github kind, from the URLs the lock records
denogeneric preset deno-dl (dl.deno.land)
ziggeneric preset zig-dl (ziglang.org), with zig.use_community_mirrors = false
elixir, erlanggeneric preset hex-builds (builds.hex.pm); erlang on macOS comes from erlef/otp_builds on GitHub
swiftgeneric presets swift-dl (download.swift.org, its own max_artifact_size_bytes) and swift-api (the release index)
PyPygeneric preset pypy-dl (downloads.python.org/pypy)
javathe mise-java kind: one rule for mise-java.jdx.dev and one per vendor host, written before the github rules so a JDK on github.com/adoptium/ reaches the kind that can block it
dotnetnot routable, see above

Node and Rust used to get generic presets (node-dist, rust-dist); a mirror an estate already declared that way keeps working, and mise plan still plans through it, but a block on a Node release or a Rust toolchain only holds through the typed kind.

Zig needs its setting: mise tries seventeen community mirrors before ziglang.org, so a rule on ziglang.org is reached only after every one of them has failed. The generated block always carries zig.use_community_mirrors = false; a hand-written one is checked by nothing, so mise plan prints a note: for every locked zig.

See also ​

Released under the Apache 2.0 License. Made with care and too much coffee.