Transform stdio-based MCP servers into a first‑class CLI tool.
Autohand Code CLI
By autohandai
Open-source terminal coding agent. Use 15+ model providers, local models or your own key. Plan mode before edits. Imports your Codex, Cursor, Claude Code setup.
- Views
- 2
- Repository stars
- 219
- Platforms
- macOS, Linux, Windows
- Workspace
- CLI
Use cases
- Interactive sessions assess repository readiness in the background while you work. A bounded, read-only scan compares AGENTS.md and CLAUDE.md history with committed and uncommitted changes, then asks your configured model for a repository map and concrete improvement candidates. It runs no project scripts and makes no edits. After your first successful turn, new findings appear once per repository; materially new findings can be offered in a later session. Use /readiness to review the evidence, /readiness apply 1 to choose a finding, or /readiness dismiss to skip. Set ui.repositoryReadiness to false to disable this background model request. Bare, ephemeral, offline, command, RPC and ACP sessions skip it. The shell installer includes Zit v0.1.2 by default on supported macOS and Linux platforms, preserving an existing installation and verifying release checksums. Use --no-zit or AUTOHAND SKIP ZIT INSTALL=1 to opt out. The Windows installer supports -NoZit and the same environment variable; it preserves an existing Zit installation and reports that native Windows binaries are currently unavailable. autohand --zit requires Git 2.38 or newer. Installing Zit does not initialize repositories. On Windows, running install.sh from Git Bash, MSYS, or Cygwin delegates to the native PowerShell installer and preserves installation options. Autohand launched from Git Bash uses Bash for command tools; see shell settings to choose an executable explicitly. The npm package includes checksum-verified Zit binaries for macOS and Linux on ARM64 and x64. npm install -g autohand-cli and bun install -g autohand-cli download them with the package, including when lifecycle scripts are disabled. Autohand uses ZIT BIN , an existing zit on PATH , or its packaged binary, in that order. Rust and a separate Zit installation are not required. Native Windows Zit binaries are currently unavailable. - Terminal-Native Agent : Understands your codebase and executes approved changes from the CLI - Planning + Tools : Combines reasoning, file edits, shell commands, and web context in one loop - Interactive REPL : Smooth terminal experience with file mentions, slash commands, and keyboard shortcuts - Modular Skills : Extends workflows with specialized instruction packages - Multi-Provider Support : Free Fantail model with an Autohand account, or 15+ providers incl. Anthropic, OpenAI, OpenRouter, Bedrock, DeepSeek, Azure, Vertex, xAI, Z.ai and local Ollama/llama.cpp/MLX - Git Integration : Full version control support with automatic commits - Cross-Platform : Works on macOS, Linux, and Windows - Coming from Claude Code? Run autohand import claude to bring over your settings, skills, hooks, sessions and memory
Platforms
macOS, Linux, Windows
System requirements
- Node.js 22 or later (to run Autohand) - Bun 1.0 or later, only to build from source ( curl -fsSL https://bun.sh/install bash ) - Git (for version control features) - ripgrep (optional, for faster search) - macOS - Linux - Windows
Configuration guide
Create ~/.autohand/config.json or use config.toml, config.yaml, or config.yml:
{
"provider": "openrouter",
"openrouter": {
"apiKey": "sk-or-...",
"model": "your-modelcard-id-here"
},
"workspace": {
"defaultRoot": ".",
"allowDangerousOps": false
},
"ui": {
"theme": "aurora",
"autoConfirm": false
}
}Autohand Code CLI
Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia
A fast, self-improving terminal-native AI coding agent for planning, reflecting, remembering, editing, testing, and automating work across your codebase.
Autohand Code CLI is a fast, terminal-native AI coding agent that lives where you already work. It reads project context, plans changes, edits files, runs tools, and asks for approval before risky operations.
The interface is built for focused interactive sessions: minimal chrome, smooth Ink rendering, file mentions, slash commands, skills, permissions, provider switching, and session history all available from one prompt.
Install it, run autohand, and describe the outcome you want in natural language. Use Autohand Code CLI locally, with your editor, or in CI/CD to automate repetitive engineering work without giving up control.
Features
Interactive sessions assess repository readiness in the background while you work. A bounded, read-only scan compares AGENTS.md and CLAUDE.md history with committed and uncommitted changes, then asks your configured model for a repository map and concrete improvement candidates. It runs no project scripts and makes no edits. After your first successful turn, new findings appear once per repository; materially new findings can be offered in a later session. Use /readiness to review the evidence, /readiness apply 1 to choose a finding, or /readiness dismiss to skip. Set ui.repositoryReadiness to false to disable this background model request. Bare, ephemeral, offline, command, RPC and ACP sessions skip it.
The shell installer includes Zit v0.1.2 by default on supported macOS and Linux platforms, preserving an existing installation and verifying release checksums. Use --no-zit or AUTOHAND_SKIP_ZIT_INSTALL=1 to opt out. The Windows installer supports -NoZit and the same environment variable; it preserves an existing Zit installation and reports that native Windows binaries are currently unavailable. autohand --zit requires Git 2.38 or newer. Installing Zit does not initialize repositories.
On Windows, running install.sh from Git Bash, MSYS, or Cygwin delegates to the native PowerShell installer and preserves installation options. Autohand launched from Git Bash uses Bash for command tools; see shell settings to choose an executable explicitly.
The npm package includes checksum-verified Zit binaries for macOS and Linux on ARM64 and x64. npm install -g autohand-cli and bun install -g autohand-cli download them with the package, including when lifecycle scripts are disabled. Autohand uses ZIT_BIN, an existing zit on PATH, or its packaged binary, in that order. Rust and a separate Zit installation are not required. Native Windows Zit binaries are currently unavailable.
- Terminal-Native Agent: Understands your codebase and executes approved changes from the CLI
- Planning + Tools: Combines reasoning, file edits, shell commands, and web context in one loop
- Interactive REPL: Smooth terminal experience with file mentions, slash commands, and keyboard shortcuts
- Modular Skills: Extends workflows with specialized instruction packages
- Multi-Provider Support: Free Fantail model with an Autohand account, or 15+ providers incl. Anthropic, OpenAI, OpenRouter, Bedrock, DeepSeek, Azure, Vertex, xAI, Z.ai and local Ollama/llama.cpp/MLX
- Git Integration: Full version control support with automatic commits
- Cross-Platform: Works on macOS, Linux, and Windows
- Coming from Claude Code? Run
autohand import claudeto bring over your settings, skills, hooks, sessions and memory
Why Autohand Code CLI?
- No Context Switching: Stay in your terminal, no copy-paste needed
- Intelligent Planning: Understands your codebase before making changes
- Safe Execution: Prompts before risky operations unless you choose a different permission mode
- Extensible: Add skills, hooks, and provider configuration as your workflow grows
- Fast: Optimized for responsive interactive sessions and efficient tool execution
Quick Install (Recommended)
curl -fsSL https://autohand.ai/install.sh | bash
Manual Installation
# Clone and build
git clone https://github.com/autohandai/code-cli.git
cd code-cli
bun install
bun run build
# Install globally
bun add -g .
Requirements
- Node.js 22 or later (to run Autohand)
- Bun 1.0 or later, only to build from source (
curl -fsSL https://bun.sh/install | bash) - Git (for version control features)
- ripgrep (optional, for faster search)
Quick Start
# Interactive mode - start a coding session
autohand
# Command mode - run a single instruction
autohand -p "add a dark mode toggle to the settings page"
# With auto-confirmation
autohand -p "fix the TypeScript errors" -y
# Auto-commit changes after task completion
autohand -p "refactor the auth module" --auto-commit
Interactive Mode
Launch without arguments for a full REPL experience:
autohand
Features:
- Type
/for slash command suggestions - Type
@for file autocomplete (e.g.,@src/index.ts) - Type
$for skill autocomplete (e.g.,$frontend-design) - Type
!to run terminal commands (e.g.,! git status,! ls -la) - Large command results retain the first and last portions of each output stream, up to 1,048,576 characters, with an omission marker. The same limit applies to individual displayed lines; redirect output to a file when you need the complete result.
- Smart Paste: Paste any amount of code (5+ lines shows compact indicator, full content sent to LLM)
- Press
ESCto cancel in-flight requests - Press
Ctrl+Ctwice to exit - Press
Shift+Tabto cycle edit, plan, YOLO, and auto modes - Press
?to toggle keyboard shortcuts panel - Use
/goalsto open the goals view; pressCtrl+G(Cmd+Gon macOS) to toggle it open or closed - Press
Upto recall older typed messages andDownfor newer messages or your unfinished draft. In multiline drafts,Upmoves the cursor until it reaches the first visual row. - Use
/whatitypedto select a message from any working directory and load it into the composer for editing. The latest 200 submissions are saved locally in~/.autohand/typed-message-history.json(or yourAUTOHAND_HOME), starting when you use this feature. - Press
EnterorShift+Enterfor newlines in multi-line input
Command Mode (Non-Interactive)
Run single instructions for CI/CD, scripts, or quick tasks:
# Basic usage
autohand --prompt "add tests for the user service"
# Short form
autohand -p "fix linting errors"
# With options
autohand -p "update dependencies" --yes --auto-commit
# Dry run (preview changes without applying)
autohand -p "refactor database queries" --dry-run
# Stream lifecycle events as JSON Lines
autohand -p "review this diff" --output-format stream-json
# Equivalent stream alias, or write only the final result object
autohand -p "review this diff" --json stream
autohand -p "review this diff" --json local
--output-format stream-json and --json stream write one JSON object per
agent event to stdout. Events include thinking, tool_start, tool_end,
file_modified, result, and error. --json local suppresses intermediate
events and writes exactly one final result or error object to stdout.
CLI Options
| Option | Short | Description |
|---|---|---|
--prompt |
-p |
Run a single instruction in command mode |
--output-format stream-json |
Stream command lifecycle events as JSON Lines | |
--json |
Stream JSON Lines or write only the final JSON result (--json defaults to stream) |
|
--yes |
-y |
Auto-confirm risky actions |
--continue |
-c |
Resume the latest session in this folder (also with -p) |
--resume [id] |
-r |
Resume a saved session or open the folder picker |
--auto-commit |
Auto-commit changes after completing tasks | |
--dry-run |
Preview actions without applying mutations | |
--debug |
-d |
Enable debug output (verbose logging) |
--model |
Override the configured LLM model | |
--path |
Workspace path to operate in | |
--auto-skill |
Auto-generate skills based on project analysis | |
--unrestricted |
Run without approval prompts (use with caution) | |
--restricted |
Deny all dangerous operations automatically | |
--plan |
Start in read-only plan mode before the first prompt | |
--no-idle-logout |
Disable authenticated idle logout for long-running agent sessions | |
--config |
Path to config file | |
--temperature |
Sampling temperature for LLM | |
--thinking [level] |
Set thinking/reasoning depth (none, normal, extended) | |
--learn |
Run skill advisor non-interactively | |
--learn-update |
Re-analyze project and regenerate skills | |
--skill-install [name] |
Install a community skill | |
--project |
Install skill to project level (with --skill-install) | |
--permissions |
Display current permission settings and exit | |
--login |
Sign in to your Autohand Code account | |
--logout |
Sign out of your Autohand Code account | |
--sync-settings [bool] |
Enable/disable settings sync (default: false; explicit opt-in required) | |
--patch |
Generate git patch without applying changes | |
--output |
Output file for patch (default: stdout) | |
--mode |
Run mode: interactive (default), rpc, or acp | |
--acp |
Shorthand for --mode acp (Agent Client Protocol over stdio) | |
--teammate-mode |
Team display mode: auto, in-process, or tmux | |
--worktree [name] |
Run session in isolated git worktree (optional name) | |
--tmux |
Launch in a dedicated tmux session (implies --worktree) | |
--zit [intent] |
Run session in a disposable Zit workspace, recorded as a Zit change on exit | |
--auto-mode [prompt] |
Enable interactive auto-mode, or start standalone loop with inline task | |
--max-iterations |
Max auto-mode iterations (default: 50) | |
--completion-promise |
Completion marker text (default: "DONE") | |
--no-worktree |
Disable git worktree isolation in auto-mode | |
--checkpoint-interval |
Git commit every N iterations (default: 5) | |
--max-runtime |
Max runtime in minutes (default: 120) | |
--max-cost |
Max API cost in dollars (default: 10) | |
--interactive-on-complete |
After auto-mode ends, hand off to interactive mode (TTY only) | |
--setup |
Run the setup wizard to configure or reconfigure Autohand Code CLI | |
--about |
Show information about Autohand Code CLI | |
--add-dir |
Add additional directories to workspace scope (can be used multiple times) | |
--display-language |
Set display language (e.g., en, id, zh-cn, fr, de, ja) | |
--cc, --context-compact |
Enable context compaction (default: on) | |
--no-cc, --no-context-compact |
Disable context compaction | |
--search-engine |
Set web search provider (browser-profile, exa, google, brave, duckduckgo, parallel) | |
--sys-prompt |
Replace entire system prompt (inline string or file path) | |
--append-sys-prompt |
Append to system prompt (inline string or file path) | |
--yolo [pattern] |
Auto-approve tool calls matching pattern (e.g., allow:read,write or deny:delete) | |
--timeout |
Timeout in seconds for auto-approve mode | |
--settings |
Configure Autohand Code CLI settings (same as /settings in interactive mode) | |
--feedback |
Submit feedback | |
--browser |
Enable browser integration (same as /browser) | |
--no-browser |
Disable browser integration |
Native computer control commands:
| Command | Description |
|---|---|
autohand computer status [--json] |
Show Autohand Computer Use and MCP readiness |
autohand computer install [--force] |
Install or repair the pinned, verified native driver |
autohand computer doctor |
Check platform support and desktop permissions |
Configuration
Create ~/.autohand/config.json or use config.toml, config.yaml, or config.yml:
{
"provider": "openrouter",
"openrouter": {
"apiKey": "sk-or-...",
"model": "your-modelcard-id-here"
},
"workspace": {
"defaultRoot": ".",
"allowDangerousOps": false
},
"ui": {
"theme": "aurora",
"autoConfirm": false
}
}
Security & Permissions
Start with autohand --plan to investigate and plan before editing. For a one-shot plan, use autohand --plan --prompt "Plan a refactor of the authentication module". The first model request receives the plan instructions and read-only tools; mutating tool calls are blocked.
Interactive plans require an explicit acceptance decision, including with --yes or --unrestricted. One-shot and unattended plans remain pending review. Shift+Tab and /plan on|off still change the interaction mode. --plan cannot be combined with --yolo, --auto-mode, or --auto-commit.
Autohand Code CLI includes a permission system for sensitive operations:
- Interactive (default): Prompts for confirmation on risky actions
- Unrestricted (
--unrestricted): No approval prompts - Restricted (
--restricted): Denies all dangerous operations
Configure granular permissions in ~/.autohand/config.toml/yaml/json:
{
"permissions": {
"whitelist": ["run_command:npm *", "run_command:bun *"],
"blacklist": ["run_command:rm -rf *", "run_command:sudo *"]
}
}
Platform Support
- macOS
- Linux
- Windows
Security
Autohand Code CLI is designed with security in mind:
- User-Controlled Execution: Risky operations require approval unless you opt into a broader permission mode
- Permission System: Fine-grained control over what operations are allowed
- Local Processing: Your code never leaves your machine unless you choose
- Open Source: Transparent code that can be audited
OpenSeek - 广度求索: open-source TUI coding agent with multi-provider routing, MCP, LSP, and Plan/Agent/YOLO modes.
AdaL is an AI agent for video: launch films, product demos and UGC ads. This is the community home for the AdaL CLI. adalagent.ai
Open-source AI coding agent and agent runtime: one binary, any model, MCP-native. Runs in terminal, CI, or as a daemon.
