Skip to main content

Andi AIRun

Run AI prompts like programs. Executable markdown with shebang, Unix pipes, and output redirection. Extends Claude Code with cross-cloud provider switching and any-model support - free local or 100+ cloud models.

Quickstart

Get started in 5 minutes with your first executable AI script

Installation

Detailed installation guide for all platforms

Executable Markdown

Create markdown files that run as AI programs

Provider Switching

Switch between AWS, Azure, Vertex, Ollama, and more

Overview

Choose your runtime — Claude Code or Codex CLI — and switch between clouds + models: AWS Bedrock, Google Vertex, Azure, Vercel + Anthropic API. Supports free local models (Ollama, LM Studio) and 100+ alternate cloud models via Vercel AI Gateway or Ollama Cloud. Swap and resume conversations mid-task to avoid rate limits and keep working.

Key Features

Create markdown files with #!/usr/bin/env ai shebang for script automation. Run them directly like any executable program.
Make it executable and run:
Pipe data into scripts, redirect output, chain in pipelines — standard Unix semantics for AI automation.
Use Claude on AWS, Vertex, Azure, Anthropic API + switch mid-conversation to bypass rate limits. Also supports local models and Vercel AI Gateway.
Simple tier selection across all providers: --fable/--best, --opus/--high, --sonnet/--mid, --haiku/--low
--resume picks up your previous chats with any model/provider. Switch providers mid-conversation when you hit rate limits.
Declare variables with defaults in YAML front-matter. Users override them from the CLI without editing the script.
Choose between Claude Code (Anthropic) and Codex CLI (OpenAI). Same flags, same shebangs — AI Runner handles the mapping.

What it Does

  • Multiple runtimes: Claude Code and Codex CLI with a single ai command (--cc, --codex)
  • Executable markdown with #!/usr/bin/env ai shebang for script automation
  • Unix pipe support: pipe data into scripts, redirect output, chain in pipelines
  • Cross-cloud provider switching: use Claude on AWS, Vertex, Azure, Anthropic API + switch mid-conversation to bypass rate limits. Also supports local models and Vercel AI Gateway
  • Model tiers: --opus/--high, --sonnet/--mid, --haiku/--low
  • Session continuity: --resume picks up your previous chats with any model/provider
  • Non-destructive: plain claude and codex always work untouched as before
From Andi AI Search. Star the GitHub repo if it helps!

Supported Platforms

  • macOS 13.0+
  • Linux (Ubuntu 20.04+, Debian 10+)
  • Windows 10+ via WSL

Providers

Next Steps

Get Started

Follow the quickstart guide to run your first executable AI script

Install

Complete installation instructions and configuration