> ## Documentation Index
> Fetch the complete documentation index at: https://labs.prompthon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw Mac Setup

> Prepare Node 22, npm, Codex, and the model default before OpenClaw onboarding.

Need help?

[Ask in Discord](https://discord.gg/sDE2HhGTg4)

[Open a GitHub issue](https://github.com/Prompthon-IO/agent-systems-handbook/issues/new/choose)

[Support guide](https://github.com/Prompthon-IO/agent-systems-handbook/blob/main/SUPPORT.md)

This setup path is for macOS users who will run OpenClaw from the local
terminal.

## Install Node And NVM

Download Node from [nodejs.org](https://nodejs.org/en) or install it through
`nvm`.

To use `nvm`, run:

```bash theme={null}
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.zshrc
nvm install 22
nvm use 22
nvm alias default 22
```

Verify Node and npm:

```bash theme={null}
node -v
npm -v
```

## Install Codex

Install Codex globally:

```bash theme={null}
npm i -g @openai/codex
```

Log in and verify that the CLI is ready:

```bash theme={null}
codex login
codex --version
```

## Set The OpenClaw Model Default

If OpenClaw is already installed on your machine, set the model used by the
workshop profile:

```bash theme={null}
openclaw models set openai-codex/gpt-5.5
```

If OpenClaw is not installed yet, continue to
[Accounts And Onboarding](https://labs.prompthon.io/workshops/openclaw/accounts-and-onboarding.md), install
OpenClaw there, and then return to this model setting if needed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.