forgecode
AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models
Forge is a command-line AI coding assistant that reads your project files, writes code changes, and runs commands in your terminal. It connects to over 300 AI models including Claude, GPT, and Gemini.
Forge is a coding assistant that runs in your terminal. You type questions or instructions in plain language, and it reads your project files, writes code changes, runs commands, and explains what it is doing, all without leaving the command line. It is aimed at developers who want AI help inside the tool they already use rather than switching to a separate web interface.
The tool connects to AI models from multiple providers, including Claude, GPT, Grok, Deepseek, and Gemini, with support for over 300 models in total. You set up your credentials once through an interactive login step, then choose which provider and model to use. You can switch providers at any time through configuration.
Forge has three ways to use it. The first is an interactive session where you open a persistent conversation, ask questions back and forth, and Forge maintains context about your project the whole time. The second is a one-shot mode where you pass a single instruction from the command line and Forge exits when done, useful for scripting or quick tasks. The third is a shell plugin mode for the Zsh terminal shell, where commands prefixed with a colon character let you attach files, manage conversation history, integrate with Git, and trigger saved workflows called skills, all without leaving your shell.
Forge can read your codebase, explain how existing code works, suggest and apply changes, help resolve Git conflicts, review files for problems, and generate commit messages. It also has a sandbox mode that creates an isolated copy of your project in a separate branch so experimental changes do not affect your main work.
The project is open source and built in Rust. Installation is a single curl command that runs a setup script. On first run it walks you through connecting an API key for whichever AI provider you want to use. The full README is longer than what was shown.
Where it fits
- Ask AI to explain and modify code in your project without leaving the terminal or switching to a browser tab
- Script one-shot code generation or review tasks with a single command piped into your build pipeline
- Use the Zsh shell plugin to attach files, manage chat history, and trigger saved AI workflows without leaving your shell