It remembers.
Before every answer Gary looks up what it knows. You watch the memories light up and travel to the answer, like they do in the app.
An open-source AI agent that runs on your own machine. It remembers, works while you sleep and asks before it does anything it can't take back.
curl -fsSL https://raw.githubusercontent.com/TheSolyboy/gary/main/install.sh | sh
Linux and macOS, Windows through WSL. Then type gary. Still in beta.
Before every answer Gary looks up what it knows. You watch the memories light up and travel to the answer, like they do in the app.
When a job needs a real browser, Gary uses its own, locked away from your machine. You see every click and can take over.
When a login comes up, Gary looks away. The Vault types the username, password and code itself, only on the site they belong to.
Payments, deploys, deleted files: anything it can't take back waits for you, with the reason spelled out.
After the turn, Gary saves what happened. The new memory joins the rest, ready for the next question.
Jobs are prompts or scripts on a schedule: a morning briefing, a backup check, a weekly review. Each run is a session you can open and continue, and the answer lands in your inbox or as a push on your phone.
At night Gary goes over the day and tidies its lessons and skills. Every change is logged with a before and after, so you can undo it.

Ask for a page, a chart, a document or a script and it opens as a live preview beside the chat, with every version kept. HTML runs in a locked-down sandbox.

A ChatGPT or Claude subscription, an API key from Anthropic, OpenAI, Google, OpenRouter and more, or a model on your own machine.
Set up other agents next to Gary, each with its own model, prompt, memory and colour. Talk to them on Telegram or Discord too.
Sessions, memories, keys and config live in ~/.gary/ on your machine. Nothing goes to a cloud you don't pick.
The terminal, the desktop app, the iPhone app and the browser all talk to the same Gary, so every chat is in every place.


On your screen he sits next to the composer and shows what he's doing right now, in the app, on the phone and in the terminal. Made of plain squares, so fan art is easy and very welcome.
idle
thinking
writing
reading
running a command
saving a memory
waiting for you
asleep
One command, then gary. Later, gary update keeps it current.
curl -fsSL https://raw.githubusercontent.com/TheSolyboy/gary/main/install.sh | sh