Rho is a terminal-based AI agent powered by Google Gemini that helps you understand and modify codebases.
- Chat with Rho about your code to understand how it works
- Ask Rho to explore your codebase and explain code structure
- Create new files with Rho's help
- Make edits to existing files
- Works in any directory on your system
Install Rho globally to use it from any directory:
# Clone the repository
git clone https://github.com/yourusername/rho-agent.git
cd rho-agent
# Install dependencies
npm install
# Build the project
npm run build
# Install globally
npm install -g .
Rho requires a Google API key to function. You can either:
-
Create a
.rho-agent.env
file in your home directory:GOOGLE_API_KEY=your_api_key_here
-
Set the environment variable before running:
export GOOGLE_API_KEY=your_api_key_here
-
Create a
.env
file in the directory where you run Rho:GOOGLE_API_KEY=your_api_key_here
Once installed globally, simply run rho
in any directory:
cd your-project
rho
Rho will start analyzing your code and answering your questions.
To work on Rho itself:
# Clone the repository
git clone https://github.com/yourusername/rho-agent.git
cd rho-agent
# Install dependencies
npm install
# Run in development mode
npm run dev