How to run AI agent locally on your own machine
The phrase run AI agent locally can mean two different things: the agent software runs on your machine, or the model runs on your machine, or both. Those setups ask different things of you and they leave different data on your hardware, so it is worth knowing which one you are picking before you install anything.
Short answer: Flint is a terminal AI agent that installs as a single npm package and runs on your machine with no background service and no account. The model it calls can be a cloud provider you choose, or a local Ollama instance if you want the conversation to stay on your hardware. Install it with npm install -g flint-agent and pick the setup that fits.
What runs where
Flint always runs on your machine. It is a Node.js program you start in a terminal, and there is no server of ours in the path: every request goes from your computer straight to the model provider you chose. Flint has no telemetry and does not report usage to its authors. Sessions, saved permissions and memory are written to ~/.flint in your home folder, and FLINT_DATA_DIR or --data-dir points that somewhere else if you want it to.
| Aspect | Flint with a cloud model | Flint with a local model (Ollama) |
|---|---|---|
| Agent software runs on | Your machine | Your machine |
| Model runs on | The provider's servers | Your machine |
| What leaves your machine | Conversation text and the file contents sent to the provider | The conversation and the file contents stay on the machine. Flint itself still uses the network for the update check, for web fetch and search when the agent calls them, and for any MCP server you added |
| What you need | An API key and internet access | Ollama installed and hardware sized to the model |
| Capability depends on | The model you choose | Your hardware and the model you pulled |
Warning: Flint running on your machine does not make your conversation private if a cloud provider is in use. In that setup the text and the files Flint reads go to the provider, under that provider's terms. The Ollama path is the one that keeps the conversation local, and it needs hardware capable of running the model you pick.
What a first session looks like
A first session, start to finish. You type flint for the first time and the setup asks three things: your provider (OpenRouter, OpenAI, Anthropic, Google Gemini, Groq, Together or Ollama), an API key if the provider needs one, and a care level. A care level is how much Flint asks before it acts. Safe asks before every file change and every command. Normal edits files and runs ordinary commands, and asks before deleting a file, destructive commands, child agents and MCP tool calls. Permissive asks only before deleting a file and reconnecting an MCP server.
After that the loop is the same whatever provider you chose. You type a request, Flint sends it to the model together with its tools, the model chooses which tools to call, Flint runs them, and the loop repeats until the task is done. Every turn ends with a receipt: tools used, files changed, tokens in and out, the time and the cost. If you started on a cloud provider and want to change it, /provider and /model switch both at any point, including mid-conversation. On OpenRouter's free tier, /model free lists the free models that can call tools, with speed and uptime from OpenRouter's public stats.
How to install and set up Flint
- Install Node.js 22.12 or newer from nodejs.org, then check the version you have with
node --version. - Install Flint with
npm install -g flint-agent. That one package is the whole program: no Python, no Docker, no background service. It is tested on Windows and Linux on every change. - Install Ollama and pull a model, then confirm the service is running before you continue. This step is only for the local path; skip it if you chose a cloud provider.
- Run
flint. The first-run wizard asks for your provider, your API key if you need one, and your care level. - Type a first task and read the receipt when the turn ends. The receipt is how you confirm the model actually called tools instead of answering in plain text.
What goes wrong
The most common first problem is a model that cannot call tools. Not every model can, and free models are the usual offenders. When tool calling is missing, the model replies with text and the task never gets done, and it can look like Flint is broken when the model is the cause. On OpenRouter's free tier, /model free filters the list down to models that do support tool calls, so run it before you blame the setup.
The second is misreading the privacy guarantee. A cloud provider setup is not a local setup, no matter where the agent software runs. The table above says exactly what goes where in each case.
The third is hardware. A local model that is too large for your machine will load slowly or refuse to load at all. That is a constraint of the model, not of Flint, and the model's own documentation is the place to check RAM and compute requirements. Local models need hardware sized to the model.
One more thing worth knowing before you lower your guard: starting at the permissive care level means Flint will edit files and run commands without asking. Read what tools Flint can call before you move off the default. Flint will tell you when a newer version is out, and /update installs it and restarts in the same session; it never updates on its own.
Frequently asked questions
Does Flint send my files or code to anyone?
With a cloud provider, yes. The conversation, including any file contents Flint reads, is sent to the provider you chose and is handled under that provider's terms. With Ollama, the model runs on your machine, and if no MCP server reaches the network, the conversation stays there.
Can I run Flint with no internet connection?
A cloud provider needs an outbound connection on every turn, because every call goes to the provider's servers. A local model does not need one for the model itself. Web fetch and search, the update check and any MCP server you added still use the network.
Does Flint install a background process I cannot see?
No. Flint is a terminal program and there is no daemon and no service entry. It runs while you have it open and stops when you close it.
What hardware do I need to run a model on my own machine?
The hardware has to be sized to the model you choose, and that requirement comes from the model, not from Flint. The model's own documentation is the right source for the RAM and compute it needs.
Can I switch from a cloud model to a local one after setup?
Yes. /provider and /model change the provider and the model at any point, including in the middle of a conversation. The permissions and memory saved in ~/.flint survive the change.
Get started
Run npm install -g flint-agent on Node.js 22.12 or newer, then follow Set up Flint to walk the first-run wizard and finish your first task.