Skip to content

Instantly share code, notes, and snippets.

@bouroo
Created November 15, 2025 18:34
Show Gist options
  • Select an option

  • Save bouroo/8db32f41773cfffc180dc9eb92c6beae to your computer and use it in GitHub Desktop.

Select an option

Save bouroo/8db32f41773cfffc180dc9eb92c6beae to your computer and use it in GitHub Desktop.
ai agent cli with bunx
#!/usr/bin/env sh
if ! command -v bun &> /dev/null; then
echo "Error: Bun is not installed. Install from https://bun.sh/" >&2
exit 1
fi
exec bunx -y @anthropic-ai/claude-code "$@"
#!/usr/bin/env sh
if ! command -v bun &> /dev/null; then
echo "Error: Bun is not installed. Install from https://bun.sh/" >&2
exit 1
fi
exec bunx -y @openai/codex "$@"
#!/usr/bin/env sh
if ! command -v bun &> /dev/null; then
echo "Error: Bun is not installed. Install from https://bun.sh/" >&2
exit 1
fi
exec bunx -y @google/gemini-cli "$@"
#!/usr/bin/env sh
if ! command -v bun &> /dev/null; then
echo "Error: Bun is not installed. Install from https://bun.sh/" >&2
exit 1
fi
exec bunx -y opencode-ai "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment