# keen-code

> keen-code is an open-source agent for coding. Lean terminal coding agent in Go that works with many LLM providers. It is available on CLI, Linux, macOS, Windows and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, Self-hosted
- **Website:** https://mochow13.github.io/keen-code/
- **Repository:** https://github.com/mochow13/keen-code
- **GitHub stars:** 95
- **License:** MIT
- **Categories:** [coding](https://ai-powered.com/categories/coding-agents)
- **Listing updated:** 2026-12-01

## About

Keen Code runs in your terminal and works through software tasks inside the project you launch it from. It reads and edits files, searches code, runs shell commands and fetches web pages, asking permission before touching sensitive paths. Switching between providers such as Anthropic, OpenAI, Gemini, DeepSeek and Amazon Bedrock is done with a slash command, so you can pick a model per task without changing tools.

The design favours a small harness. Between turns the agent keeps compact tool summaries rather than raw outputs, which keeps prompts short, and you can opt into full tool history for a session when exact earlier results matter. Its MCP support exposes each connected server as a skill with a tool table and schemas loaded on demand, and subagents can take up to ten bounded tasks in parallel.

It suits developers who want a coding agent they can read and configure from markdown and TOML-style files, and who want to script it in headless mode with JSON output.

## Features

- **Multi-provider model switching:** Change between eleven model providers at runtime with the /model command.
- **Parallel subagents:** Delegate up to ten bounded tasks to subagents that run at the same time and merge results.
- **Skill-driven MCP servers:** Each connected MCP server becomes a skill with a tool table and schemas loaded on demand.
- **Hash-anchored file edits:** Edits reference line hashes and are applied atomically, rejecting stale anchors.
- **Permission guards:** File operations are checked against path rules, and sensitive paths require approval.
- **Compact cross-turn memory:** Keeps summaries of tool runs between turns instead of raw outputs, with an option to retain full history.
- **Headless mode:** Run a single non-interactive turn with JSON output for scripts.

## Good for

- Explaining an unfamiliar codebase and pointing out risky files before a change
- Implementing and reviewing changes to a Go or other software project from the terminal
- Running parallel research, implementation and review subtasks on one repository
- Connecting internal tools over MCP so the agent can query them during coding
- Running scripted coding tasks in CI-style jobs with JSON output

## FAQ

### How do I install Keen Code?

Install globally with npm install -g keen-code, or use the install script from the project repository. You can also run it without installing via npx keen-code.

### Which model providers are supported?

Anthropic, OpenAI, Codex via ChatGPT OAuth, Gemini, Kimi, DeepSeek, GLM, MiniMax, OpenCode Go, Yolo-Auto and Amazon Bedrock.

### What license is keen-code under?

Keen Code is released under the MIT license.

### Can I use keen-code without an interactive session?

Yes. The keen run command performs a non-interactive turn and can output JSON.

### Is keen-code free?

Yes. keen-code is open source, so you can use and self-host it for free.

### What are the best alternatives to keen-code?

The closest alternatives to keen-code are opencode, agenc-core, qwen-code, code-assistant and cline.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [opencode](https://ai-powered.com/agents/opencode-2): opencode is a freemium open-source agent for coding.
- [agenc-core](https://ai-powered.com/agents/agenc-core): agenc-core is an open-source agent for coding.
- [qwen-code](https://ai-powered.com/agents/qwen-code): qwen-code is an open-source agent for coding.
- [code-assistant](https://ai-powered.com/agents/code-assistant-2): code-assistant is an open-source agent for coding.
- [cline](https://ai-powered.com/agents/cline): cline is a freemium open-source agent for coding.
- [openclaude](https://ai-powered.com/agents/openclaude): openclaude is an open-source agent for coding.
- [orca-agent](https://ai-powered.com/agents/orca-agent): orca-agent is an open-source agent for coding.
- [munder-difflin](https://ai-powered.com/agents/munder-difflin): munder-difflin is an open-source agent for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/keen-code
