Reactor AI — A self-hosted AI coding pipeline that runs on local models.

Setup Ollama Coding Assistant with Reactor AI

Reactor AI is a self-hosted AI coding assistant that uses Ollama models to ensure your code remains in your infrastructure. Follow this guide to get started with setting it up.

What You Need

To set up the Ollama coding assistant using Reactor AI, you will need a compatible machine that can run the local model. Ensure you have Python and necessary dependencies installed. Additionally, install Reactor AI from the official GitHub repository.

Installation Steps

First, clone the Reactor AI repository using `git clone https://github.com/reactorai/app.git`. Navigate to the directory with `cd app` and install dependencies by running `pip install -r requirements.txt`. Next, configure your environment variables in `.env`, specifying paths and other necessary settings. Finally, run the application with `uvicorn main:app --reload`.

Setting Up Ollama Models

Once Reactor AI is running, you can start setting up Ollama models. Use the `reactorai.models.setup()` command to install and configure your preferred model. Follow the prompts to download and integrate the model into your local environment.

Integration with Your Projects

To integrate Reactor AI with your coding projects, add it as a development dependency in your `requirements.txt` or `pyproject.toml`. Then, import and use the Ollama assistant within your codebase. For example, you can utilize its prompting capabilities to generate code snippets or receive suggestions during development.

Frequently asked questions

Do I need a specific machine configuration?

Yes, ensure your machine meets the minimum requirements for running Ollama models. Check the official documentation for detailed specifications.

Is Reactor AI free to use?

Reactor AI is open-source and available for free. While there are no direct costs, you will need a compatible machine and internet access to set it up.