Create any app you want with AI
Banana Code is a high-performance, terminal-based AI pair programmer. It combines the power of multiple state-of-the-art LLMs with a rich, interactive TUI and a robust tool-calling system to help you write, debug, and explore code without leaving your terminal.
#%%S#
?;+*??%
#*;;;+%?#
#?;:;+?S
#S%%?+;::;%
#?+::,,::;;*#
#*;::::,,,::*
%;;;::::,,,::#
?;;;;::::::::*
?;;;;;::::::::#
S;;;;;::::::::?
*;;;;;:::::::;
S;+;;;;:::::::?
?;;;;;::::::::#
*;;;;;:::::::;
+;;;;;:::::::;
*;;;;;:::::::;
?;;;;;;:::::::#
S;+;;;;::::::,?
+;;;;;;::::::;
?;+;;;;::::::,*
+;;;;;;:::::::%
S;;;;;;::::::::%
%;;;;;;::::::::%
%;;;;;;;::::::,*
%;;;;;;;::::::,;S
#+;;;;;;::::::::+#
?;;;;;;;::::::,:*#
S*;;;;;;;:::::::;%
# %;;;;;;;;:::::::*
#%*;;;;;;;::::::+#
#S# ## S*+;;;;::::;;;+
#S%*+;;;;;;*S
#S#SSSSSS%%%?%%%%S
While tools like Cursor provide great GUI experiences, Banana Code is built for developers who live in the terminal and want maximum flexibility.
- No Vendor Lock-in: Switch instantly between the best proprietary models (Gemini, Claude, OpenAI) and high-performance open-source models (Ollama Local, Ollama Cloud) mid-conversation.
- True Autonomy: With Plan & Execute mode and Self-Healing Error Loops, Banana Code doesn't just suggest code; it tries, fails, reads the errors, and fixes its own mistakes automatically.
- Terminal Native: It brings the power of full workspace awareness, web search, and surgical file patching directly to your CLI without forcing you to change your IDE.
- Multi-Provider Support: Switch between Google Gemini, Anthropic Claude, OpenAI, Mistral AI, Ollama Cloud, and Ollama (Local) effortlessly.
- Model Context Protocol (MCP): Connect Banana Code to any community-built MCP server (like SQLite, GitHub, Google Maps) to give your AI infinite new superpowers via
/beta. - Plan & Agent Modes: Use
/agentfor instant execution, or/planto make the AI draft a step-by-step implementation plan for your approval before it touches any code. - Hierarchical Sub-Agents: The main AI can spawn specialized "sub-agents" (Researchers, Coders, Reviewers) to handle complex tasks without polluting your main chat history.
- Self-Healing Loop: If the AI runs a command (like running tests) and it fails, Banana Code automatically feeds the error trace back to the AI so it can fix its own code.
- Agent Skills: Teach your AI specialized workflows. Drop a
SKILL.mdfile in your config folder, and the AI will automatically activate it when relevant. - Smart Context & Pruning: Use
@file/path.jsto instantly inject file contents, auto-feed your workspace, and use/cleanto instantly compress long chat histories to save tokens. - Web Research: Deep integration with DuckDuckGo APIs and Scrapers to give the AI real-time access to the internet.
- Persistent Sessions: All chats are auto-titled and saved. Use
/chatsfor a fully interactive menu to resume any past session. - Syntax Highlighting: Beautiful, readable markdown output with syntax coloring directly in your terminal.
Install Banana Code globally via npm:
npm install -g @banaxi/banana-codeOn your first run, Banana Code will walk you through a quick setup to configure your preferred AI providers:
bananaYou'll need your API keys handy for Gemini, Claude, or OpenAI (if not using the OAuth sign-in).
bananaTo continue where you left off, use the --resume flag with your session UUID:
banana --resume <uuid>While in a chat, use these special commands:
/provider: Switch AI provider (gemini, claude, openai, mistral, ollama_cloud, ollama)./model: Switch the active AI model on the fly./chats: Open an interactive menu to view and resume past auto-titled chat sessions./clean: Compress your current chat history into a dense summary to save tokens./context: View your current message count and estimated token usage./settings: Toggle UI features like syntax highlighting and auto-workspace feeding./plan&/agent: Toggle between Plan & Execute mode and standard Agent mode./beta: Enable experimental features like MCP Support and Sub-Agents./clear: Clear the current chat history./exitorCTRL+D: Save and exit the session.
Banana Code can assist you by:
execute_command: Running shell commands (git, npm, ls, etc.).read_file: Reading local source code.write_file: Creating or editing files.fetch_url: Browsing web documentation.search_files: Performing regex searches across your project.list_directory: Exploring folder structures.
Banana Code supports custom Agent Skills. Skills are like "onboarding guides" that teach the AI how to do specific tasks, use certain APIs, or follow your company's coding standards.
When the AI detects a task that matches a skill's description, it automatically activates the skill and loads its specialized instructions.
How to create a Skill:
- Create a folder in your config directory:
~/.config/banana-code/skills/my-react-skill/ - Create a
SKILL.mdfile inside that folder using this exact format:
---
name: my-react-skill
description: Use this skill whenever you are asked to build or edit a React component.
---
# React Guidelines
- Always use functional components.
- Always use Tailwind CSS for styling.
- Do not use default exports.- Type
/skillsin Banana Code to verify it loaded. The AI will now follow these rules automatically!
Banana Code supports the open standard Model Context Protocol, allowing you to plug in community-built servers to give your AI access to your databases, GitHub, Slack, Google Maps, and more.
- Enable MCP Support in the
/betamenu. - Create a configuration file at
~/.config/banana-code/mcp.json. - Add your servers. For example, to add the "fetch" and "math" tools using the test server:
{
"mcpServers": {
"everything": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-everything"]
}
}
}Restart Banana Code, and the AI will instantly know how to use these new tools natively!
Banana Code is built with transparency in mind:
- Approval Required: No file is written and no command is run without you saying "Allow".
- Local Storage: Your API keys and chat history are stored locally on your machine (
~/.config/banana-code/).
Made with 🍌 by banaxi
Banana Code is an independent open-source project and is not affiliated with, endorsed by, or sponsored by OpenAI, Google, Anthropic, or any other AI provider.
This tool provides an interface to access services you already have permission to use. Users are responsible for complying with the Terms of Service of their respective AI providers. Use of experimental or internal endpoints is at the user's own risk.