# Garmin Activities desktop installation ยท 0.1.1 When the user asks you to install Garmin Activities, perform the steps your desktop session supports. Use the client's normal approval prompts for local actions. Install for the requesting app only unless the user asks for both. If you cannot identify their desktop app or OS, ask which they use. Supported computers are Windows x64 and macOS on Apple silicon or Intel. If you can only read the web, give Claude Desktop users the matching extension link. For ChatGPT Desktop, choose Codex > This computer and use the package marked "codex" below. Regular Chat and cloud sessions cannot run this local plugin. OpenAI documents local plugin support in Work > Local; Garmin Activities has not been tested in that mode. Use the Codex path for verified installation. ## Select and verify the download Release metadata: ./release.json Checksums: ./SHA256SUMS.txt Resolve all relative links against the URL from which you fetched this guide. Use the same HTTPS origin as this guide when fetching the packages. The checksums below identify the published bytes. - claude / windows-x64: ./releases/0.1.1/garmin-activities-windows-x64.mcpb SHA-256: aec1109068d28a33e7f135ab42b4aa017078bd56d0aaef63844fd213c2931385 - claude / macos-universal: ./releases/0.1.1/garmin-activities-macos-universal.mcpb SHA-256: cb4ac7a680d83db14c5c3c1cd7cbdb8680dafeda7fab5f0610f468d262d14bd5 - codex / windows-x64: ./releases/0.1.1/garmin-activities-codex-windows-x64.zip SHA-256: a96c1016fd22b76f73d6b60e2a603454879ee80fc75d6a2c3741ba0b825bd0aa - codex / macos-universal: ./releases/0.1.1/garmin-activities-codex-macos-universal.zip SHA-256: 87dfa651f50de160362de86da21bb2b9f85071a4741ddd8985ee70322076b548 These are unsigned development builds. Keep the app and OS approval prompts. If installation is blocked by the OS or workspace policy, report the blocker. ## Claude Desktop With local tools, download the correct MCPB to Downloads, verify its SHA-256 against the entry above, and open the intact file in Claude Desktop for the user to review and click Install. Stop on a checksum mismatch. With only web access, give the user the direct MCPB link and ask them to open it in Claude Desktop. If file association is unavailable, point to Settings > Desktop app > Extensions > Advanced settings > Install Extension and the downloaded file. Claude launches the bundled helper. Keep the MCPB intact throughout. ## ChatGPT Desktop (Codex > This computer) Check the installed version before deciding whether to skip installation. With the Codex CLI, use: codex plugin list --marketplace garmin-local --json If there is no such marketplace yet, proceed with the new install below. If this exact release is installed and enabled, go to Connect Garmin in a new local chat. For an older version, prepare the new folder before updating. If an earlier attempt already registered the verified release folder, resume at 'codex plugin add'. Preserve unrelated marketplaces. For a new install, download the matching Codex archive to a local file. Carry out the following recipe yourself in a local shell with the user's approval. Supply the actual downloaded file path as the variable named in the recipe. Use the matching published digest below. Give the user the resulting folder link if a graphical step is needed. They do not need to open the ZIP or type commands. Windows (PowerShell): set $garminArchive to the absolute path of the download. ```powershell $ErrorActionPreference = 'Stop' $expected = 'a96c1016fd22b76f73d6b60e2a603454879ee80fc75d6a2c3741ba0b825bd0aa' $hash = [Security.Cryptography.SHA256]::Create() $stream = [IO.File]::OpenRead($garminArchive) try { $actual = [BitConverter]::ToString($hash.ComputeHash($stream)).Replace('-', '') } finally { $stream.Dispose() $hash.Dispose() } if ($actual -ne $expected) { throw 'Garmin download checksum mismatch. Download the package again.' } $parent = Join-Path $env:LOCALAPPDATA 'Elegin\Garmin Activities\Codex' $folder = Join-Path $parent ([guid]::NewGuid().ToString('N')) [void][IO.Directory]::CreateDirectory($folder) Add-Type -AssemblyName System.IO.Compression.FileSystem [IO.Compression.ZipFile]::ExtractToDirectory($garminArchive, $folder) Write-Output $folder ``` macOS (shell): set garmin_archive to the absolute path of the download. ```sh ( set -eu expected='87dfa651f50de160362de86da21bb2b9f85071a4741ddd8985ee70322076b548' actual=$(/usr/bin/shasum -a 256 < "$garmin_archive") if [ "${actual%% *}" != "$expected" ]; then echo 'Garmin download checksum mismatch. Download the package again.' >&2 exit 1 fi parent="$HOME/Library/Application Support/Elegin/Garmin Activities/Codex" /bin/mkdir -p "$parent" folder=$(/usr/bin/mktemp -d "$parent/marketplace.XXXXXXXX") /usr/bin/ditto -x -k "$garmin_archive" "$folder" printf '%s\n' "$folder" ) ``` For an update, inspect 'codex plugin marketplace list --json' and the existing catalog. Only replace garmin-local if it is the local, Garmin-only marketplace. Keep the old path and files for recovery. After staging the verified new folder, use 'codex plugin marketplace remove garmin-local', then register and install as below. If replacement fails, re-register the old path and reinstall its plugin. The saved Garmin key is independent of the install folder. Register the resulting permanent folder using the local Codex CLI. Pass its actual absolute path as a single argument. Run each command only after the previous one succeeds: codex plugin marketplace add "" codex plugin add garmin-activities@garmin-local codex plugin list --marketplace garmin-local --json Confirm installed=true, enabled=true, and the expected plugin version. If Codex reports the marketplace name already belongs to another source, keep that source intact and explain the conflict. If the CLI is unavailable, the files are ready: help the user open the prepared folder as a local project, restart Codex, then choose Plugins > Garmin desktop plugins > Garmin Activities > Install. After an upgrade, restart the desktop app and start a fresh local chat. Update both desktop plugins if both are installed so they share the new disconnect behavior. ## Connect Garmin 1. Use garmin_status. When key_saved is true, reuse the saved key unless the user requested replacement. Garmin checks its validity on the next request. 2. For a first connection, show the official Garmin key page: https://connect.garmin.com/app/settings/personalApiToken. The user signs in, creates a key and copies it. Handle the credential only in the private window. 3. Call connect_garmin to open the masked window. The user pastes the key there and clicks Save and connect. If a fresh chat is needed, ask them to say "Connect Garmin" there. Keep the key out of chat, shell and tool arguments. 4. The tool reports success, cancellation or failure to chat. Only confirm a connection after a successful save. Try "How far did I run last week?" The plugins share the key in Windows Credential Manager or macOS Keychain for the same OS account. Results go to the requesting chat. Ask "Disconnect Garmin" to remove the local key, or revoke it through Garmin Connect.