Autopilot

Open-source terminal coding agent and SDK: bring your own key for 25+ providers or a local model, with sandboxed subagents, guardrails and /undo.

Stars
★ 220
Last updated
1d ago
FARS reviewed
Nov 20, 2026
License
MIT
Primary language
TypeScript

At a glance

Works with
Universal · cross-platformOpenAI API · Claude APIChatGPT · Claude Code (Partial support)
You'll need
Node.js 22.23.4+Provider API key or GitHub account for the free tier (optional)Hotcell for sandboxed subagents (optional)Nvidia GPU with 24 GB+ for dl model up (optional)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer who already holds an OpenRouter, Anthropic or DeepSeek key and wants a terminal agent without buying another subscription: run autopilot auth openrouter and start.
Main limitation
The Node.js floor is high and explicit (22.23.4+/24.22.1+/26.12.1+); older releases are blocked outright by web_fetch because of a Brotli CVE, so constrained environments need a runtime upgrade first.
Maintenance
Commits in the last 30 dayslast commit 2026-11-21

What does this agent do, and when should you use it?

Autopilot (formerly kimiflare) is Directionally Local's open-source coding agent, published as the npm package autopilot-ai and also installed through the dl installer. It runs as an interactive TUI, as -p one-shot runs, as a JSONL-over-stdio RPC subprocess, and as a TypeScript SDK (createAgentSession), on top of a pluggable provider layer that defaults to OpenRouter and reaches Anthropic, OpenAI, Gemini, Bedrock, Vertex and 20+ more hosted services, plus local Ollama, LM Studio and vLLM. With your own key every model call goes straight to the provider you chose, nothing proxied or marked up; there is also a free tier of weekly tokens behind a GitHub sign-in. The agent reads and edits repository files, runs shell commands, talks to LSP and MCP servers, keeps SQLite-plus-embedding memory across sessions, and fences destructive work with plan/edit/auto permission modes, guardrails, recovery points and /undo. Substantial tasks can be split across read-only subagents that each run in a local Hotcell sandbox, and sessions can be traced, compared with autopilot eval, and shipped to an OpenTelemetry collector. It needs Node.js 22.23.4+ on macOS, Linux or Windows and is MIT-licensed.

The entry point is the autopilot command. On first run it asks where the model should come from — a free GitHub sign-in, your own API key, or your own GPUs — and saves the answer to ~/.config/autopilot/config.json; a provider key already in the environment skips the question. Each turn goes to the active provider's endpoint (or <baseUrl>/chat/completions for a custom gateway), the agent streams text and reasoning, and it calls tools as needed: read, glob, grep, write, edit, bash (auto-detecting cmd.exe, PowerShell or bash), web_fetch, browser_fetch, subagent, remember/recall/forget, plus LSP and MCP tools, with billed cost shown in the status bar. Permissions run through plan/edit/auto modes: plan is whitelist-only read tools, reading credential files or fetching a private-network address asks separately, and irreversible actions such as deleting untracked work, git reset --hard or force pushes always ask even under --dangerously-allow-all, after saving a recovery point outside the repo that /undo restores; /audit reports what the agent could destroy from here. Slash commands drive the rest of the loop: /init writes AGENTS.md, /setup-import reuses CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions and Claude Code MCP servers in place, /compact frees context, /checkpoint and /resume manage sessions. Headless surfaces include -p print mode with documented exit codes (0 finished, 1 API error, 42 token budget, 43 loop detected, 44 hook blocked, 45 unfinished), --mode rpc over JSONL/stdio, and SDK methods prompt, steer, followUp, abort, resolvePermission and setModel. Operationally it writes structured JSON logs with 7-day retention, ships them to AUTOPILOT_OTEL_ENDPOINT over OTLP/HTTP, records trace.jsonl sessions, aggregates them with autopilot insights, and compares configurations with autopilot eval run and autopilot eval compare; autopilot remote add plus autopilot --on <name> sends a task to your own server, which runs it in a sandbox and opens a pull request.

  1. A developer who already holds an OpenRouter, Anthropic or DeepSeek key and wants a terminal agent without buying another subscription: run autopilot auth openrouter and start.
  2. A team whose source cannot leave the building: point it at Ollama, LM Studio or vLLM, or let dl model up stand up a private model on a 24 GB+ Nvidia card.
  3. A CI or backend pipeline that needs unattended fixes: use autopilot -p with the documented exit codes, or --mode rpc and drive it from a host process over JSONL.
  4. A platform team embedding an agent in its own product: call createAgentSession from autopilot-ai/sdk, consume the typed event stream with subscribe(), and decide writes with a custom permissionHandler.
  5. A project that is nervous about destructive commands: research in /mode plan, approve edits one at a time in edit, run /audit first, and roll back with /undo.
  6. Someone already living in Claude Code, Cursor, Gemini CLI or Copilot: reuse existing instructions and MCP servers via /setup-import, or continue an interrupted Claude Code session with autopilot --from-claude-code.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://dl.new | sh
  • npm install -g autopilot-ai
  • brew install directionally-local/tap/autopilot
  • npx autopilot-ai
