Install the Mesh CLI

Get the Mesh CLI running on macOS or Windows in about 10 minutes.
View as Markdown

The Mesh CLI (meshapi) is a terminal app that lets you chat with any model, switch between 1000+ models, and have it write and run code for you — all from your Terminal or PowerShell.

It installs with pipx, which needs Python. The steps below install Python, pipx, and the CLI from scratch. Pick your OS.

The whole install is three tools: Pythonpipxmeshapi-code. After the one-time setup, updating is a single command — see Using the CLI → Staying up to date.

1. Install Python

  1. Open Safari (or any browser) and go to python.org/downloads.
  2. Click the yellow Download Python 3.x button (any recent 3.x is fine).
  3. Open the downloaded file — named like python-3.14.6-macos11.pkg.
  4. Click Continue → Continue → Continue → Agree → Install, enter your Mac login password, then Install Software.
  5. Wait for “The installation was successful” and click Close.

2. Check Python

  1. Press ⌘ + Space, type Terminal, press Enter.
  2. Run:
$python3 --version

You should see Python 3. followed by numbers. ✅

3. Install pipx

$python3 -m pip install --user pipx
$python3 -m pipx ensurepath

The second command prints something like Success! Added /Users/you/.local/bin to the PATH.

Now quit Terminal completely (⌘ + Q) and open a fresh window (⌘ + Space → Terminal). The next command only works in a new window that has picked up the updated PATH.

4. Install the Mesh CLI

$pipx install meshapi-code

When you see done! and installed package meshapi-code, the CLI is ready. ✅

done! ✨ 🌟 ✨
installed package meshapi-code 0.5.2
These apps are now available
- meshapi

Next step

The CLI is installed. Head to Using the Mesh CLI to add your API key and send your first prompt.

Hit a snag during install? See Mesh CLI debugging.