code-cli
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.
What is code-cli?
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.
Overview of code-cli
What it is
Autohand Code CLI is a terminal-native AI coding agent. It is open-source and licensed under Apache-2.0. It supports 15+ model providers, local models, or using your own API key. It includes a plan mode before making edits. It can import settings from Codex, Cursor, and Claude Code. The agent reads project context, plans changes, edits files, runs tools, and asks for approval before risky operations. It is designed for focused interactive sessions with minimal chrome, smooth Ink rendering, file mentions, slash commands, skills, permissions, provider switching, and session history.
Key features
- Terminal-Native Agent: Understands 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 including 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.
- Import from Claude Code: Run
autohand import claudeto bring over settings, skills, hooks, sessions and memory.
Use cases
- Planning and reflecting on codebase changes.
- Editing files and testing code.
- Automating repetitive engineering work.
- Running in local development, with an editor, or in CI/CD pipelines.
- Managing repository readiness and improvement candidates.
Getting started
Quick install (recommended): bash curl -fsSL https://autohand.ai/install.sh | bash Homebrew: bash brew install autohandai/code/autohand-code Manual installation from source: bash git clone https://github.com/autohandai/code-cli.git cd code-cli bun install bun run build bun add -g . Requirements: Node.js 22 or later, Bun 1.0 or later (to build from source), Git, and optionally ripgrep.
License and pricing
Licensed under Apache-2.0. Open source. Pricing is not stated beyond being open source.
Based on the project's public README and repository metadata.