Flint

How to install Flint and run a first task

If you have Node.js 22.12 or newer, you can install Flint agent with one command and be running your first task a few minutes later. Flint is a terminal AI agent: you type a request, it sends the request to a language model together with a set of tools, the model decides which tools to call, Flint runs them and repeats until the task is done.

Short answer: Install with npm install -g flint-agent, then run flint. The first run asks you to pick a provider, enter an API key, and choose how carefully Flint should behave before it touches anything. If you do not want to pay before you know whether Flint suits you, OpenRouter's free tier has models that can call tools.

What you need before you start

Flint is a Node.js program. There is no Python, no Docker and no background service to install, and nothing to sign up for on our side. Four things have to be true before you begin.

  • Install Node.js 22.12 or newer if your current version is older. Flint is a Node.js program and has no other runtime.
  • Open a terminal you can copy commands into.
  • Have an API key ready from one of the supported providers: OpenRouter (the default), OpenAI, Anthropic, Google Gemini, Groq or Together. A free OpenRouter account is enough to start on free models.
  • Confirm you are on Windows or Linux, or accept that macOS is untested. Flint is tested on Windows and Linux on every change, and macOS is not part of the automated tests.

Flint is open source under the MIT licence and has no paid plan, so the only cost you can run into is the one your model provider charges. Starting on free models is a real option, not a demo.

Steps

The order matters: install the package, start it, answer three setup questions, then give it something to do. The setup itself does not touch your files, so you can answer the questions first and decide later what work to hand over.

  1. Install the package. Run this in any terminal: npm install -g flint-agent After this you have the flint command available from any terminal, installed globally from npm.
  2. Start Flint. Run flint. The first-run setup starts. It does not run a task yet.
  3. Pick a provider. OpenRouter is the default. If you want to run on free models, pick OpenRouter and use /model free afterwards to see which free models can call tools.
  4. Enter your API key. Flint stores the key encrypted on your machine. Requests go from your machine to the provider you chose: there is no Flint server in the path.
  5. Choose a care level. Safe asks before every file change and every command. Normal edits files and runs ordinary commands, and asks before deleting a file, before destructive commands, before one-way commands such as pushing to git, and before child agents and MCP tools. Permissive asks only before deleting a file and before reconnecting an MCP server. You can change the level at any time with /careful. Tip: If you chose OpenRouter and want to stay on free models, type /model free auto before your first task. Flint picks the best free model that can call tools and sets two fallbacks from other vendors, so a rate-limited model passes the request to the next one.
  6. Type a task. Flint sends it to the model, runs the tools the model requests and repeats until the task is done or it needs your input. Pick something small for the first run, in a folder you do not mind Flint reading.

How to check it worked

A program that starts is not yet an agent that works. Two checks tell you which one you have.

  • Read the receipt at the end of the turn. Every turn ends with one: tools used, files changed, tokens in and out, time and cost. A tool name and a token count in that receipt mean the loop ran end to end with your provider.
  • Run /model test. It runs six small agent tasks with checked answers on the current model and saves the score, so it tells you whether that specific model works with Flint's tools, not only whether Flint started. If the score is low, switch with /model and run the test again.

What goes wrong and how to tell

Three failures cover most first installs, and each one names itself in the first few lines of output.

Node.js too old. Flint needs Node.js 22.12 or newer. On an older version the install throws a version error, or flint fails to start.

Warning: Do not hunt for a setting inside Flint to fix this. Update Node.js to 22.12 or newer and run the install again.

API key rejected. The first call to the model fails with an authentication error. The install is fine; the key is the problem.

Warning: Check the key in your provider dashboard and re-enter it in Flint's configuration. Because the key is stored encrypted, a typo made on first entry has to be corrected there.

A free model is rate-limited. Flint reports that the chosen model is unavailable. Free models are weaker than paid frontier models and often rate-limited, and the list of free models changes without notice, so what /model free shows today may differ tomorrow.

Warning: Do not sit and retry the same model. /model free auto sets a primary and two fallbacks from different vendors; when one is busy, the next takes the request.
Warning: Flint is tested on Windows and Linux on every change. macOS is not part of the automated tests. Flint needs Node.js 22.12 or newer and may work on macOS, but problems on that platform are not covered by the project's test suite.

Frequently asked questions

Does Flint work on macOS?

It may run, but it is not a tested platform. Flint needs Node.js 22.12 or newer and is tested on Windows and Linux on every change; macOS is not part of the automated tests, so problems there are not covered by the project's test suite.

Can I use Flint without paying for a model?

Yes, on OpenRouter's free tier. Run /model free to see the free models that can call tools, and /model free auto to take the best one and set two fallbacks from other vendors. Free models are weaker and often rate-limited, so the work is slower and less capable than with a paid frontier model. Flint itself has no paid plan and no account with us.

Do my files get sent to Flint's servers?

There are no Flint servers in the path. Requests go from your machine to the model provider you chose, and that provider sees the conversation, including the files and text Flint sends, under its own terms. The exception is a local model such as Ollama with no MCP server that reaches the network, where the conversation stays on your machine.

How do I switch provider or model after the first-run setup?

Use /provider and /model inside the conversation. Both can be changed in the middle of a session, without restarting Flint, and your API keys stay stored encrypted on your machine.

What is the care level and which one should I pick?

The first run asks you to choose a care level; you can change it at any time with /careful. Safe asks before every file change and every command. Normal edits files and runs ordinary commands, and asks before deleting a file, destructive commands, one-way commands such as pushing to git, child agents and MCP tools. Permissive asks only before deleting a file and reconnecting an MCP server. Reading a secret file such as an env file, SSH keys or credentials asks at every level, and some commands are refused at every level.

How do I update Flint to a newer version?

Run /update. Flint tells you when a newer version is out, at most once a day, and /update installs it and restarts inside the same session. It never updates on its own.

Install it and run a task

The next step is the install itself. Run this, then run flint and answer the three setup questions.

npm install -g flint-agent

If you want to try it before paying a model provider, see running Flint on free models. Bookmark Get started with Flint for the next machine you install on.