GuidesGetting started

mise: install, activate, and pin Node and Python per project

What mise is, the mise.run install script, activate vs shims, mise use, mise.toml and .tool-versions, mise trust, and mise for coding agents on a server.

December 4, 2026The Everpod team
The short answer

mise (“mise-en-place”, from jdx on GitHub, MIT-licensed) is one command-line tool that installs and switches the versions of Node.js, Python and other developer tools per project, sets per-project environment variables, and runs project tasks, all from a mise.toml. It does the work of nvm, pyenv and asdf, and reads asdf’s .tool-versions. Install it with curl -fsSL https://mise.run | sh (it lands in ~/.local/bin/mise), hook it into your shell with mise activate, then run mise use node@lts in a project or mise use -g node@lts for your whole account. On a server where a coding agent runs commands, the agent’s shell is not interactive, so put mise’s shims on the PATH as well. The current release is v2026.12.3 (December 4, 2026).

What mise does

The project describes itself in four words: “dev tools, env vars, task runner”. Each is a section of one file:

JobIn mise.tomlWhat it replaces for most people
Tool versions per project
[tools]nvm, pyenv, rbenv, asdf
Environment variables per project
[env]direnv, a hand-sourced .env
Project commands
[tasks]make targets, npm scripts

A project that pins Node 24, sets one variable and defines one task looks like this:

[tools]
node = "24"
python = "3.13"

[env]
NODE_ENV = "development"

[tasks.test]
run = "npm test"
Copied

Node comes from the official builds on nodejs.org; Python comes precompiled from python-build-standalone by default, so most versions need none of the compiling pyenv does.

Installing it

The maker’s installer is a shell script, so read what it does before piping it to a shell. According to mise’s install page, it needs curl or wget, tar and sha256sum or shasum; it downloads the release archive from mise.jdx.dev (falling back to GitHub Releases), checks it against a checksum that never comes from mise.jdx.dev, stops if the two do not match, and writes one file, ~/.local/bin/mise. It needs no sudo and does not touch your shell files. Unless you name a version, it picks the newest stable release that has been out for at least 24 hours.

curl -fsSL https://mise.run | sh
~/.local/bin/mise --version
Copied

To read it first, download it, open it, then run it:

curl -fsSL https://mise.run -o mise-install.sh
less mise-install.sh
sh mise-install.sh
Copied

MISE_VERSION=v2026.12.3 before sh pins a release, and MISE_INSTALL_PATH changes where the file goes. The variants https://mise.run/bash, /zsh and /fish also append the activation line to that shell’s startup file.

Package managers, as of December 2026:

SystemCommand
macOS (Homebrew)
brew install mise
Debian 11+, Ubuntu 22.04+
sudo apt install -y extrepo, sudo extrepo enable mise, sudo apt update, sudo apt install -y mise
Ubuntu 26.04+ (PPA)
sudo add-apt-repository -y ppa:jdxcode/mise, then sudo apt update and sudo apt install -y mise
Fedora 43+, RHEL 10
sudo dnf copr enable jdxcode/mise, then sudo dnf install mise
Any Linux with Snap
sudo snap install mise --classic
Arch, Alpine
sudo pacman -S mise, apk add mise
npm
npm install -g mise (not the old @jdxcode/mise)

A package-manager install puts mise on the system PATH, so in the commands below you can write plain mise where they say ~/.local/bin/mise.

Activation or shims

Installing the tool does not yet put Node or Python on your PATH. There are two ways to do that, and they suit different shells.

Activation hooks mise into your prompt: once when the line runs, then each time the prompt is drawn, mise looks at the current directory’s config and rewrites PATH and the [env] variables to match. These commands append one line to the end of your startup file (they add, they do not overwrite). Pick your shell:

echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
Copied
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> "${ZDOTDIR:-$HOME}/.zshrc"
Copied
mkdir -p ~/.config/fish
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
Copied

Open a new terminal afterwards. With Homebrew, fish is activated without this step.

Shims are small executables named node, python and so on, kept in ~/.local/share/mise/shims. Each one reads the config for the directory it is run from, picks the version and runs the real program. They work wherever that directory is on the PATH, prompt or no prompt. The shims page lists what they give up:

mise activateShims
Right tool version per directory
Yes, at each promptYes, each time the tool runs
[env] variables in your shell
YesNo (only for the tool the shim starts)
cd/enter/leave hooks
YesNo
Follows directory changes without a prompt (scripts, agents, editors)
No, only the directory it started inYes
which node
The real binaryThe shim; use mise which node

mise’s own advice is to use activation in the shell you type into and shims for everything else, and the two combine: shims from the login profile, activation in the interactive file. The shims line goes in ~/.bash_profile (or ~/.profile if that is the one you have) or ~/.zprofile:

eval "$(~/.local/bin/mise activate bash --shims)"
Copied

On Debian and Ubuntu, ~/.profile usually loads ~/.bashrc, and a new ~/.bash_profile would stop bash from reading ~/.profile at all. If you create one there, make its first line [[ -f ~/.profile ]] && source ~/.profile. Prefer mise activate --shims to a hand-written export PATH=...shims:$PATH: the docs note the hand-written line leaves out the system shim directory and command wrappers.

Then check the result. mise doctor reports whether activation and shims are set up, which config files and tools are in use, and exits with status 1 when something is wrong:

mise doctor
Copied

Choosing versions: mise use

mise use installs a version and records it. Inside a project it writes to the nearest config, creating mise.toml in the current directory if there is none; with -g it writes your account-wide default, ~/.config/mise/config.toml.

mise use -g node@lts
mise use -g python@3.13
cd ~/projects/app
mise use node@24
Copied

node@lts means the newest release of the current LTS line, and node@24 the newest 24.x. mise writes them to the file as you asked for them; add --pin to write the exact version it resolved instead (for node@20, something like 20.19.5). Config files merge from the filesystem root down to the current directory, so a project’s entry for node overrides the global one and the tools it does not mention are inherited.

.tool-versions is asdf’s format, one tool and version per line, and mise reads it alongside mise.toml, so a repository set up for asdf works unchanged. The files other version managers use are not read by default: .nvmrc, .node-version and .python-version are ignored until you turn them on per language:

mise settings add idiomatic_version_file_enable_tools node
mise settings add idiomatic_version_file_enable_tools python
Copied

That default catches people coming from nvm, whose project pinned Node in .nvmrc and suddenly runs the global version. The nvm install guide covers what each coding agent’s npm package expects of Node. For Python packages and virtual environments, mise can create a .venv per project (_.python.venv = { path = ".venv", create = true } under [env]), and it uses uv for that when uv is installed; the uv guide covers uv on its own.

mise exec and tasks

mise exec runs one command with a project’s tools and [env], with no activation and no shims needed; only mise itself has to be findable. It also runs a version you have not configured anywhere:

mise exec -- node --version
mise exec node@22 -- node --version
Copied

Tasks are commands kept in the project. A [tasks.name] table with run suits a line or two; a longer one goes in an executable script under mise-tasks/. depends = ["lint", "build"] runs others first, possibly in parallel.

mise tasks ls
mise run test
Copied

A task runs with the project’s tools and environment, and mise run installs any missing tool before it starts, which is what makes it useful as the one command an agent is told to run.

mise on a server where coding agents run commands

The usual complaint is that node works in your SSH session but the agent gets “command not found”, or a different version. The cause is the shell the agent runs commands in.

Claude Code’s tools reference says it “starts a non-interactive shell, sources ~/.zshrc for Zsh or ~/.bashrc for Bash”, and applies the aliases, functions and shell options it captures to its commands. Two things then keep activation from helping. The default ~/.bashrc that Debian and Ubuntu ship starts with:

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac
Copied

so a line appended at the bottom, as the activation command above does, is never reached by a non-interactive shell. Check the top of yours for the same lines. And where the line does run, activation sets PATH once for the directory the shell starts in and then only at each prompt, which a non-interactive shell never draws; Claude Code’s page names aliases, functions and shell options as what it carries over, not PATH. Codex can run commands with login-shell semantics (its allow_login_shell setting defaults to true); a login shell started to run one command reads ~/.profile or ~/.bash_profile but is still not interactive, so it draws no prompt either.

What works for agents, as of December 2026:

  1. Shims on the PATH the agent starts with. Put the --shims line in ~/.profile or ~/.bash_profile (~/.zprofile for zsh), log in again, and start the agent from that shell. An agent’s commands inherit the environment of the process that started it, so the shims directory travels with it; that is a reading of how processes inherit, not a line from either agent’s docs. Each node the agent runs then resolves the version for the directory it runs in, including in a different repository or worktree.
  2. mise exec or mise run in what you tell the agent. A line in the project’s CLAUDE.md or AGENTS.md such as “run tests with mise run test” works in any shell, and is the only route to the [env] variables, which shims do not put in the shell.
  3. Full paths for cron and services. A systemd unit or a crontab line reads no profile at all; call /home/you/.local/bin/mise exec -- node server.js or put the shims directory in the unit’s Environment=PATH=.

To see what the agent will get, ask it to run mise doctor and mise which node, or try a clean login shell yourself, which starts from your profile files rather than from your current session’s PATH:

env -i HOME="$HOME" bash -lc 'command -v node; node --version'
Copied

With the shims line in place, the first line it prints is a path under ~/.local/share/mise/shims. After installing a global npm package into a mise-managed Node, run mise reshim so its command gets a shim too.

Installing Claude Code, Codex or OpenCode through mise

mise can install the coding agents themselves, and its registry maps each short name to a download source, tried in order:

CommandWhere mise gets it
mise use -g claude
The release binary (aqua:anthropics/claude-code, then Anthropic’s download bucket, checked against its manifest)
mise use -g codex
The release binary (aqua:openai/codex), then npm @openai/codex
mise use -g opencode
npm @opencode/cli (2.0.0 and later), then the release binary; OpenCode’s docs say mise older than 2026.10.9 installs OpenCode 1

The benefit is one tool that installs, pins and lists everything on the machine. The cost is the agents’ own updaters. Claude Code’s setup page says native installs update themselves in the background and documents npm, Homebrew, WinGet and Linux repositories; it says nothing about an install made by mise, so how its updater treats one is undocumented. With mise you update by changing the version mise installs. The makers’ own installers (the Claude Code install guide and the Codex install guide cover them) put the agent in ~/.local/bin, where no shim is involved, and keep it current on their own; on a server that is usually the simpler choice, with mise left to manage the runtimes the projects need.

Avoid mise use -g npm:@anthropic-ai/claude-code. mise’s npm backend installs packages with its own embedded package manager, needs no Node to install, and by default does not run dependency scripts; its page does not say whether a package’s own install script runs. Claude Code’s npm package depends on a postinstall step to link its binary into place, and the claude short name downloads the binary directly, so the question never arises. A plain npm install -g into a mise-managed Node is the other route, with the global-folder rules in the npm install -g guide and a mise reshim afterwards.

mise trust, and repositories an agent clones

A mise.toml is not just a list of versions. Its templates can call exec(), its hooks and [env] directives can run commands or change PATH, and tool options can run install scripts. Without a check, cloning a repository and cd-ing into it with activation on would run its author’s code as you. So mise asks for trust before it loads those parts. The security page puts it plainly: “Treat trusting a project as trusting its code: trusted config can run commands as you.” When mise cannot ask, the error reads:

Config files in <path> are not trusted
Copied

A file with only plain versions under [tools] and tasks without secrets needs no trust, and neither does a .tool-versions without template syntax, so most repositories never trigger it.

mise trust --show
mise trust
mise trust --untrust
mise trust --ignore
Copied

These show the trust status of the configs here and above, trust the nearest config, remove that trust, and ignore a config for good. What decides trust without the command, as of v2026.12.3:

For an agent that clones repositories, that list has consequences. By that first rule, a command whose output the agent reads through a pipe does not have stdout on a terminal, so it gets the prompt-or-error path rather than automatic trust, while one the agent runs in a pseudo-terminal may count as typed; that is a reading of mise’s rule, and the agents’ docs do not say which they use. Setting CI in the agent’s environment to quiet other tools’ prompts also makes mise trust every repository it opens. And an agent told to run mise run or mise exec in a fresh clone has trusted it, as it would have by running npm test. Two switches tighten this. MISE_SAFE=1, meant for automation that reads config it does not control, loads project config without trust but blocks tasks and exec() templates and skips project [env] and hooks; it is not a sandbox, and mise install can still build a tool from source. Paranoid mode (mise settings paranoid=true) turns off automatic trust, CI included, and binds trust to the file’s contents, so any edit to a trusted mise.toml needs approving again.

Versions and removal

mise numbers releases by date. The current one is v2026.12.3, published December 4, 2026, after v2026.12.2 (December 3), which added the shim setting for untrusted configs, and v2026.12.1 (December 2). Releases are frequent, three in the first four days of December, and the install script waits 24 hours before offering a new one.

For a script install, mise implode deletes mise, every tool it installed, and its cache and state; it keeps ~/.config/mise unless you add --config. Preview it first, then remove the activation and shims lines from your startup files by hand:

mise implode --dry-run
Copied

A package-manager install is removed with that package manager. Project mise.toml files stay where they are.

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.