Skip to content

newrev-io/newrev

Repository files navigation

Newrev

Newrev is the web UI for terminal-based AI coding agents. Run your favorite open-source AI coding agent in your browser.

We started by supporting aider and plan to integrate codex and plandex in the future.


Demo

demo

Features

  • Chat Modes: Switch between Ask, Context, and Chat modes to suit your workflow.
  • Basic IDE Features: File explorer, read-only file viewer, and search functionality.
  • Self-Hosted Ollama Support: Seamlessly work with Ollama in a self-hosted environment.
  • Broad AI Model Support: Compatible with Claude, OpenAI, and Deepseek models.
  • Live Preview: Real-time live preview for web applications.

Why a Browser UI?

We built Newrev as a browser-based interface because it offers several key benefits for AI-assisted coding:

Lightweight: Newrev runs as a lightweight web app, while the heavy work is handled by terminal-based AI agents. This keeps your computer fast and responsive, using less resources.

Portability, zero-setup: Thanks to its architecture, Newrev is designed to be capable of support cloud-based setups. This unlocks features as coding with just a link, no installation required and access your environment from any device.

Interface customization: Unlike IDE plugins or IDE forks, a browser UI lets us design custom layouts that match how each AI agent works.

Experimental Disclaimer

Newrev is an experimental project currently in active development. It's not yet stable, so you might encounter bugs, incomplete features, or breaking changes as we evolve. We're building this in the open with the community and truly welcome:

Bug reports Feature requests Pull requests Good vibes! Help us improve by opening issues or submitting pull requests. Check out our Contributing section for more details on how you can help.

Usage

Once the installation is complete, you will have two new commands (newrev-client and newrev-run) available in your terminal.

  1. Run the Backend: Open a terminal window and:

    Navigate to the root of the GitHub project you want newrev to work on:

    cd ~/Documents/my-awesome-repo

    Run the backend with one of these options:

    # DeepSeek
    newrev-run --model deepseek --api-key deepseek=<api-key>
    
    # Claude 3.7 Sonnet
    newrev-run --model sonnet --api-key anthropic=<api-key>
    
    # o3-mini
    newrev-run --model o3-mini --api-key openai=<api-key>
    
    # Ollama
    export OLLAMA_API_BASE=http://127.0.0.1:11434
    newrev-run --model ollama_chat/<model>
    # Example: newrev-run --model ollama_chat/llama2

    Keep this new terminal window open; it will show the backend's output. To stop the backend, press Ctrl+C.

  2. Start the Frontend UI: Open a NEW terminal window and run:

    newrev-client

    You can now open your web browser to: http://localhost:3000


Requirements


🛠️ Installation Guide

MAC & LINUX Installation using script

  1. Clone the repository: Open your terminal and clone the repository to your desired location.
git clone git@github.com:newrev-io/newrev.git
  1. Navigate into the cloned directory:
cd newrev
  1. Make the installation script executable and run it: This script will install uv (a fast Python package manager), set up the Python virtual environment, install backend dependencies, and install Node.js frontend dependencies.
chmod +x install.sh
./install.sh
  1. Important Note for Linux Users (if newrev-run / newrev-client are not found): The install.sh script places helper commands in ~/.local/bin. If your shell (Bash or Zsh) doesn't automatically include this directory in its PATH for new sessions, you'll need to add it.

For Bash users:

Edit ~/.bashrc:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

For Zsh users: Edit ~/.zshrc:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

After performing these steps, close and reopen your terminal, or source your respective shell configuration file.

WINDOWS Installation

For Windows users, we recommend using Git Bash or Windows Subsystem for Linux (WSL) to follow the Mac & Linux instructions, as the install.sh script is a Bash script.

Using Git Bash:

  1. Install Git for Windows: This includes Git Bash.
  2. Open Git Bash.
  3. Follow the MAC & LINUX steps above.

Using Windows Subsystem for Linux (WSL):

  1. Install WSL: Follow Microsoft's official guide to install WSL and a Linux distribution (e.g., Ubuntu).
  2. Open your WSL terminal.
  3. Install git, npm, node, python3, within your WSL environment if they are not already present:
sudo apt update && sudo apt install git npm nodejs python3 rsync
  1. Follow the MAC & LINUX steps above.

Contributing

We're just getting started. Contributions, ideas, and PRs are welcome! Feel free to open an issue, create a pull request or suggest features.