agentty vs Claude Code

An honest comparison of agentty and Claude Code — the native C++26, single-binary, model-agnostic claude-code alternative. Startup speed, cost, sandboxing, air-gap, editor integration, and platform support side by side.

Short version: agentty is a drop-in claude-code alternative that targets the same workflow — a coding agent in your terminal — but ships as a single native C++26 binary instead of a Node.js app, starts in under a millisecond, sandboxes every shell call by default, and is bring-your-own-model: run it with an API key, a subscription sign-in (Claude Pro/Max, ChatGPT, GitHub Copilot, or Kimi), or a local Ollama model. It works with any model (Claude, GPT, DeepSeek, Kimi, Gemini, Grok, Mistral, Groq, OpenRouter, Together, Cerebras, Fireworks, or local Ollama), not Claude only.

If you already like Claude Code's workflow but want it faster, dependency-free, model-agnostic, and sandboxed, agentty is built for you.

At a glance

agenttyClaude Code
RuntimeSingle static C++26 binaryNode.js app (npm install -g)
Cold start< 1 ms~hundreds of ms (Node boot)
Install size18.2 MB, one fileNode runtime + node_modules
DependenciesNone (no Node, Python, Electron, npm)Node.js ≥ 18
ModelsClaude, OpenAI, DeepSeek, Kimi, Gemini, Grok, Mistral, Groq, OpenRouter, Together, Cerebras, Fireworks, local Ollama, any OpenAI-compatible hostClaude only
AuthAny provider API key, local Ollama (no key), or subscription OAuth (Claude Pro/Max, ChatGPT, GitHub Copilot, Kimi)Claude Pro/Max OAuth or API key
Shell sandboxOn by default (bwrap / sandbox-exec)Permission prompts, no OS sandbox
Editor integrationRuns inside Zed over ACPTerminal + IDE extensions
Air-gapped hostsOne-command SSH air-gap
PlatformsLinux, macOS, Windows (x86_64 + aarch64), Termux/AndroidmacOS, Linux, Windows (WSL)
LicenseMIT (open source)Proprietary
MCP toolsYesYes
Compaction costBackground summarization runs on the cheapest capable model on your providerNot publicly documented
Tool executionIndependent calls run in parallel; read-only tools start speculatively mid-stream (details)Sequential per turn

Where agentty is different

It's a native binary, not a Node app

Claude Code is distributed as an npm package and boots a Node.js runtime on every invocation. agentty is a single statically-linked C++26 executable (18.2 MB) — curl | sh and you have one file with no runtime dependencies. Cold start is under a millisecond, and the TUI never pauses for garbage collection mid-stream. No version drift between machines, no npm install, no node_modules.

Any model, bring your own key

agentty is model-agnostic — run it with an API key for OpenAI, DeepSeek, Google Gemini, xAI Grok, Mistral, Groq, OpenRouter, Together, Cerebras, Fireworks, or Anthropic, a subscription sign-in (Claude Pro/Max, ChatGPT, GitHub Copilot, or Kimi — no key), or a fully local Ollama model (no key, no cloud). Switch backends live in-app with ^P, or pass --provider. See Providers & Models. If you want Claude Code's ergonomics with a local, zero-API-cost model, that's a one-flag change.

Sandboxed by default, not as an afterthought

Every shell and build command agentty runs is wrapped in an OS-native sandbox — bwrap on Linux, sandbox-exec on macOS. Your workspace is read-write, system libraries are read-only, and ~/.ssh, /etc, and other projects are blocked. It's the default, not an opt-in. See Sandboxing.

Cost-aware by design

Background context compaction — the summarization pass that fires when a long thread nears the context window — runs on the cheapest capable model on your active provider, not the flagship model you're chatting with, so a compaction costs a fraction of a normal turn. The trigger itself scales with the model's real window (tunable 75/90/95% via the Compaction depth command) instead of a fixed token margin, so a big-window model rides much further before it needs to summarize at all. Read-only subagent fan-out (explorer, reviewer) gets the same treatment. The 1M-context window is an explicit, entitlement-gated model variant you opt into from the picker, never a silent auto-upgrade.

Fork a thread to escape a full context window

When a conversation fills the window, agentty can fork it into a fresh thread that carries near-zero context: the parent's full transcript is written to disk and the fork reads it on demand, so forking costs O(1) tokens no matter how large the parent grew — and nothing is lost, because the transcript is verbatim, not a lossy summary. Most agents that offer forking copy the whole history into the new session (inheriting its token cost); agentty inverts that into a read-on-demand pointer, turning fork from "branch with the same context" into "reclaim the window and keep going."

Runs on air-gapped hosts

agentty airgap user@host relays traffic from your laptop to a machine with no direct internet, over SOCKS5-over-SSH with TLS pinned end-to-end. One command. See the air-gap guide.

Lives inside your editor over ACP

agentty acp runs the exact same engine as the TUI as an Agent Client Protocol agent inside Zed — streaming responses, inline diffs, native permission prompts, session reload — over JSON-RPC on stdio. Any ACP client works.

Where Claude Code is still ahead

Being honest: Claude Code is a mature, first-party Anthropic product with a large team behind it. It has broader IDE-extension coverage, a longer track record, and first-day support for new Anthropic features. agentty is pre-1.0 and moving fast — the core loop, tools, streaming, auth, and persistence all work and get daily testing, but treat it as a capable beta. If you want the officially-supported Anthropic experience above all else, use Claude Code.

When to choose agentty

Choose agentty if you want:

  • A single-binary coding agent with zero runtime dependencies.
  • Sub-millisecond startup and a TUI that never GC-pauses.
  • Your choice of model — Claude, GPT, DeepSeek, Kimi, or a local Ollama model — behind one client.
  • Shell calls sandboxed by default.
  • To drive an agent on an air-gapped host over SSH.
  • An open-source (MIT) tool you can read, fork, and ship.

Try it in one line

curl -fsSL https://agentty.org/install.sh | sh
cd your-project
agentty

First launch opens auth — paste an API key (any provider), use a local Ollama model with no key, or sign in with your Claude Pro/Max subscription. See the Quick Start or the full Installation guide.