Skip to content
MizanStack

Cline, Aider and Continue with a free API key: setup and what to expect

Cline, Aider and Continue are free to install, but none of them ships a model. You bring a key, and the only thing you can end up paying for is whatever sits behind that key. Each tool connects to OpenRouter, Groq, Gemini and Ollama a little differently, and each route runs dry at a different point. This page shows the exact setup from their docs and where each route runs out.

Three tools, one idea: you own the connection

The three tools look similar from far away and feel different in daily use.

  • Cline (opens in a new tab) calls itself an AI coding agent that lives in your editor and your terminal. It runs as a VS Code extension, a JetBrains plugin, or a CLI. It can read and write files, run commands and use a browser, and the docs say every action needs your explicit approval.
  • Aider (opens in a new tab) is a terminal tool. It edits the files in your project and commits each change to git. Its default mode edits files, and it has ask, architect and help modes too.
  • Continue (opens in a new tab) lives inside VS Code and JetBrains. It offers autocomplete, edit, chat and an agent mode, and is configured through a config.yaml file.

Cline also sells its own usage-billed sign-in and a subscription, but the docs list bring-your-own-key as a normal option, which is the path this page follows.

The four free routes and what each really gives you

Free here means a free key or a free local model. Numbers change, so the tool docs do not carry them: use the linked guides and the official limit pages.

  • OpenRouter free models: model IDs ending in :free. OpenRouter documents two caps for them, 20 requests per minute, and a daily cap that depends on credits you bought in total: 50 a day below the 10 credit line, 1000 a day above it. Exceeding a cap returns HTTP 429. Source: OpenRouter limits (opens in a new tab). Details in our OpenRouter guide.
  • Groq: a free plan exists, with limits counted in requests and tokens per minute and per day. Groq publishes per-model free limits on its rate limits page (opens in a new tab); our Groq guide has the table.
  • Gemini API free tier: limits are counted per project, not per key, in requests per minute, tokens per minute and requests per day, and they differ by model. Google says to check your active limits in AI Studio: Gemini rate limits (opens in a new tab). More in our Gemini guide.
  • Ollama: no key and no quota, because the model runs on your machine. The cost is your RAM and patience. See our Ollama guide, and LM Studio and Jan for point-and-click local apps.

One thing matters more for coding agents than for chat: an agent sends many requests per task, because every file read and every edit is another round trip. A cap of 50 requests a day can disappear in one afternoon of agent work.

Cline: pick a provider from a dropdown

Cline needs no config file. Open its settings (the gear icon in the Cline panel), choose a provider in the API Provider dropdown, paste the key, pick a model. The provider pages in the docs say the same for each route.

  1. OpenRouter: create a key on the OpenRouter keys page, choose OpenRouter as provider, paste the key and pick a model from the Model dropdown. The Cline page does not talk about free models, so pick one whose ID ends in :free yourself. Leave the custom base URL unchecked, the docs say that is right for most people.

  2. Groq: create a key in the Groq Console, choose Groq as provider, paste, pick a model. The Cline page lists no limits, so use Groq's own page.

  3. Gemini: create a key at aistudio.google.com/apikey, choose Google Gemini as provider, paste, pick a model. The Cline page does not describe the free tier and sends you to Google's pricing page.

  4. Ollama: install Ollama, run ollama pull <model>, choose Ollama as provider, set the Base URL to http://localhost:11434, select the model. The docs also say to turn on Use Compact Prompt in Settings, Features, and they list 16 to 32 GB of RAM for small quantized models.

Prefer a terminal? Cline also ships as a CLI:

npm i -g cline

The docs for the OpenRouter page add one odd note: for Gemini models routed through OpenRouter, you must tick Enable Prompt Caching yourself, which the docs call a temporary workaround.

Aider: environment variable, then one command

Aider installs with its own installer, takes the key from an environment variable, and picks the model with --model.

python -m pip install aider-install
aider-install

OpenRouter

Model names follow openrouter/<provider>/<model>. List what exists, then choose one ending in :free.

export OPENROUTER_API_KEY=<key>
aider --list-models openrouter/
cd /to/your/project
aider --model openrouter/<provider>/<model>

Aider's OpenRouter page says that if you get errors, check your OpenRouter privacy settings and allow providers that may train on inputs, otherwise some models are unavailable. That matters for free models, see the privacy section below.

Groq and Gemini

export GROQ_API_KEY=<key>
aider --model groq/<model>
export GEMINI_API_KEY=<key>
aider --list-models gemini/

