# Install Kondavo on this Mac (instructions for an AI agent)

These are Kondavo's own instructions for an AI agent (Claude Code, Codex or another) that a person has asked to
install Kondavo for them. Run the steps yourself rather than handing them back. The person is needed for one yes (step
3, while the app is not yet notarised by Apple) and two sign-ins: their work account (Microsoft or Google) and their AI
account (Claude or ChatGPT). Never type a password or a code for them.

The one line a person gives you: "Read https://kondavo.dev/setup.md and install Kondavo on this Mac for me."

## 1. Check this Mac

```sh
uname -m                  # must print arm64 (Apple silicon)
sw_vers -productVersion   # must be 12 or later
```

If it prints x86_64 or a macOS version below 12, stop and tell the person this Mac can't run Kondavo yet (it needs
Apple silicon and macOS 12 or later). On Windows, tell them Windows has a waiting list they can join at
https://kondavo.dev/#download.

If /Applications/Kondavo.app is already there, Kondavo is installed and updates itself: run
`open -a /Applications/Kondavo.app` and go to step 4.

## 2. Download, check, install

Check the app before it goes anywhere near Applications: its signature must be intact and made by Kondavo's release
certificate. If the check fails, stop.

```sh
D=$(mktemp -d)
curl -fL --proto '=https' -o "$D/Kondavo.dmg" https://downloads.kondavo.dev/mac/Kondavo-arm64.dmg
hdiutil attach -nobrowse -quiet -readonly -mountpoint "$D/mnt" "$D/Kondavo.dmg"
codesign --verify --deep --strict -R='identifier "app.kondavo.desktop" and certificate root = H"d153f52fd724cbd4d7e9bdc4c19bf82e7a478169"' "$D/mnt/Kondavo.app" && echo verified
```

Only if it printed `verified`:

```sh
ditto "$D/mnt/Kondavo.app" /Applications/Kondavo.app
hdiutil detach -quiet "$D/mnt"; rm -rf "$D"
```

## 3. Let it open (ask first)

Kondavo is not yet notarised by Apple, so macOS blocks the first open of a downloaded copy. Ask the person, in these
words or close to them: "Kondavo isn't notarised by Apple yet, so macOS will block it the first time. I checked it is
Kondavo's own signed build. May I tell macOS to let it open?" Only on a yes:

```sh
xattr -dr com.apple.quarantine /Applications/Kondavo.app
open -a /Applications/Kondavo.app
```

On a no, tell them they can open it themselves: on macOS 15 or later, open Kondavo from Applications, and when macOS
stops "Kondavo", System Settings → Privacy & Security → Open Anyway, then choose Open (not Move to Bin); on macOS 14 or
earlier, right-click Kondavo in Applications → Open. (At most that one stop here: the disk image was
downloaded and opened from Terminal above, so its own "Kondavo.dmg" stop, the first of the two a download from the
website gets, doesn't come.)

## 4. Hand over the sign-ins

Kondavo opens on its Welcome screen. Tell the person:

1. Sign in with your work account (Microsoft or Google).
2. Pick your AI (Claude or ChatGPT) and sign in. Kondavo installs and signs in the agent for you.

Every other question in setup can wait.

## If something fails

- The download fails or is not a disk image: try once more, then tell the person and link https://kondavo.dev/#download.
- `verified` is not printed: detach and delete the download (`hdiutil detach -quiet "$D/mnt"; rm -rf "$D"`), install
  nothing, and tell the person the download did not check out.
- Help: support@kondavo.dev

These instructions are published at https://kondavo.dev/setup.md. Fetch them again at any time to check them.
