Evaluate shell scripts safely using AI-powered analysis before execution
Install globally using npm:
npm install -g safeeval-shOr using Bun:
bun install -g safeeval-shsafeeval <script-url>safeeval https://example.com/install.sh--skip-analysis- Skip security analysis and run the script directly (not recommended)
safeeval https://example.com/install.sh --skip-analysissafeeval uses OpenRouter for script analysis. You need to set up your OpenRouter API key:
- Get an API key from OpenRouter
- Set the environment variable:
export OPENROUTER_API_KEY=sk-yourapikeyhereAdd this to your shell profile (.bashrc, .zshrc, etc.) to make it permanent.
safeeval currently supports:
- macOS
- Linux
bun installbun run src/index.ts <script-url>bun run build-exeMIT
