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.
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:
| Job | In mise.toml | What 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"CopiedNode 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 --versionCopiedTo 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.shCopiedMISE_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:
| System | Command |
|---|---|
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)"' >> ~/.bashrcCopiedecho 'eval "$(~/.local/bin/mise activate zsh)"' >> "${ZDOTDIR:-$HOME}/.zshrc"Copiedmkdir -p ~/.config/fish
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fishCopiedOpen 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 activate | Shims | |
|---|---|---|
Right tool version per directory | Yes, at each prompt | Yes, each time the tool runs |
[env] variables in your shell | Yes | No (only for the tool the shim starts) |
cd/enter/leave hooks | Yes | No |
Follows directory changes without a prompt (scripts, agents, editors) | No, only the directory it started in | Yes |
which node | The real binary | The 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)"CopiedOn 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 doctorCopiedChoosing 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@24Copiednode@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 pythonCopiedThat 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 --versionCopiedTasks 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 testCopiedA 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;;
esacCopiedso 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:
- Shims on the PATH the agent starts with. Put the
--shimsline in~/.profileor~/.bash_profile(~/.zprofilefor 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. Eachnodethe agent runs then resolves the version for the directory it runs in, including in a different repository or worktree. mise execormise runin what you tell the agent. A line in the project’sCLAUDE.mdorAGENTS.mdsuch as “run tests withmise run test” works in any shell, and is the only route to the[env]variables, which shims do not put in the shell.- 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.jsor put the shims directory in the unit’sEnvironment=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'CopiedWith 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:
| Command | Where 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 trustedCopiedA 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 --ignoreCopiedThese 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:
- A mise command typed in a terminal, with stdin, stdout and stderr all on the terminal, trusts the project’s config by itself and says so. Shell activation never does: on
cdit skips an untrusted config and warns. mise run, themise <task>shorthand,mise exec,mise installandmise watchtrust their config automatically, because they run the project’s code anyway.- When mise detects CI, for example because
CIis set, it treats every config as trusted. - A shim that cannot ask, in a directory whose config is untrusted, fails by default. Since v2026.12.2,
shims.untrusted_config = "skip"makes it warn and run with the rest of your config instead, ignoring that file’s versions and[env].
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-runCopiedA package-manager install is removed with that package manager. Project mise.toml files stay where they are.