Terminal-first AI coding agent — local, permission-aware, and multi-provider.
DeepCode operates locally with a permission model you control — read, write, shell, and dangerous operations each have configurable approval policies. Works with Anthropic, OpenAI, DeepSeek, Groq, Ollama, OpenRouter, and MCP.
npm install -g deepcode-ai
$ deepcode run "ship auth" --yes
reading workspace, tests, and git diff
✓ plan created with 4 permission-gated steps
✓ patched 3 files and updated focused tests
approval required: shell:test
✓ npm test -- auth/session.spec.ts
Ink-based terminal UI with real-time streaming, diff previews, approval flows, and Vim keybindings.
deepcode run for scripting and CI pipelines — fully automated task execution.
Anthropic, OpenAI, DeepSeek, Groq, Ollama, OpenRouter, OpenCode — with automatic failover and per-mode routing.
Filesystem read/write, shell, ripgrep search, git, lint, test runners, LSP symbols — all permission-gated.
Connect any Model Context Protocol server; tools appear automatically in the agent with server__ prefix.
Authenticate, browse issues, manage pull requests, and run AI code review on any PR from your terminal.
Auto-summarizes conversation history when approaching the model's context limit. Configurable token budgets with hard stops.
Path allowlist/blacklist, per-operation permission levels, approval gateway, audit logging, and secret redaction.
Answers greetings, trivial questions, and project discovery without calling an LLM — saving tokens and latency.
DeepCode acts on a real local repository, so safety is a first-class runtime concern.
Allowlist and blacklist enforcement for filesystem access.
read, write, gitLocal, shell, dangerous — each with configurable approval policy.
Sensitive operations require approval with diff previews before execution.
All tool calls are logged for review and debugging.
Known secrets are automatically redacted from logs and agent output.
Requires Node.js 22 or newer.
npm install -g deepcode-ai
or
pnpm add -g deepcode-ai
deepcode init
deepcode config set defaultProvider deepseek
deepcode config set providers.deepseek.apiKey "sk-..."
deepcode doctor
deepcode