4.4KB Ultra-Lightweight AI Agent Executes Shell Commands via OpenRouter API

2025-08-25
4.4KB Ultra-Lightweight AI Agent Executes Shell Commands via OpenRouter API

An ultra-lightweight AI agent written in C that communicates with the OpenRouter API and executes shell commands. Key features include: direct shell command execution via AI responses; optimized binaries (4.4KB on macOS, ~16KB on Linux); sliding window memory management for efficiency; cross-platform support for macOS and Linux. Requires GCC, curl, and an OpenRouter API key. The build system auto-detects your platform and applies optimal compression (GZEXE for macOS, UPX for Linux). The code is public domain, with no license.

Development shell commands