
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
autohand-cli
Advanced tools
Affected versions:
Autohand Code CLI is a fast, terminal-native AI coding agent for planning, editing, testing, and automating software work.
A fast, terminal-native AI coding agent for planning, 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.

curl -fsSL https://autohand.ai/install.sh | bash
# Clone and build
git clone https://github.com/autohandai/cli.git
cd cli
bun install
bun run build
# Install globally
bun add -g .
curl -fsSL https://bun.sh/install | bash)# 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" -c
Use Autohand Code CLI directly in your favorite editor:
Install the extension from the VS Code Marketplace or via command line:
code --install-extension AutohandAI.vscode-autohand
Install from the Zed Extensions marketplace.
Developers can also build on the same CLI-backed agent runtime through the Code Agent SDK. Use it when you want Autohand Code CLI capabilities inside your own tools, services, workflows, or editor integrations.
The Agent SDK is available in multiple beta language packages. Use the same CLI-backed SDK model from another programming language:
Launch without arguments for a full REPL experience:
autohand
Features:
/ for slash command suggestions@ for file autocomplete (e.g., @src/index.ts)$ for skill autocomplete (e.g., $frontend-design)! to run terminal commands (e.g., ! git status, ! ls -la)ESC to cancel in-flight requestsCtrl+C twice to exitShift+Tab to toggle plan mode? to toggle keyboard shortcuts panelEnter or Shift+Enter for newlines in multi-line inputRun 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
| Option | Short | Description |
|---|---|---|
--prompt <text> | -p | Run a single instruction in command mode |
--yes | -y | Auto-confirm risky actions |
--auto-commit | -c | Auto-commit changes after completing tasks |
--dry-run | Preview actions without applying mutations | |
--debug | -d | Enable debug output (verbose logging) |
--model <model> | Override the configured LLM model | |
--path <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 | |
--config <path> | Path to config file | |
--temperature <value> | 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: true for logged users) | |
--patch | Generate git patch without applying changes | |
--output <file> | Output file for patch (default: stdout) | |
--mode <mode> | Run mode: interactive (default), rpc, or acp | |
--acp | Shorthand for --mode acp (Agent Client Protocol over stdio) | |
--teammate-mode <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) | |
--auto-mode [prompt] | Enable interactive auto-mode, or start standalone loop with inline task | |
--max-iterations <n> | Max auto-mode iterations (default: 50) | |
--completion-promise <text> | Completion marker text (default: "DONE") | |
--no-worktree | Disable git worktree isolation in auto-mode | |
--checkpoint-interval <n> | Git commit every N iterations (default: 5) | |
--max-runtime <m> | Max runtime in minutes (default: 120) | |
--max-cost <d> | 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 <path...> | Add additional directories to workspace scope (can be used multiple times) | |
--display-language <locale> | 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 <provider> | Set web search provider (google, brave, duckduckgo, parallel) | |
--sys-prompt <value> | Replace entire system prompt (inline string or file path) | |
--append-sys-prompt <value> | 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 <seconds> | Timeout in seconds for auto-approve mode | |
--settings | Configure Autohand Code CLI settings (same as /settings in interactive mode) | |
--feedback | Submit feedback | |
--chrome | Enable Chrome browser integration (same as /chrome) | |
--no-chrome | Disable Chrome browser integration |
Skills are modular instruction packages that extend Autohand Code CLI with specialized workflows. They work like on-demand AGENTS.md files for specific tasks.
# List available skills
/skills
# Activate a skill
/skills use changelog-generator
# Create a new skill interactively
/skills new
# Auto-generate project-specific skills
autohand --auto-skill
Analyze your project and generate tailored skills automatically:
$ autohand --auto-skill
Analyzing project structure...
Detected: typescript, react, nextjs, testing
Platform: darwin
Generating skills...
✓ nextjs-component-creator
✓ typescript-test-generator
✓ changelog-generator
✓ Generated 3 skills in .autohand/skills
Skills are discovered from:
~/.autohand/skills/ - User-level skills<project>/.autohand/skills/ - Project-level skillsSee Agent Skills Documentation for creating custom skills.
| Command | Description |
|---|---|
/help | Display available commands |
/? | Alias for /help |
/quit | Exit the session |
/model | Switch LLM models |
/new | Start fresh conversation |
/clear | Clear conversation history |
/undo | Revert last changes |
/session | Show current session details |
/sessions | List past sessions |
/resume | Resume a previous session |
/memory | View/manage stored memories |
/init | Create AGENTS.md file |
/agents | List sub-agents |
/agents-new | Create new agent via wizard |
/skills | List and manage skills |
/skills new | Create a new skill |
/skills use | Activate a skill |
/skills install | Install a community skill |
/skills search | Search for skills |
/skills trending | List trending skills |
/skills remove | Remove an installed skill |
/learn | Get skill recommendations |
/feedback | Send feedback |
/formatters | List code formatters |
/lint | List code linters |
/completion | Generate shell completion scripts |
/export | Export session to markdown/JSON/HTML |
/status | Show workspace status |
/usage | Show usage dashboard (usage_v2) |
/login | Authenticate with Autohand Code API |
/logout | Sign out |
/permissions | Manage tool permissions |
/hooks | Manage git hooks |
/features | Toggle feature switches |
/settings | View configuration settings |
/theme | Change UI theme |
/language | Change display language |
/cc | Toggle context compaction |
/search | Search the web |
/automode | Manage auto-mode |
/goal | Set or review the current session goal |
/go | Pair this session with the Autohand Code iOS app |
/sync | Sync settings across devices |
/add-dir | Add additional workspace directory |
/plan | Create a task plan |
/about | Show information about Autohand Code CLI |
/ide | Open in IDE |
/history | View command history |
/mcp | Manage MCP servers |
/mcp install | Install community MCP servers |
/team | Manage team collaboration |
/tasks | List team tasks |
/message | Send team message |
/import | Import data from other agents |
/repeat | Repeat previous actions |
/chrome | Chrome browser integration |
/review | Code review |
Autohand Code CLI includes 40+ tools for autonomous coding:
read_file, write_file, append_file, apply_patch, search, search_replace, semantic_search, list_tree, create_directory, delete_path, rename_path, copy_path
git_status, git_diff, git_commit, git_add, git_branch, git_switch, git_merge, git_rebase, git_cherry_pick, git_stash, git_fetch, git_pull, git_push, auto_commit
run_command, custom_command, add_dependency, remove_dependency
plan, todo_write, save_memory, recall_memory
tools_registry - List all available tools with descriptions.
tool_search - Search tools by capability, name, or description.
create_meta_tool - Create reusable user- or project-scoped shell-backed tools that load in future sessions.
notebook_cell_edit - Edit Jupyter notebook cells (code/markdown insert, delete, replace).
team_create, team_list, task_create, task_list, task_update, task_set_owner - Multi-agent team coordination.
spawn_subagent - Delegate tasks to focused agents to keep the main context window clean.
use_skill, sleep - Activate skills or pause execution.
screenshot, navigate, get_page_content, click, type_input, select_dropdown - Chrome browser integration.
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": "dark",
"autoConfirm": false
}
}
| Provider | Config Key | Notes |
|---|---|---|
| OpenRouter | openrouter | Access to Claude, GPT-4, Grok, etc. |
| LLMGateway | llmgateway | Direct Claude API access |
| OpenAI | openai | GPT-4 and other models |
| AWS Bedrock | bedrock | Bedrock Converse and OpenAI-compatible modes |
| DeepSeek | deepseek | DeepSeek V4 Flash, V4 Pro, reasoning |
| Ollama | ollama | Local models |
| llama.cpp | llamacpp | Local inference |
| MLX | mlx | Apple Silicon optimized |
| Z.ai | zai | High-performance inference |
Sessions are auto-saved to ~/.autohand/sessions/:
# Resume via command
autohand resume <session-id>
# Or in interactive mode
/resume
Autohand Code CLI supports Entire for session checkpointing. Entire captures your coding sessions -- prompts, file changes, and token usage -- as git-backed checkpoints that you can rewind to, review, and share.
# Install hooks in this repository
entire enable --agent autohand-code
# Check status
entire status
# Remove hooks
entire disable --agent autohand-code
Once enabled, Entire works automatically through the Autohand Code CLI hooks system. No changes to your workflow are needed. See the Entire Integration Guide for setup details and troubleshooting.
Autohand Code CLI includes a permission system for sensitive operations:
--unrestricted): No approval prompts--restricted): Denies all dangerous operationsConfigure granular permissions in ~/.autohand/config.toml/yaml/json:
{
"permissions": {
"whitelist": ["run_command:npm *", "run_command:bun *"],
"blacklist": ["run_command:rm -rf *", "run_command:sudo *"]
}
}
Telemetry is disabled by default. Opt in to help improve Autohand Code CLI:
{
"telemetry": {
"enabled": true
}
}
When enabled, Autohand Code CLI collects anonymous usage data (no PII, no code content). See Telemetry Documentation for details.
The backend API is available at: https://github.com/autohandai/api
# Install dependencies
bun install
# Development mode
bun run dev
# Build
bun run build
# Type check
bun run typecheck
# Run tests
bun run test
FROM oven/bun:1
WORKDIR /app
COPY . .
RUN bun install && bun run build
CMD ["node", "dist/index.js"]
docker build -t autohand .
docker run -it autohand
We welcome contributions! Please read our Contributing Guide for details on how to get involved.
Installation fails: Make sure you have Bun installed and up to date.
Permission denied: Check your file permissions and try running with appropriate privileges.
Model not working: Verify your API key and model configuration in ~/.autohand/config.toml/yaml/json.
Autohand Code CLI is designed with security in mind:
Apache License 2.0 - Free for individuals, non-profits, educational institutions, open source projects, and companies with ARR under $5M. See LICENSE and COMMERCIAL.md for details.
Ready to get started? Run autohand in your terminal and start a coding session.
FAQs
Autohand Code CLI is a fast, terminal-native AI coding agent for planning, editing, testing, and automating software work.
The npm package autohand-cli receives a total of 3,953 weekly downloads. As such, autohand-cli popularity was classified as popular.
We found that autohand-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.