Virgil

An AI agent
for your terminal.

He works in your shell: reads files, writes code, runs it and fixes what breaks. Before he asks a model, he checks his library of things he has already solved. You pay per task.

$npx virgil-cli
Try in browser
macOS · Linux · Windows · needs Node 18+
Start in 10 seconds.

No download page, no account, no credit card. One command and Virgil is in your terminal.

  1. npx virgil-cli — one command, needs Node 18+
  2. 15 free credits — no card, no account, no signup
  3. Tell it what to do. It acts, you watch — and you see what every task costs.
Read the full docs on npm →
Pricing

1 credit is 1 cent.

No subscription, ever. You start with 15 free credits — no card, no account, no signup. After every task Virgil shows exactly what it cost and what's left. You never pay for a model sitting idle, and you're never throttled for spending too little.

A real day with Virgil. Reading is free, repeats come straight from your library, and you see every cent — no plan, no surprise bill.

VIRGIL · what you actually pay
› what does this error mean?free · read-only
› fix the failing test in cart.js0.38¢
› rename 200 screenshots by date0.12¢
› build a weather CLI (self-fixed)3.10¢
› fix another test like itfrom library · 0 calls · 0.00¢
──────────────────────────────
spent the whole day≈ 4¢ · 11.4 credits left
Under the hood

The library

Most CLIs send every request to a model, so the tenth fix costs as much as the first. Virgil keeps four local libraries: speech, debug, code and UI/HTML. Every request is checked against them first. A known answer costs 0 calls, a known pattern 1 call, and only something new goes through the full chain. The result is stored, so the next similar task is cheaper.

Up to 44–60% cheaper on repeated tasks of the same kind.
Your own API if you want. OpenAI, Azure or any OpenAI-compatible endpoint, set up with virgil brain. The key stays in your system keychain. Two days free, then 5 € a month for the library updates.
Runs on your machine. Shell, files and memory stay local. Only the thinking goes out.
The endgame

What if your model is 90% trained?

The more you run Virgil, the more its library fills with your patterns — your fixes, your scripts, the shapes of your work. They come back answered locally: no model call, in seconds, for next to nothing. Push it far enough and most of your day runs on your own machine. That's the whole point — your Virgil becomes yours. Keeping the library fed with fresh patterns, once you're a regular, is a flat 5 €/month — run as much as you want.

Example run

Building a weather tool

A real run. Virgil had to find the weather API himself, hit a KeyError, read his own code, fixed it and checked two cities.

01
Understands the goal. No API docs given.
02
Writes, runs, hits an error. A field is missing in the response.
03
Reads his code, fixes it. Edits wetter.py.
04
Checks and reports the cost. Berlin 12.7 °C, Frankfurt 7.9 °C, 3.1 credits.
V I R G I L
› build a CLI that shows a city's temperature, run it for Berlin and Frankfurt
⏺ write_file  wetter.py
⏺ run_shell  python3 wetter.py Berlin
  ✗ KeyError: 'current'
⏺ read_file  wetter.py
⏺ edit_file  wetter.py
⏺ run_shell  python3 wetter.py Berlin
  ✓ Berlin: 12.7 °C
⏺ run_shell  python3 wetter.py Frankfurt
  ✓ Frankfurt: 7.9 °C
Done — wetter.py works for both, with error handling for unknown cities.
  · this task: 3.1 credits · 9.5 left
Compared to Claude Code

Same idea, different billing

 
Virgil
Claude Code
What you pay
Per task, 1¢ per credit, cost shown every time
Monthly subscription with usage limits
Getting started
npx virgil-cli — instant, no account
Sign up, sign in, then install
Cost visibility
Shown after every task, live balance
Counted against your plan's limits
Who runs it
Independent, not a US corporation
Anthropic
FAQ

Common questions

A note on the v0.1.4 security flag

Virgil is built in the open and ships fast. An early version (0.1.4) let Virgil share small code snippets with its shared library, so every user's copy learns from patterns someone already solved — and an automated scan (OSV MAL-2026-17630) flagged that data leaving the machine before we had documented it. That was a fair call: anything that leaves your computer should be spelled out first. So we spelled it out. The excerpts that feed the shared library are now capped and disclosed line by line, and you can stop contributing them any time with virgil learn off (or VIRGIL_NO_LEARN=1). To actually solve a task, Virgil still sends what that task needs to its reasoning model — like any AI CLI — and if you want our servers out of the loop entirely, bring your own key with virgil brain, so requests go straight to your provider. Your files, keys and shell never leave on their own — no background uploads, no hidden telemetry, no watermarks. The full list is in the README under “What leaves your machine”.

Is it really pay-per-use?

Yes. No subscription. You buy credits (1 credit = 1 cent) and spend them only when Virgil does work. A short question costs a fraction; a real multi-step task, a few. Reading and listing files are free.

What does a typical task cost?

A quick question is around 0.03 credits. A hard, self-correcting task — write a script, run it, fix errors, verify — is roughly 3 credits, about three cents. The exact number is shown when it finishes.

Which operating systems?

macOS, Linux and Windows. Virgil detects your OS and uses the right commands. You need Node 18 or newer; then npx virgil-cli or npm i -g virgil-cli.

Is my code sent anywhere?

Virgil runs on your machine and only sends what a task needs to its reasoning model, like any AI CLI. Nothing runs in the background, and he asks before changing or running anything.

How is this different from Claude Code?

Same idea, an agent in your terminal. The differences: pay per use instead of a subscription, no account to start, the cost of every task shown, and the library that makes repeated work cheaper.

Can Virgil run commands without asking me?

No — by default every shell command, file write, and file edit shows you a preview and waits for y (once) or a (always for this kind of step). There is a --auto flag that skips confirmations entirely; it exists for scripted pipelines where you want zero interruptions. Don't use it in an unfamiliar directory or on a production machine — you'd be running an AI agent with no gate. Reading and listing files never require confirmation.

Light a lantern in your terminal.

$npx virgil-cli
Try in browser
15 free credits · no signup