An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
tailcallhq/forgecode
A terminal-based AI coding agent in Rust that works with many LLM providers, offering a TUI, one-shot CLI, and ZSH plugin modes.
Open-source alternative to:Claude Code
- Stars
- 7,637
- Forks
- 1,460
- Open issues
- 33
- Last commit
- 6 hours ago
What is it?
Forge is an AI coding agent that runs in your terminal. It can read and edit files in a project, run shell commands, and keep multi-step conversations going across a session. You can use it as an interactive TUI, as a one-shot command for scripts, or through a ZSH plugin that lets you send prompts with a `:` prefix from your shell prompt.
Forge supports a wide range of model providers, including Claude, GPT, Grok, Gemini, DeepSeek and OpenRouter, and provider credentials are managed with `forge provider login`. It ships with three built-in agents: `forge` for implementation, `sage` for read-only research, and `muse` for writing plans. Custom agents, skills, commands and `AGENTS.md` instructions can be added per project or globally.
The project also includes commit message generation, natural-language-to-shell-command suggestions, conversation management with export to JSON or HTML, MCP server integration, and optional semantic search over a codebase through an indexing server.
Key features
- 01Interactive TUI, one-shot CLI, and ZSH plugin usage modes
- 02Supports many LLM providers including Claude, GPT, Gemini and OpenRouter
- 03Built-in agents for implementation, read-only research and planning
- 04AI-generated git commit messages and natural-language shell command suggestions
- 05Saved conversations that can be resumed, cloned, and exported
- 06MCP server integration and custom skills, agents and commands
Use cases
- Making multi-file changes to a codebase from the terminal
- Asking questions about unfamiliar code or tracing how a feature works
- Generating commit messages and PR descriptions from a diff
- Running AI-assisted tasks inside scripts or CI-style pipelines
Quick start
- 1
Install Forge with the install script from the README
- 2
Log in to your AI provider
forge provider login - 3
Start Forge
forge
Things to know
- Requires credentials or an API key from an AI provider to be useful.
- Installation relies on a curl-to-shell install script.
Topics
FAQ
- What is forgecode?
- A terminal-based AI coding agent in Rust that works with many LLM providers, offering a TUI, one-shot CLI, and ZSH plugin modes. Forge is an AI coding agent that runs in your terminal. It can read and edit files in a project, run shell commands, and keep multi-step conversations going across a session. You can use it as an interactive TUI, as a one-shot command for scripts, or through a ZSH plugin that lets you send prompts with a `:` prefix from your shell prompt.
- Is forgecode free to use? What license does it have?
- forgecode is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is forgecode still maintained?
- Actively maintained. The last commit to forgecode was on Oct 21, 2026.
- What can I use forgecode for?
- Making multi-file changes to a codebase from the terminal Asking questions about unfamiliar code or tracing how a feature works Generating commit messages and PR descriptions from a diff Running AI-assisted tasks inside scripts or CI-style pipelines
- How do I install forgecode?
- Install Forge with the install script from the README Log in to your AI provider: forge provider login Start Forge: forge
- Where can I get forgecode?
- The source code and installation instructions are on GitHub: https://github.com/tailcallhq/forgecode
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A lightweight coding agent from OpenAI that runs locally in your terminal to help you write and work on code.
Open-source Rust coding agent for the terminal that edits files, runs commands and works with 40+ model providers, including local models.
Grok Build is a terminal AI coding agent from SpaceXAI with a full-screen TUI that edits files, runs shell commands and searches the web.
Open-source recursive coding agent in Rust with a persistent Python workspace, child agents, and support for multiple model providers.
A CLI-first open-source AI coding agent runtime that works with any model via MCP tools, interactively, piped, as a daemon, or over WebSocket/ACP.