Created
April 24, 2026 03:50
-
-
Save jeffreybergier/9c380e52c3b495c18e0cde22445af117 to your computer and use it in GitHub Desktop.
AltivecIntelligence-Docker-AI-Selector
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 | |
| set -euo pipefail | |
| trap 'echo " aborted"; exit 130' INT | |
| echo "" | |
| echo "Select an AI agent:" | |
| echo " 1) Claude (@anthropic-ai/claude-code)" | |
| echo " 2) Codex (@openai/codex)" | |
| echo " 3) Gemini (@google/gemini-cli)" | |
| echo "" | |
| read -rp "Choice [1-3]: " choice | |
| case "$choice" in | |
| 1) | |
| pkg="@anthropic-ai/claude-code" | |
| cmd="claude" | |
| flags="--dangerously-skip-permissions" | |
| ;; | |
| 2) | |
| pkg="@openai/codex" | |
| cmd="codex" | |
| flags="--yolo" | |
| ;; | |
| 3) | |
| pkg="@google/gemini-cli" | |
| cmd="gemini" | |
| flags="--yolo" | |
| ;; | |
| *) | |
| echo "Invalid choice: $choice" >&2 | |
| exit 1 | |
| ;; | |
| esac | |
| echo "" | |
| echo "Updating $pkg..." | |
| npm update -g "$pkg" | |
| echo "" | |
| exec $cmd $flags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment