Top 3 Claude Code Alternatives (Free): OpenCode, Kilo Code, Gemini CLI

The three best free AI coding agents in 2026: OpenCode (free tier + BYOK), Kilo Code (free tier + BYOK), and Gemini CLI (free tier). Plus why NVIDIA NIM is the best free API right now — rate-limited but no token caps.

Cover art for Top 3 Claude Code Alternatives (Free): OpenCode, Kilo Code, Gemini CLI

OpenCode Terminal UI showing session tabs, diff view, and agent chat OpenCode Terminal UI — session tabs, diff view, and agent chat. Source: anomalyco/opencode (MIT licensed).

Claude Code is excellent — but at $17–$50/month for meaningful usage, it’s not the only game in town. If you want a free AI coding agent that you can run today without a credit card, three open-source harnesses stand out in 2026:

Harness Free Tier Model Access BYOK Support Platforms License
OpenCode 12+ rotating free models (DeepSeek V4.1 Flash, Nemotron 3.5, Beam, Hy4 Flash, MiMo, Jev, stealth models) ✅ Any of 200+ providers via Models.dev; ChatGPT Plus/Pro, GitHub Copilot, local Ollama/LM Studio Desktop (macOS/Win/Linux), Terminal, Mobile, SDK MIT
Kilo Code Auto Free tier routes to free models (Nemotron 3 Ultra, MiniMax M3, GLM, etc.) via Kilo Gateway ✅ Anthropic, OpenAI, Google, Azure, AWS Bedrock, OpenRouter, any OpenAI-compatible endpoint VS Code, JetBrains, CLI, Cloud Agents, Browser Extension, Mobile MIT
Gemini CLI 250 requests/day (Flash model only) with unpaid API key; Enterprise plans get 1,500–2,000/day ✅ Paid Gemini API key or Vertex AI Terminal (CLI), Cloud Shell Apache 2.0

All three are open source, support multiple models, and let you bring your own keys — so you’re never locked into a single provider’s pricing.


1. OpenCode — The Swiss-Army Knife (Desktop + Terminal + Mobile + SDK)

Website: opencode.ai | GitHub: sst/opencode

OpenCode is the only agent that ships a native desktop app, a terminal UI (TUI), a mobile app (iOS/Android), and an SDK — all from the same codebase. You can start a session on your laptop, continue on your phone, and automate it via the SDK in CI.

Free tier details (as of November 2026)

OpenCode Console provides 12 rotating free models — no account required, just download and run:

Model ID Context Privacy Notes
DeepSeek V4.1 Flash Free deepseek-v4.1-flash-free 1M Zero retention, no training
Hy4 Flash Free hy4-flash-free 1M Zero retention, no training
Beam Free beam-free 1M No training; 30-day safety retention; blocked in China/Russia/Iran/etc.
Nemotron 3.5 Lightning Free nemotron-3.5-lightning-free 1M NVIDIA trial: logs prompts, no confidential data
Nemotron 3.5 Super VL Free nemotron-3.5-super-vl-free 1M NVIDIA trial: logs prompts, no confidential data
MiMo V2.6 Flash Free mimo-v2.6-flash-free 1M Default: zero retention, no training
Jev 1.13 Free jev-1.13-free 1M Default: zero retention, no training
Flint 40B Free flint-40b-free 1M May train on data; 30-day retention
Big Pickle big-pickle 1M Stealth model; may train on data
Tidepool Alpha Free tidepool-alpha-free 1M Stealth model; retains/trains on data
Iceman Free iceman-free 1M Stealth model; retains/trains on data
North Mini Code Free (varies) 1M Free tier model

⚠️ Privacy warning: The Nemotron, Flint, Big Pickle, Tidepool, and Iceman free models retain or train on your prompts. For proprietary code, stick to DeepSeek V4.1 Flash Free, Hy4 Flash Free, MiMo, or Jev — or bring your own key.

BYOK: 200+ providers, zero markup

