> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.mor.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Brave Leo Integration

> How to integrate Morpheus Inference API with Brave Leo

# How To Integrate with Brave Leo

### What is Brave Leo?

Brave Leo is an AI assistant built directly into the Brave browser that provides privacy-first AI capabilities. It allows you to bring your own model, making it easy to integrate with the Morpheus Inference API.

<Note>
  Reference: [How to use Brave Leo AI with Venice API](https://venice.ai/blog/how-to-use-brave-leo-ai-with-venice-api-a-privacy-first-browser-ai-assistant)
</Note>

## Prerequisites

* Morpheus API Key
* Brave Installed (version >1.76.52)
* Morpheus Model Identified

## Step by Step

### Step 1: Download and Install Brave

Download and Install the Brave browser (version >1.76.52) through [brave.com](https://brave.com)

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/bravehome.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=1f7cbc68bb41d0e7b33482ad13c70200" alt="Brave homepage" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="1675" height="1113" data-path="images/brave/bravehome.png" />

### Step 2: Open Settings

Open Brave browser and Click the hamburger icon on the top right and then settings

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/bravesettings.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=e4ab5c3880c5dbb02ee8269e69ba1be7" alt="Brave settings" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="535" height="776" data-path="images/brave/bravesettings.png" />

### Step 3: Access Leo Settings

On the lefthand side click "Leo", and then go to the "Bring your own model" section

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/bravebyom.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=0cccce4a266ec2ea9b62d5f28eb23869" alt="Bring your own model" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="1578" height="873" data-path="images/brave/bravebyom.png" />

### Step 4: Configure Your Model

Click "Add new model" and start configuring the model:

* **Label:** MorpheusAI
* **Model request name:** Choose model from Morpheus Marketplace
* **Server endpoint:** `https://api.mor.org/api/v1/chat/completions`
* **Context size:** Customize or leave as 4000
* **API Key:** Morpheus API Key
* **System Prompt:** Customize or leave as default

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/bravemodels.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=ecd7b0c1e6400b36980141da40f5ae1f" alt="Configure model" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="737" height="1039" data-path="images/brave/bravemodels.png" />

### Step 5: Add the Model

Click add model at the bottom of the screen and go back to the "Bring your own model" section

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/braveselect.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=2080fe73d0edad57785e5247eb58f65d" alt="Select model" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="832" height="845" data-path="images/brave/braveselect.png" />

### Step 6: Set as Default

Find the "Default model for new conversations" box, and change it to MorpheusAI.

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/bravedefault.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=1af928944d0d89b095f802b26fbdf6e6" alt="Set default model" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="806" height="511" data-path="images/brave/bravedefault.png" />

### Step 7: Select in Leo Assistant

Go back to the main Leo Assistant page and click the 3 dots next to the "X" on the top bar, and select the MorpheusAI model if not already selected

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/leoselect.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=b2574e9ce84dfd8ad7a3b22262b55220" alt="Select Leo model" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="332" height="701" data-path="images/brave/leoselect.png" />

### Step 8: Start Using!

Go to a website and enter your prompt to use Brave Leo with Morpheus AI

<img src="https://mintcdn.com/morpheus/MFJp3X40_OEh22Bh/images/brave/usebrave.png?fit=max&auto=format&n=MFJp3X40_OEh22Bh&q=85&s=1fc8c8c4cff8755b76bd72d5a989cac8" alt="Use Brave Leo with Morpheus" style={{ borderRadius: '0.5rem', border: '2px solid rgba(16, 185, 129, 0.3)' }} width="1902" height="829" data-path="images/brave/usebrave.png" />

<Tip>
  You're now ready to use Morpheus AI within Brave Leo! Enjoy privacy-first AI assistance powered by the Morpheus Inference Marketplace.
</Tip>
