One of AIRun’s most powerful features is Unix-style piping. Let’s create a script that analyzes data:
analyze-code.md
Copy
#!/usr/bin/env -S ai --sonnet --skipSummarize the architecture of this codebase. List the main entry points,key modules, and how data flows through the system.
The --skip flag is shorthand for --dangerously-skip-permissions, which gives the AI full system access. Only use it in trusted directories with trusted scripts.
Create reusable scripts with customizable variables:
summarize-topic.md
Copy
#!/usr/bin/env -S ai --haiku---vars: topic: "machine learning" style: casual length: short---Write a {{length}} summary of {{topic}} in a {{style}} tone.
# Use local Ollama (free!)ai --ollama hello.md# Use AWS Bedrock with Opusai --aws --opus hello.md# Use Google Vertex AIai --vertex hello.md# Use Vercel AI Gateway with a specific modelai --vercel --model openai/gpt-5.2-codex hello.md
You’ll need to configure your API credentials for cloud providers. See the Installation Guide for details.