OpenCode uses Models.dev under the hood. You can connect:

  • Anthropic, OpenAI, Google, OpenRouter, Groq, Bedrock, Azure, Mistral, Cohere, Together AI, Fireworks, Perplexity, xAI, DeepSeek, Z.ai, MiniMax — any OpenAI-compatible endpoint
  • ChatGPT Plus/Pro — device login, usage counts against your plan
  • GitHub Copilot — sign in with GitHub; Copilot Free works if you have Chat access
  • Local models — auto-discovers Ollama (http://127.0.0.1:11434), LM Studio (http://127.0.0.1:1234), vLLM (http://127.0.0.1:8000)

Key features that matter for daily coding

Feature What it does
Build / Plan agents Build edits files and runs commands; Plan explores and proposes without writing. Press Tab to switch.
Subagents General (multi-step research), Explore (read-only code search), Scout (dependency/docs reading) — call with @general, @explore, @scout
Undo/Redo /undo reverts the last change and puts your prompt back; /redo goes forward
Project memory /init scans the repo and writes AGENTS.md with structure/conventions — commit it for team alignment
Model per agent Cheap fast model for Explore, strong model for Build — set in opencode.json
LSP integration Type errors fed back to the agent in real time
MCP servers Connect local/remote MCP servers for custom tools
Plugins & Skills Extend with custom logic; teach reusable workflows via SKILL.md files
Permissions Granular approval: auto-approve reads, prompt for writes, shell commands, env access
35+ themes Modus, Alabaster, VS Code, Cyberdream, Poimandres, Oxocarbon, Sakura, Espresso, Witch Hazel, E-Ink, Dune + WCAG 2.2 contrast calibration

OpenCode Go (optional $10/mo)

If you want a curated model menu without managing keys: OpenCode Go ($10/mo, Go Plus $40, Go Teams $20/seat, 2-seat min) gives 35 open/partner models (GLM, Kimi, Qwen, DeepSeek, MiniMax, Grok, GPT, Claude Haiku, Gemini) with monthly dollar pools. No Claude Sonnet/Opus on Go.

Bottom line on OpenCode

Best for: Developers who want a polished desktop experience, multi-device sync, local model support, and maximum model flexibility. The free tier is genuinely usable for daily work if you pick the right free models (DeepSeek/Hy4/MiMo/Jev) or BYOK.


Kilo Code VS Code extension showing chat interface and agent manager Kilo Code VS Code extension — chat interface and Agent Manager. Source: kilo.ai (official product screenshot).

2. Kilo Code — The IDE-First Agent (VS Code + JetBrains + CLI + Cloud)

Website: kilo.ai | GitHub: Kilo-Org/kilocode | Acquired by Anaconda (Nov 2026)

Kilo Code started as a fork of OpenCode’s core and evolved into a full IDE-integrated agent with first-class VS Code and JetBrains extensions, plus cloud agents, code review, and a universal gateway.

Free tier details

Auto Free (kilo-auto/free) — the easiest entry point. It automatically routes requests to the best available free models through Kilo Gateway. No configuration, no credits.

Free Model Highlights Notes
Nemotron 3 Ultra (550B MoE, 55B active) Frontier-class open-weight model from NVIDIA; fast, dynamic, free in Kilo
MiniMax M3 Competitive on practical coding benchmarks; reliable for production
GLM, Kimi, Qwen, DeepSeek, Mistral, Gemma, Llama Rotating selection via Kilo Gateway partnerships

⚠️ Auto Free privacy: Requests may route to providers that log prompts and use them to improve services (including NVIDIA’s free endpoints). Do not submit personal or confidential data on Auto Free.

Rate limit: 200 requests/hour per IP on free models.

BYOK & Kilo Gateway — Zero markup, 500+ models

Kilo Gateway is a universal inference API — one endpoint, every provider, no markup:

Option Cost on Kilo You pay
BYOK (Anthropic, OpenAI, Google, Azure, Bedrock, OpenRouter, Together, Z.ai, MiniMax, any OpenAI-compatible) $0 Provider directly
Kilo Gateway pay-as-you-go Exact provider rates + 5% processing fee on credit purchase Kilo credits
Kilo Pass ($19/mo+) Monthly credit subscription + up to 50% bonus credits Kilo credits

Auto Model tiers let you pick capability vs. cost:

  • kilo-auto/frontier — Maximum capability (paid)
  • kilo-auto/efficient — Lowest cost per task, smart routing (paid)
  • kilo-auto/free — No credits required (free)

Key features

Feature Description
Agent Manager Run multiple agents in IDE; diff panel, multi-model comparison, PR import, code review annotations
Cloud Agents Run agents in cloud (Docker/Small/Standard compute tiers); long-running tasks without local resource consumption
Code Review Automated PR analysis; catches bugs, suggests improvements
Browser Extension Cloud agent in browser side panel; reads page, summarizes, analyzes data
JetBrains Native Extension Ground-up rebuild; deeper IDE integration
Mobile Apps (iOS/Android) Run cloud agents, control desktop sessions, review PRs from phone
Voice Prompting Natural voice commands in IDE
Autocomplete FIM-based with Codestral; status bar cost tracking
Workflows Repeatable prompt templates as .md files
Custom Subagents Define specialized sub-agents for the task tool
Granular Permissions Per-tool rules with glob patterns
JSONC Config Portable kilo.jsonc instead of VS Code settings

Bottom line on Kilo Code

Best for: IDE-centric developers (VS Code/JetBrains) who want cloud agents, code review, browser integration, and a unified gateway for 500+ models at zero markup. The Auto Free tier is the easiest “download and code” experience — but read the privacy notice.


Gemini CLI terminal interface showing chat, model selector, and status bar Gemini CLI terminal interface — chat, model selector (Auto/Gemini 3), and status bar. Source: google-gemini/gemini-cli (Apache 2.0 licensed).

3. Gemini CLI — Google’s Terminal Agent (Enterprise-Grade, Shifting Landscape)

Website: geminicli.com | GitHub: google-gemini/gemini-cli

Gemini CLI is Google’s open-source terminal agent (Apache 2.0). It uses a ReAct loop with built-in tools (file ops, shell, web fetch/search) and MCP servers. Critical context: As of June 18, 2026, Google ended consumer access to Gemini CLI via free Google accounts, Google AI Pro, and Google AI Ultra — those users were migrated to Antigravity CLI.

Current free tier (as of November 2026)

Auth Method Daily Limit Models Status
Unpaid Gemini API key 250 requests/day Flash model only ✅ Works (listed in quota docs)
Paid Gemini API key Pay-as-you-go Full model family ✅ Works
Vertex AI Express Mode 90 days free, then billing required Varies by account ✅ Works
Gemini Code Assist Standard/Enterprise 1,500–2,000 requests/day Gemini 3.x family ✅ Enterprise only
Free Google account (consumer) 1,000/day Gemini 2.5 Pro ❌ Ended June 18, 2026
Google AI Pro/Ultra 1,500–2,000/day Gemini 2.5 Pro ❌ Ended June 18, 2026

📌 Reality check: The only reliable free tier for individuals today is the unpaid Gemini API key (250 Flash requests/day). Enterprise users on Code Assist Standard/Enterprise continue to work. The old “generous free tier” blog posts are outdated.

Key features

Feature Description
Interactive agent Queries/edits large codebases, debugs, builds apps from PDFs/images/sketches
Headless mode gemini -p for single prompts; --output-format json/stream-json for scripts/CI
Context files GEMINI.md for persistent project instructions
MCP servers Configured in ~/.gemini/settings.json; admin-restrictable via mcp.allowed
Extensions & custom commands Packaged commands, context, MCP servers
Checkpointing & token caching Save/resume sessions; reuse cached tokens
Auto mode Unified auto mode (v0.44.0+)
Hooks & subagents Hook events including SubagentStop
Sandboxing GEMINI_SANDBOX=docker|podman|sandbox-exec|runsc|lxc
Trusted folders Execution policy per folder; fail-closed workspace trust
Telemetry OpenTelemetry export; custom OTLP headers

Model support limitation

Google’s sunset page limits support to Gemini 3.x family. The README states Gemini CLI is “not optimized for Gemini 4 series” and produces unrepresentative scores for Gemini 4+. If you need Gemini 4 Argon or later, use Antigravity CLI or a paid API key.

Bottom line on Gemini CLI

Best for: Google Cloud / Vertex AI enterprise teams already on Code Assist Standard/Enterprise, or developers who want a lightweight terminal agent with 250 free Flash requests/day via an unpaid API key. Not recommended as a primary free daily driver for individuals — the consumer free tier is gone.


The Hidden Gem: NVIDIA NIM — Best Free API Right Now

If you’re using OpenCode or Kilo Code (or any OpenAI-compatible client), the single best free model backend in late 2026 is NVIDIA NIM at build.nvidia.com.

Why NIM wins on “free”

Dimension NVIDIA NIM Free Tier Typical Free Tiers
Billing model Rate-limited only (≈40 requests/minute) Credit-based (daily/monthly token caps)
Per-token cost $0 — no token billing at all $0 but capped by credits
Context window Up to 1M tokens (Nemotron 3 Ultra, DeepSeek V4.1 Flash) Often 4K–128K on free tiers
Model quality Frontier-class (Nemotron 3 Ultra 550B, Nemotron 3.5 Super VL, DeepSeek V4.1 Flash, GLM 5.3 Flash, Kimi K3.1 Pro, GPT-OSS 20B, Llama 3.3 70B) Usually smaller/distilled models
Production use ❌ Trial only (prototyping, research, testing) ❌ Usually trial only
Data privacy ❌ NVIDIA logs prompts for model improvement Varies

The catch (read before you commit)

  1. Rate limit: ~40 requests/minute per account (shared across all models). NVIDIA does not publish exact numbers; users report 40 RPM. No official way to increase it on the free tier.
  2. Trial terms only: Section 1.2 of NVIDIA API Trial Terms — “limited trial purposes only.” Section 1.4 — no production use without subscription. Section 3.3 — NVIDIA collects your content and generated content to improve its products, including AI models.
  3. No confidential data: Explicitly forbidden on trial endpoints.
  4. Phone verification: New accounts may require SMS verification (some regions have issues; contact [email protected] if stuck).

How to use NIM with OpenCode / Kilo Code

OpenCode (via OpenAI-compatible endpoint):

{
  "providers": {
    "nim": {
      "apiBase": "https://integrate.api.nvidia.com/v1",
      "model": "nvidia/nemotron-3-ultra-550b-a55b",
      "apiKey": "${env.NIM_API_KEY}"
    }
  },
  "agent": { "provider": "nim", "model": "nvidia/nemotron-3-ultra-550b-a55b" }
}

Kilo Code: Add NVIDIA NIM as a custom OpenAI-compatible provider in Kilo Gateway settings, or use the built-in Nemotron 3 Ultra free model via kilo-auto/free (which may route to NIM).

Current free NIM model lineup (November 2026)

Model Context Strengths
Nemotron 3 Ultra (550B MoE, 55B active) 1M Frontier coding, reasoning, 1M context
Nemotron 3.5 Super VL (120B, 12B active) 1M Vision-language, document understanding
Nemotron 3.5 Lightning (30B, 3B active) 262K Fast, efficient
DeepSeek V4.1 Flash 1M Strong coding, 1M context
GLM 5.3 Flash 1M Strong Chinese/English, 1M context
Kimi K3.1 Pro (Moonshot) 1M Agentic coding, 3D, finance
GPT-OSS 20B 131K Open-weight, reasoning
Llama 3.3 70B Instruct 128K General purpose

All at $0/token, 40 RPM account-wide.


Head-to-Head: Which Free Harness Should You Pick?

Choose OpenCode if:

  • You want a native desktop app with tabs, diffs, built-in browser, and mobile companion
  • You need local model support (Ollama/LM Studio/vLLM) for full privacy
  • You want maximum model flexibility — 200+ providers, any OpenAI-compatible endpoint
  • You value project memory (AGENTS.md), undo/redo, subagents, skills/plugins
  • You’re okay picking free models carefully (avoid Nemotron/Flint/stealth for proprietary code)

Choose Kilo Code if:

  • You live in VS Code or JetBrains and want deep IDE integration
  • You want cloud agents for long-running tasks without tying up your machine
  • You need automated code review on PRs
  • You like Auto Model routing (Frontier/Efficient/Free) — set it and forget it
  • You want a universal gateway (Kilo Gateway) for your own apps too
  • You accept Auto Free’s privacy trade-off (or BYOK)

Choose Gemini CLI if:

  • You’re on Google Cloud / Vertex AI with Code Assist Standard/Enterprise
  • You want a lightweight, scriptable terminal agent (great for CI/headless)
  • You only need 250 Flash requests/day and can live with Gemini 3.x
  • You prefer Apache 2.0 license and Google’s engineering

Use NVIDIA NIM as your primary model backend if:

  • You’re on OpenCode or Kilo Code (or any OpenAI-compatible client)
  • You need 1M context for large repos
  • You want frontier model quality (Nemotron 3 Ultra) for $0
  • You can work within ~40 RPM and don’t send confidential data
  • You’re prototyping, not shipping to production

My Personal Stack (December 2026)

┌─────────────────────────────────────────────────────────────────┐
│  Editor: VS Code (Kilo Code extension) + Terminal (OpenCode)    │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Primary Model: NVIDIA NIM → Nemotron 3 Ultra (1M ctx)     │  │
│  │   • OpenCode: provider "nim" via integrate.api.nvidia.com  │  │
│  │   • Kilo Code: custom NIM provider in Gateway              │  │
│  │   • Rate limit: ~40 RPM — paces fine for single agent      │  │
│  └───────────────────────────────────────────────────────────┘  │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Heavy Context / Refactor: OpenCode Zen (free daily cap)   │  │
│  │   • Native OpenCode provider, zero config                  │  │
│  │   • Great for multi-file edits that blow NIM's RPM         │  │
│  └───────────────────────────────────────────────────────────┘  │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Editor Autocomplete: Kilo Code (Codestral via BYOK)       │  │
│  │   • Or GitHub Copilot if you have it                       │  │
│  └───────────────────────────────────────────────────────────┘  │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Rescue Tier: Kilo Auto Free / OpenRouter free models      │  │
│  │   • When NIM rate-limits, flip to Kilo's free routing     │  │
│  │   • OpenRouter for model variety (Qwen, Phi, Gemma)       │  │
│  └───────────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────────┘

Cost: $0/month. Productivity: ~90% of what I’d get with paid Claude Code + Opus.


TL;DR

Need Best Free Pick
Best all-around harness (desktop + terminal + mobile) OpenCode — MIT, 200+ providers, local models, free tier with 12 models
Best IDE-integrated harness (VS Code/JetBrains + cloud) Kilo Code — MIT, Auto Free, Kilo Gateway, cloud agents, code review
Best if you’re already on Google Cloud Enterprise Gemini CLI — Apache 2.0, 250 Flash req/day (unpaid key), enterprise quotas
Best free model API (backend for any harness) NVIDIA NIM — ~40 RPM, no token limits, 1M context, Nemotron 3 Ultra, DeepSeek V4.1 Flash

Start today:

  1. OpenCode: curl -fsSL https://opencode.ai/v2/install \| bash → /models → pick DeepSeek V4.1 Flash Free
  2. Kilo Code: Install “Kilo Code” from VS Code Marketplace (Pre-Release) → Auto Free works instantly
  3. NIM: Sign up at build.nvidia.com → generate API key → add as OpenAI-compatible provider in OpenCode/Kilo

No credit card. No subscription. Just code.


Disclosure

No affiliate links. OpenCode, Kilo Code, Gemini CLI, and NVIDIA NIM free tiers are used under their public terms as of November 2026. Free model lineups, rate limits, and privacy policies change — verify current details at each provider’s documentation before sending proprietary code. I pay none of these providers.

Image Credits

Image Source License
OpenCode Terminal UI anomalyco/opencode MIT
Kilo Code VS Code Extension kilo.ai official product screenshot Manufacturer product image
Gemini CLI Terminal google-gemini/gemini-cli Apache 2.0

Newsletter

Get the next one by email

The week’s best technology writing, plus the explainers worth keeping.

Delivered by Buttondown. Unsubscribe in one click. See the privacy policy. Prefer the provider's own page? Subscribe on Buttondown.