lokal
A terminal agent in one small file.
It uses the model on your own machine: no account, no key, and your work stays on it. It runs commands, reads and changes files, and asks before anything changes.
curl -fsSLo lokal https://download.guimadaleno.com/lokal/0.3.0/lokal && chmod +x lokal && ./lokal --installVersion 0.3.0, for Linux and WSL on x86-64. One file, which installs itself in ~/.local/bin and keeps itself up to date. Its SHA-256 is in SHA256SUMS.
Light
One static file of 3.1 MB. It starts in about 40 ms and holds under 3 MB of memory. Resize the window and it redraws at once. Nothing around it: no Node, no Python, no Docker.
Your model, your machine
Ollama, LM Studio, or any server that speaks the OpenAI API. Lokal finds the first two on its own, from WSL too.
Asks before it acts
Read-only commands run at once. Anything else waits for your yes, and every file change shows its diff first.
Set up a model
About five minutes, once, with either server.
- Install OllamaFrom ollama.com, on the machine that will run the model. Using WSL? It can run right inside it, as on any Linux.
- Download a model that can use tools
ollama pullone whoseollama showliststools. Lokal needs one to run commands and edit files, and picks it on its own. - Give it room to workA context of 32k tokens or more, with the slider in the app's settings or
OLLAMA_CONTEXT_LENGTH=32768where Ollama runs: command output and files fill it up. - Ollama on Windows, Lokal in WSL? Let it reach WindowsSet
OLLAMA_HOSTto0.0.0.0:11434among your Windows account's environment variables, then restart Ollama. WSL reaches it over the network; Lokal finds the address by itself. - Run
lokalThat's it: it finds Ollama on its own. To pin a server or a model, write them in~/.config/lokal/config.
- Install LM StudioFrom lmstudio.ai, on the machine that will run the model.
- Download a model that can use toolsLM Studio marks the models that support tool use; Lokal needs one to run commands and edit files.
- Load it with room to workA context length of 32k tokens or more: command output and files fill it up.
- Start the serverIn the Developer tab, switch the server on. Lokal looks for it on port 1234.
- Using WSL? Let it reach WindowsTurn on "Serve on Local Network" in the server's settings. LM Studio runs on Windows, and WSL reaches it over the network; Lokal finds the address by itself.
- Run
lokalThat's it. To pin a server or a model, write them in~/.config/lokal/config.
What it won't do
Lokal is defined as much by what it refuses.
- Run a command that may change something without your yes. Which commands count as read-only is Lokal's own list, never the model's call. Auto is the one exception: you switch it on for a session, or in your settings for every one, and what can't be undone or leaves your machine, like deleting outside the project, sudo or sending data, still asks.
- Change a file without showing you the diff first, every time.
- Call an MCP server's tool without your yes, or give the model a server's tools before you've seen what it says about them.
- Take a key you pressed before the question as its answer.
- Send anything anywhere, except one update check a day, which
updates = offturns off, and what goes to an MCP server you set by its address.