Skip to content
AgentOpen-source agent

keen-code

Lean terminal coding agent in Go that works with many LLM providers

keen-code is an open-source agent for coding. It is available on CLI, Linux, macOS, Windows and Self-hosted.

Pricing
Open source
Platforms
CLI, Linux, macOS
GitHub stars
95
Last commit
Language
Go
License
MIT

Similar agents

About keen-code

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.

What it does

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

Pricing

Open source

Free and open source under the MIT license; you pay your model providers directly.

Prices change. Check mochow13.github.io before you buy.

keen-code 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.