One command to ask a model something, write files from a description, or check what you have spent. Same API, same prices, same prepaid wallet as everything else.
It is a single file and needs nothing but Python 3.
# download it and put it on your path curl -O https://lidetai.com/cli/lidet chmod +x lidet && sudo mv lidet /usr/local/bin/ lidet login # paste a key from the console
lidet ask "write a polite SMS in Amharic saying an order is ready" lidet ask -f server.py "what breaks if two workers run this?" cat error.log | lidet ask "what is failing here?"
Every answer ends with one quiet line: tokens in and out, what it cost in birr, and how long the first token took.
lidet code asks for whole files, shows you what it would
write, and writes nothing until you say so.
$ lidet code "a flask app with a /health route and a test"
new app.py 24 lines
new tests/test_app.py 18 lines
212 in / 740 out · ETB 0.46 · 2.4s to first token
write these? [y/N]
Paths outside the current folder are refused, Python that does not parse
is flagged before you write it, and if the answer hits the token ceiling
it says so rather than leaving you a file that stops mid-line. Add
--dry-run to look without writing, -f to show it
files it should work from, and --into dir to write somewhere
else.
$ lidet chat Lidet · lidet-general /model <id> to switch, /clear to forget, /cost for the total › what is 17 percent of 48,000 birr? 8,160 birr. 83 in / 69 out · ETB 0.06 · session ETB 0.06
lidet code, which is asked for a whole project and
priced accordingly. Every turn prints its own cost and the session
total.| Command | What it does |
|---|---|
lidet login | Save an API key on this machine, readable only by you. |
lidet ask | One question, one answer, no history. The cheapest way to use it. |
lidet code | Write files from a description, after showing you what they are. |
lidet chat | A conversation, with the running cost on screen. |
lidet balance | What is left, what today has cost, and what the rate limit is. |
lidet models | What is for sale and what it costs per million tokens. |
lidet usage | What the last few days cost, by model. |
| Flag | Meaning |
|---|---|
--model | Which model to use for this run. |
-m N | Ceiling on the answer's length. Default
600, and 6,000 for lidet code, which needs the room to
finish a project rather than stop mid-file. |
-y | Do not ask before an expensive turn. |
-q | Answer only, no cost line. For scripts. |
--url | A different gateway, for testing. |
The key and the address live in ~/.lidet/config.json.
LIDET_API_KEY and LIDET_API_URL override them,
which is what you want in CI.
It does not run commands, edit files in place or loop on its own output. It asks a model and writes what comes back, after showing you. That is a deliberate line: an agent that edits your repository unattended is a different tool with a different risk, and a much larger bill.