Quickstart
Get AIRun running in 5 minutes. This guide will help you install AIRun, create your first executable AI script, and run it.Prerequisites
Before you begin, make sure you have Claude Code installed. AIRun extends Claude Code with executable markdown and provider switching.Claude Code is Anthropic’s AI coding CLI. You’ll need an active Claude subscription (Pro or Max) or API credentials to use it.
Installation
Run the setup script
- Install commands to
/usr/local/bin - Create
~/.ai-runner/for configuration - Copy a secrets template for API keys
Your First Executable AI Script
Let’s create a simple executable markdown file that runs as an AI program.Create a markdown file
Create a file called The first line is a shebang that tells the system to run this file with AIRun using the Haiku model (fastest and most cost-effective).
hello.md with the following content:hello.md
Example: Piping Data
One of AIRun’s most powerful features is Unix-style piping. Let’s create a script that analyzes data:analyze-code.md
Example: Script Variables
Create reusable scripts with customizable variables:summarize-topic.md
Example: Unix Pipes
Pipe data into your AI scripts:Switch Providers
Use different AI providers by adding flags:You’ll need to configure your API credentials for cloud providers. See the Installation Guide for details.
Available Commands
AIRun installs these commands:| Command | Description |
|---|---|
ai / airun | Universal entry point - run scripts, switch providers |
ai update | Update AI Runner to the latest version |
ai-sessions | View active AI coding sessions |
ai-status | Show current configuration and provider status |
Next Steps
Installation Guide
Detailed installation and configuration instructions
Provider Setup
Configure AWS, Azure, Vertex, and other providers
Examples
More example scripts and use cases
Scripting Guide
Learn advanced scripting patterns and automation