# Add to your Claude Code skills
git clone https://github.com/bravenewxyz/agent-cLast scanned: 5/20/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-20T07:43:45.572Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}No comments yet. Be the first to share your thoughts!
An ultra-lightweight AI agent written in C that communicates with OpenRouter API and executes shell commands.

tools API for shell command executionagent.c), LZMA self-extracting archiveexport OR_KEY=your_openrouter_api_key
make
./agent-c
make # auto-detect platform
make macos # macOS with LZMA compression
make linux # Linux with UPX compression
make clean # remove build artifacts
The agent connects to OpenRouter, sends messages with a sh tool definition, and streams the response. When the model returns a tool_calls response, the agent executes the command, sends the result back, and gets a follow-up response. Up to 5 tool calls per turn.
See SPEC.md for full architecture and test cases.
CC0 — No Rights Reserved