Last active
February 13, 2026 22:58
-
-
Save rms1000watt/61cb4b83358505786bd725f86d4af173 to your computer and use it in GitHub Desktop.
Install Opencode on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| if ! command -v brew > /dev/null; then | |
| echo "installing brew" | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| fi | |
| if ! command -v opencode > /dev/null; then | |
| echo "installing opencode" | |
| brew install anomalyco/tap/opencode | |
| fi | |
| if ! command -v node > /dev/null; then | |
| echo "installing node" | |
| brew install node | |
| fi | |
| if ! command -v skills > /dev/null; then | |
| echo "installing skills" | |
| npm i -g skills | |
| fi | |
| if ! skills ls -g | grep -q find-skills; then | |
| echo "installing find skills" | |
| skills add -y -g https://github.com/vercel-labs/skills --skill find-skills | |
| fi | |
| echo "you are now ready to use opencode" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment