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.
- Source repo
- directionally-local/autopilot
- Stars
- ★ 220
- Last updated
- 1d ago
- FARS reviewed
- Nov 20, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 54/100 · Major gaps
At a glance
- Works with
- Universal · cross-platformOpenAI API · Claude APIChatGPT · Claude Code (Partial support)
- You'll need
- 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 openrouterand 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_fetchbecause of a Brotli CVE, so constrained environments need a runtime upgrade first. - Website
- directionallylocal.com/autopilot ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-21
- Source review
- 54/100 · Major gaps
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.
- A developer who already holds an OpenRouter, Anthropic or DeepSeek key and wants a terminal agent without buying another subscription: run
autopilot auth openrouterand start. - A team whose source cannot leave the building: point it at Ollama, LM Studio or vLLM, or let
dl model upstand up a private model on a 24 GB+ Nvidia card. - A CI or backend pipeline that needs unattended fixes: use
autopilot -pwith the documented exit codes, or--mode rpcand drive it from a host process over JSONL. - A platform team embedding an agent in its own product: call
createAgentSessionfromautopilot-ai/sdk, consume the typed event stream withsubscribe(), and decide writes with a custompermissionHandler. - A project that is nervous about destructive commands: research in
/mode plan, approve edits one at a time inedit, run/auditfirst, and roll back with/undo. - 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 withautopilot --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 | shnpm install -g autopilot-aibrew install directionally-local/tap/autopilotnpx 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 | shTo 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
autopilotOn macOS or Linux, Homebrew works too (it installs Node.js for you); or run it without installing:
brew install directionally-local/tap/autopilot
autopilotnpx autopilot-aiCredentials: 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-aiHow 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 statusInside the TUI, slash commands switch provider, model and permission mode at any time:
/provider openrouter
/model anthropic/claude-sonnet-5
/mode planHeadless 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-allEmbed 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 rpcSend 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?
- 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
planmode, 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/auditreport of reachable databases and cloud accounts. - More than a TUI:
-pprint mode has documented exit-code semantics,--mode rpcis a JSONL-over-stdio protocol, the SDK exposessteer,followUp,resolvePermissionand a custompermissionHandler, 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.jsonlper session,autopilot insightsper-model aggregates, andautopilot eval run/comparewith a paired significance test. - Low switching cost:
/setup-importreadsCLAUDE.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-codehands off an existing conversation.
- The Node.js floor is high and explicit (22.23.4+/24.22.1+/26.12.1+); older releases are blocked outright by
web_fetchbecause 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
~/.configand~/.local/sharedirectories — and retires/gateway,--cloudand/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?
Why each dimension lost points
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.
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).
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).
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).
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).
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).
- 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.
FAQ
Is Autopilot open source?
Is Autopilot safe to use?
Is Autopilot still maintained?
Who makes Autopilot?
What is Autopilot's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.