Environment variables
OPENROUTER_API_KEY
Runtime
Node.js 22.23.4+
Install notes cover
macOS · Linux

How do you install or deploy this agent?

The README's primary path installs dl, Directionally Local's installer, which installs and runs Autopilot; updates should go through dl's update command rather than npm:

curl -fsSL https://dl.new | sh

To run Autopilot on its own, install the npm package globally. Node.js 22.23.4+, 24.22.1+ or 26.12.1+ is required (earlier releases carry the Brotli bug CVE-2026-111497 and web_fetch refuses to run on them):

npm install -g autopilot-ai
autopilot

On macOS or Linux, Homebrew works too (it installs Node.js for you); or run it without installing:

brew install directionally-local/tap/autopilot
autopilot
npx autopilot-ai

Credentials: none are needed up front — first run offers a free GitHub sign-in, your own provider key, or a local model, and a key already present in the environment (for example OPENROUTER_API_KEY) is used as-is. Coming from the old kimiflare name, swap the package first:

npm uninstall -g kimiflare && npm install -g autopilot-ai

How do you use this agent?

Connect a provider once (the key is checked before it is saved), then pick a model:

autopilot auth openrouter
autopilot auth use openrouter
autopilot auth status

Inside the TUI, slash commands switch provider, model and permission mode at any time:

/provider openrouter
/model anthropic/claude-sonnet-5
/mode plan

Headless runs stream to stdout with documented exit codes — 0 finished, 1 API error, 42 input-token budget exhausted, 43 agent loop detected, 44 a hook blocked the prompt, 45 the run did not finish:

autopilot -p "fix the failing test"
autopilot -p "..." --reasoning
autopilot -p "..." --dangerously-allow-all

Embed it from TypeScript with the headless SDK:

import { createAgentSession } from "autopilot-ai/sdk";

const { session } = await createAgentSession({
  cwd: "/path/to/project",
  config: {
    openrouterApiKey: process.env.OPENROUTER_API_KEY,
    model: "moonshotai/kimi-k2.7-code",
  },
});

session.subscribe((event) => console.log(event.type, event));
await session.prompt("Refactor auth to JWT + Redis");
await session.steer("Use Redis instead of in-memory store");
session.dispose();

For process isolation or a non-Node consumer, start it in RPC mode and exchange one JSON object per line:

node bin/autopilot.mjs --mode rpc

Send a task to an Autopilot server you run, and it works in its own sandbox and opens a pull request:

autopilot remote add https://acme.example.com
autopilot --on acme "fix the flaky checkout test"
autopilot runs watch <run>

What are this agent's strengths and limitations?