Use aider --list-models groq/ and the Gemini list above to see current model names instead of trusting an example in a blog post, including this one. On Windows the docs use setx instead of export and ask you to restart the shell.

Ollama

Aider's docs warn that Ollama's default context window is small and it silently drops anything beyond it. Ollama's own docs set the default by VRAM (4k tokens below 24 GiB, see our Ollama guide), so a laptop starts small. Aider's example starts the server with a bigger window, then uses the ollama_chat/ prefix, which the docs recommend over ollama/. Quit the Ollama app first, so the server you start with ollama serve is the one that gets the setting.

ollama pull <model>
OLLAMA_CONTEXT_LENGTH=8192 ollama serve
cd /to/your/project
aider --model ollama_chat/<model>

Continue: a YAML block per model

Continue keeps its settings in config.yaml, in ~/.continue/ on macOS and Linux or %USERPROFILE%\.continue\ on Windows. The configs dropdown above the chat box has a cog that opens it, and saving from the IDE reloads it. Each model needs a name, a provider and a model ID.

OpenRouter, from the Continue docs (pick a :free model ID yourself):

name: My Config
version: 0.0.1
schema: v1

models:
  - name: <MODEL_NAME>
    provider: openrouter
    model: <MODEL_ID>
    apiBase: https://openrouter.ai/api/v1
    apiKey: <YOUR_OPEN_ROUTER_API_KEY>

Ollama needs no key. Leave out apiBase for a local instance:

models:
  - name: <MODEL_NAME>
    provider: ollama
    model: <MODEL_ID>

Gemini uses provider: gemini with an apiKey from AI Studio. The Continue Ollama page also warns that Continue may set a higher default context length than other Ollama tools, and if you see "Model requires more system memory" you can lower it with contextLength under defaultCompletionOptions, or use a smaller model.

Continue lets you give each model roles such as chat, edit, apply, autocomplete. That is its real strength on a free setup: a small local model for autocomplete and a free hosted model for chat.

Which one to pick

  • You would rather click through settings than edit a config file, and want to watch each action: Cline. Its approval step is also the best brake on a free tier, because you see every request before it burns quota.
  • You live in the terminal and want clean git history: Aider. It commits every edit with a descriptive message, commits your own uncommitted changes separately first, and /undo discards its last change (git docs (opens in a new tab)). Other terminal agents with free routes: OpenCode and Qwen Code.
  • You mostly want autocomplete and chat inside the editor, with several models for different jobs: Continue.
  • Tiny quota (50 requests a day): Aider in ask mode or Continue chat spend far fewer requests than a full agent loop. Aider's architect mode uses two LLM requests per task, so avoid it on a small cap.

Where free runs out, and what you give away

  • A 429 error means a cap was hit, not that your key is broken. On OpenRouter a negative credit balance can also make free models fail, and adding credits above zero fixes it.
  • Google says unpaid Gemini API use lets it use your content to improve its products, and human reviewers may read inputs and outputs. Its terms advise not to submit sensitive, confidential or personal information to the unpaid services. Paid use is treated differently (terms (opens in a new tab)).
  • OpenRouter lets you choose whether to allow providers that may train on your data, with separate settings for free and paid models. Each provider's retention policy is shown on its endpoint (OpenRouter privacy (opens in a new tab)).
  • These agents send file contents and command output to the model provider, so project code leaves your machine with every hosted route. Only Ollama keeps it local. Keep .env files and private keys out of what the agent reads.
  • Aider analytics is opt-in, and its docs say it never collects your code, chat messages or keys. To switch it off for good, run the command below.
aider --analytics-disable

Local models are the other limit: free in money, expensive in hardware. A small model on a laptop will edit simple files and struggle with long multi-file tasks. We did not benchmark these tools, so treat quality claims, including ours, as something to test on your own project.

Questions about free keys in coding agents

Can I use all four routes in one tool?

Yes. All three tools let you switch provider, so a common habit is to start on a free hosted model and fall back to Ollama when you hit a cap.

Is a free model good enough for an agent?

It depends on the model and the task. Agents need models that follow tool instructions reliably, and small ones often do not. Try a simple task first.

What if a model name from this page fails?

Free model lists change often. Use the list commands or the provider dropdown, and check the current picks in our OpenRouter free models and Groq guides.

Sources and check date

Checked 2026-11-06. Free tiers change often, so confirm limits on the official pages before relying on them. Not verified: exact Gemini free-tier numbers (Google shows them only in AI Studio), and the model names available today.

Checked against the official documentation on 6 November 2026. Free tiers and limits change, so check the sources.