AI tools

Which free and open-source AI coding tools are worth trying?

· By Robert Scales · 4 min read

Short answer

As of October 2026, Cline, Kilo Code and the Zed editor are solid free, open-source starting points: the tool costs nothing and you pay only for the AI model you connect, or nothing at all with a local model. Bringing your own API key saves money for light or occasional use, but heavy daily agent work can cost more than a flat subscription.

Most well-known AI coding tools are sold as subscriptions: you pay a monthly fee and get a usage allowance for the vendor's models. A second family works differently. The tool itself is free and open source, and you plug in a model yourself, either by pasting an API key (a personal access code for a model provider, billed per use) or by pointing it at a model running on your own computer. This is often called BYOK, for "bring your own key."

For a learner, these tools have two attractions: you can start for close to nothing, and you are not tied to one company's models. The trade-off is that you manage the setup and the bill yourself.

Three free tools worth a look

Prices and plans below are as of October 2026.

ToolWhat it isCost of the toolModels
ClineOpen-source agent extension for VS Code, plus a command-line versionFree for individuals; Enterprise is paidYour own keys (Anthropic, OpenAI, Google, OpenRouter, DeepSeek and more), or bought through Cline at cost
Kilo CodeOpen-source agent for VS Code, JetBrains and the command lineFree for individuals; team plans are paidYour own keys, local models through Ollama or LM Studio, free models, or Kilo's gateway at provider rates with no markup
ZedFast open-source code editorPersonal plan $0; Pro $10 a monthYour own keys (including Ollama and LM Studio for local models), or outside agents such as Claude Agent and Codex CLI

Cline is a good first agent if you already use VS Code: it works inside the editor, so you can watch every file it changes, and its MCP marketplace lets you add tools later. Because you choose the provider, you can also switch models without switching tools.

Kilo Code covers similar ground and adds an "Auto" option that picks a model for you, including a free tier of models, so you can experiment without paying anything.

Zed is an editor rather than an agent, but its free plan lets you connect your own keys or run outside agents inside it, so the editor itself never sends you a bill. If you use Zed's hosted models on Pro instead, usage beyond the included $5 costs the API list price plus 10%.

All three work with local models, which run on your own machine through tools such as Ollama. Local models cost nothing per use and keep your code on your computer. They are slower and weaker than the top cloud models on most laptops, so they suit learning, small scripts and private code better than large projects.

A word on choosing: open source protects you from a price change or a shutdown in one way (anyone can keep the code alive), but projects still end. Pick tools that keep your settings and instructions in plain files you can take elsewhere.

Try it: Install Cline or Kilo Code in VS Code, connect it to a small local model or to a provider with a low spending limit, and ask it to "add input validation to this function and explain each change." Check the provider's usage page afterward to see what the task actually cost.

When does bringing your own API key save money, and when does it cost more?

With a key you pay for tokens, small chunks of text (Zed's documentation puts one token at roughly three or four characters of English). Each request is billed for the text you send in (input) and the text the model writes back (output). Coding agents send a lot of input, because they re-read files, error messages and the conversation so far at almost every step.

Here is an example using Anthropic's API list prices as of October 2026: Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens; Claude Haiku 5.5 costs $0.10 and $0.50 for prompts up to 100,000 tokens. The token counts are illustrative; real sessions vary widely.

Your monthTokens (example)Sonnet 5.5 by API keyHaiku 5.5 by API key
Light: 5 short sessions1.5M in, 0.1M outabout $4about $0.20
Regular: 20 medium sessions20M in, 1M outabout $50about $2.50
Heavy: daily agent work100M in, 4M outabout $240about $12

Compare that with a flat plan: Anthropic's Claude Pro costs $20 a month ($17 billed yearly) and includes Claude Code, within usage limits.

So the pattern is:

  • BYOK saves money when you code occasionally, when a cheaper model is good enough for the task, or when you use a free local model. You never pay for a month you didn't use.
  • BYOK costs more when you run an agent for hours most days with a top model. Subscriptions are priced for that kind of steady use, up to their limits, and a long agent session can burn through many dollars of tokens without warning.

Three habits keep a key-based bill under control. Set a monthly spending limit in the provider's console. Use a strong model for planning and a cheap one for routine edits. And take advantage of prompt caching where the tool supports it: re-reading text that is already cached costs far less than sending it fresh (for Sonnet 5.5, $0.10 per million cached tokens read instead of $2), which matters a lot for agents that keep re-reading the same files.

Sources

  1. Pricing - Cline AI Coding Agent — Cline Bot Inc., October 28, 2026
  2. Zed Pricing — Zed Industries, October 28, 2026
  3. Pricing | Claude — Anthropic, October 28, 2026

Get the free Guide to Artificial Intelligence

Sign up for the weekly newsletter and receive the free guide: what changed in AI this week, one lesson, one prompt to try. Unsubscribe in one click.

How we handle your address

Back to top

Display

Your choices are saved in this browser only. No data is sent.

Text size
100%
Colours
Reading
More settings
Accessibility statement