---
slug: instalacao
title: Installation
summary: From invitation to malha setup. Activate the invitation, download and verify the CLI from the portal, run the guided setup, and confirm the skill was installed in your executors.
locale: en
section: install
applies_to:
  cli: ">=0.28.1"
  skill: ">=1.4.2"
executors: [claude-code, codex, gemini-antigravity]
os: [macos]
audience: [admin, member]
reason_codes:
  - login_denied
  - no_bootstrap_candidates
  - bootstrap_claim_denied
  - bootstrap_exchange_denied
  - ambiguous_organization
  - ambiguous_installation
  - installation_context_present_unverified
  - skill_install_no_agent_detected
  - session_provider_not_allowed
  - bootstrap_operation_pending
  - bootstrap_attempt_superseded
  - context_mismatch
intents:
  - how to install MalhaOS
  - how to install the malha CLI
  - how to run malha setup
  - I got an invitation, what now
reviewed_at: "2026-11-23"
---

# Installation

You'll go from the invitation to having the CLI installed, your computer linked to your organization, and the skill ready in your executors.

## Before you start

- An invitation to your organization in MalhaOS, received by email.
- An executor installed, such as Claude Code or Codex.
- macOS with Apple Silicon (ARM64). Intel Macs (x86_64) are not supported yet. Linux and Windows are still being validated.

## 1. Activate the invitation

Open the link in the email and sign in with your account. Once the invitation is active, the portal shows your organization.

## 2. Open the CLI setup

In the portal, open **Set up CLI**. The page shows the version approved for your organization, your platform, and the installation steps.

The CLI is only distributed through that page. It generates a short-lived link, valid only for your organization's approved version.

If your organization observes more than one release channel, the page also shows the **Release channel** selector, with the channels available to you. Without the selector, your organization follows a single channel.

When you change the channel, the platform, or the architecture, the page updates the link, the checksum, and the commands on its own. Always use the ones on screen, and check the version before you download. The choice applies only to that download: it doesn't change your installation's channel (see [Updates and channels](atualizacao-e-canais)).

## 3. Download and verify the package

Follow the page's steps in order:

1. Download the approved binary.
2. Check the SHA-256 checksum the page shows. If it doesn't match, stop and don't install.
3. Install the binary in a folder in your user account that is on your `PATH`.

Confirm the CLI starts:

```bash
malha version
```

## 4. Run the guided setup

```bash
malha setup
```

The setup does everything in one go:

1. Opens your browser so you can approve the sign-in.
2. Links this computer to your organization's installation. If you have more than one organization or installation, it asks which one to use.
3. Installs the `malha-os-workflow` skill in the executors it finds on your computer.
4. Checks your environment.

You don't copy or paste any credentials.

To choose which executors get the skill, pass `--agent` once for each:

```bash
malha setup --agent claude-code --agent codex
```

## 5. Check the skill

```bash
malha skill check
```

If the skill doesn't show up in the executor, see [Executors](executores): it has the status of each app and the order of what to try.

## If something goes wrong

| Reason code | What it means | What to do |
|---|---|---|
| `login_denied` | The browser sign-in wasn't approved. | Run `malha setup` again and approve in the browser. |
| `session_provider_not_allowed` | The organization doesn't accept the sign-in method you used in the browser. | Sign in with an accepted method. See case P26 in [Troubleshooting](problemas-e-solucoes). |
| `bootstrap_operation_pending`, `bootstrap_attempt_superseded`, `context_mismatch` | An earlier setup got stuck pending and doesn't finish. | With CLI 0.43.2 or newer, run `malha setup` again. See case P27 in [Troubleshooting](problemas-e-solucoes). |
| `no_bootstrap_candidates` | Your account has no installation available. | Ask your org admin to check the invitation and the installation. |
| `bootstrap_claim_denied`, `bootstrap_exchange_denied` | The installation refused to link this computer. | Run `malha setup` again. If it keeps happening, contact your admin. |
| `ambiguous_organization`, `ambiguous_installation` | There's more than one option and none was chosen. | Run `malha setup` and choose when it asks. |
| `installation_context_present_unverified` | The local link was kept but couldn't be confirmed online. | Check your connection and run `malha doctor`. |
| `skill_install_no_agent_detected` | No supported executor was found. | Install an executor and run `malha skill install`, or use `--agent`. |

## Next step

Open your executor and send the [first message](mensagem-inicial).

## Status

- **Available:** installation from the portal, `malha setup` with browser sign-in, and automatic skill installation.
- **Coming soon:** `malha setup` showing the first message when it finishes.
- **Limitation:** macOS with Apple Silicon (ARM64) is the only validated platform. Intel Macs (x86_64) are not supported yet. See [Executors](executores) for which apps have been validated.