Pros
  • Provider substitution is real: one agent layer over OpenRouter, Anthropic Messages, OpenAI Responses, Bedrock Converse and Vertex, plus local Ollama, LM Studio, vLLM and any OpenAI-compatible endpoint — and OpenRouter-only features (billed-cost confirmation, Hotcell subagents, Jev checks) switch off cleanly instead of breaking.
  • The safety model is specific, not marketing: whitelist-only plan mode, irreversible actions that still ask under --dangerously-allow-all, a recovery point written outside the repo before destructive file or git work, /undo, and an /audit report of reachable databases and cloud accounts.
  • More than a TUI: -p print mode has documented exit-code semantics, --mode rpc is a JSONL-over-stdio protocol, the SDK exposes steer, followUp, resolvePermission and a custom permissionHandler, and remote runs hand work to your own server and open a PR.
  • Observability and evaluation ship in the box: structured JSON logs with 7-day retention, OTLP/HTTP export via AUTOPILOT_OTEL_ENDPOINT, trace.jsonl per session, autopilot insights per-model aggregates, and autopilot eval run/compare with a paired significance test.
  • Low switching cost: /setup-import reads CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions and Claude Code MCP servers in place, hook payloads reuse Claude Code's field names, and --from-claude-code hands off an existing conversation.
Limitations
  • The Node.js floor is high and explicit (22.23.4+/24.22.1+/26.12.1+); older releases are blocked outright by web_fetch because of a Brotli CVE, so constrained environments need a runtime upgrade first.
  • The interface is terminal-only: no IDE extension and no bundled web UI, and browser chat appears only through dl plus Open WebUI, which is a real adjustment for GUI-oriented developers.
  • Several headline features are OpenRouter-bound — billed-cost confirmation, Hotcell subagents and the Jev completion/triage checks — so switching providers costs functionality, not just a config line.
  • Subagents need a separate Hotcell deployment with the OpenRouter key placed in its host key store, and the first subagent after an install spends about two minutes building a cached runtime.
  • Some integration paths are unofficial or restricted: GitHub Copilot is described as not a documented public API that GitHub may change, Claude Pro/Max sign-in is not permitted for third-party tools, and Azure Entra ID sign-in is not supported yet.
  • The kimiflare rename forces migration work — reinstall the package, move ~/.config and ~/.local/share directories — and retires /gateway, --cloud and /multi-agent.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Autopilot This agent 54 · Major gaps — ★ 220 1d ago TypeScript OpenAI API · Claude API
AgenC Core 76 · Good CLIFree + model costs ★ 143 5d ago TypeScript —
Vix 58 · Major gaps CLIFree + model costs ★ 286 2mo ago Go OpenAI API · Claude API
Oh My Pi 68 · Some gaps CLIFree + model costs ★ 40k today TypeScript Codex · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
Trust 17/29
Reliability 8/14
Adaptability 10/18
Convention 9/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

README and AGENTS.md describe plan/edit/auto modes, confirmation before reading credential files, per-origin confirmation for web_fetch to private networks, forced confirmation for irreversible actions, and /undo recovery points, giving solid least_privilege, user_confirmation, external_effects and rollback (2 each). Data flow is explained: free tier keeps only usage counts, never prompts or code; bring-your-own-key calls go straight to the chosen provider (data_flow_transparency 2). Sensitive handling cites config mode 600, redaction at trace write time, and redacted Claude transcript keys (2). Dependency security shows only an esbuild override and a Node CVE note, with no audit or lockfile policy evidence (1). Source attribution is limited to README and LICENSE naming Sina Meraji, with an unverified publisher (1). Deduction: permission details are largely README self-claims; sampled source does not show the permission executor.

Reliability8 / 14 · 2.9/5

README and AGENTS.md agree on build/test/run commands, Node version matrix and CI flow (self_consistency 2); failure handling includes simple-view fallback, crash report paths and isolated-vm absence notice (failure_messages 2). Dependency availability is weaker: camouflage-tui pinned to 2.12.0, @hotcell/sdk and other in-house packages, and isolated-vm as an optional dependency needing prebuilt binaries (dependency_availability 1).

