The Ultra-Lightweight
Terminal AI Agent

Bring your own key. Run locally or in the cloud. TinyAgent lives right in your Windows terminal, editing files and running commands with extreme token efficiency.

PowerShell
irm https://github.com/benthedingus/tinyagent/releases/latest/download/install.ps1 | iex
TinyAgent Ready. (ollama / llama3.2:3b)
Type '/help' for commands.

You: update the port in config.py to 8080

[*] Executing: read
[*] Executing: edit
--- config.py
+++ config.py
-port = 3000
+port = 8080

Assistant: Done. Updated port in config.py.
You: _

Multi-Provider BYOK

Bring your own API key. Seamlessly switch between OpenAI, DeepSeek, Groq, OpenRouter, and local Ollama models on the fly without restarting the app.

Extreme Token Optimization

Uses targeted edit tools instead of rewriting whole files. Includes prompt caching and output truncation to cut token costs by up to 90%.

Visual Red/Green Diffs

Never guess what the AI changed. TinyAgent prints color-coded unified diffs directly to your terminal before returning control.

Native Windows Integration

Right-click any folder and select "Open with TinyAgent". Compiled to a native .exe with a custom taskbar icon.

Safe & Reversible

Automatically backs up every file before modifying it. Made a mistake? Just type /undo to instantly restore the original file.

Autonomous Loop Engine

TinyAgent plans, executes, evaluates results, and continues working step-by-step until a task is complete. Built-in safety limits prevent infinite loops.