Adaptability10 / 18 · 2.8/5

Serves both terminal coding agent and SDK audiences across interactive, print, RPC and long-running unattended scenarios (audience_and_scenarios 2); capability boundaries are fairly clear, e.g. plan mode is read-only whitelist and OpenRouter-only features switch off elsewhere (capability_boundaries 2). Trigger precision is weaker: modes off by default, subagents may delegate by default, and importing other agents' configs have fuzzy boundaries; sampled source does not show trigger logic (trigger_precision 1). Environment fit covers Windows shell detection, Homebrew/npx/curl installs, local GPU and vLLM (environment_fit 2).

Convention9 / 18 · 2.5/5

README is well structured with detailed install notes (information_architecture 2, install_notes 2); release-please manages versions with a CI guard against accidental major bumps (versioning_changelog 2); MIT license file is complete (license 2). However the kimiflare rename leaves old and new package names, env vars and directories coexisting, reducing naming stability (naming_stability 1); examples and FAQ are sparse, mostly feature lists (examples_and_faq 1); known limitations are only scattered (known_limitations 1); maintenance responsibility points to Directionally Local but the publisher is unverified (maintenance_responsibility 1).

Effectiveness7 / 13 · 2.7/5

Output usability includes cost tracking, /cost, /undo, /audit and simple-view fallback, oriented to real use (output_usability 2); marginal value comes from multi-provider support, local models and subagents versus generic coding agents (marginal_value 2). Cost-benefit is clear for free tier and bring-your-own-key, but the free tier depends on vendor service, OpenRouter-only features fail elsewhere, and estimates differ from billed cost (cost_benefit 1).

Verifiability3 / 8 · 1.9/5

Many README claims can be cross-checked against AGENTS.md, package.json and CI config (Node versions, test commands, license), but they remain self-reported with no independent third-party evidence (claim_traceability 1, cross_source_corroboration 1); docs mix facts with inference, e.g. the marketing line 'It doesn't ask permission' coexisting with later confirmation mechanisms, without clear separation (fact_inference_separation 1).

Risks and how to mitigate them
  • Publisher identity is unverified; README and LICENSE attribution cannot serve as a trust endorsement.
  • Permission and confirmation mechanisms are largely README self-claims; sampled source does not show the permission executor, so actual behavior needs runtime verification.
  • Depends on a pinned camouflage-tui version and in-house packages like @hotcell/sdk, with isolated-vm as an optional dependency, posing environment availability risk.
  • The kimiflare rename leaves old and new package names, env vars and directories coexisting; upgrades and migrations need care.
  • The free tier depends on vendor service, OpenRouter-only features fail on other providers, and cost estimates may diverge from billed cost.
Evidence confidence: Low Reviewed Nov 20, 2026 Reviewed revision 46118ffefc2c
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/autopilot.svg)](https://followagents.com/en/agents/autopilot)
<a href="https://followagents.com/en/agents/autopilot"><img src="https://followagents.com/badge/autopilot.svg" alt="FARS review"></a>

FAQ

Is Autopilot open source?
Yes. The source code is on GitHub (directionally-local/autopilot) under the MIT licence.
Is Autopilot safe to use?
FollowAgents' FARS review (Nov 20, 2026) scored Autopilot 17/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is Autopilot still maintained?
Yes. The latest commit on GitHub is from 2026-11-21, within the last 30 days.
Who makes Autopilot?
Autopilot is published on GitHub by the account directionally-local. FollowAgents has not verified which person or company is behind that account.
What is Autopilot's official website?
The project's GitHub repository lists https://directionallylocal.com/autopilot as its website. That link is set by the repository owner; the source code itself is on GitHub (directionally-local/autopilot).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts