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

# Ollama

> A quick guide to setting up Ollama for local AI model execution with Sixth.

### 📋 Prerequisites

* Windows, macOS, or Linux computer
* Sixth installed in VS Code

### 🚀 Setup Steps

#### 1. Install Ollama

* Visit [ollama.com](https://ollama.com)
* Download and install for your operating system

<Frame>
  <img src="https://storage.googleapis.com/sixth_public_images/docs/assets/image%20(2)%20(1)%20(1).png" alt="Ollama download page" />
</Frame>

#### 2. Choose and Download a Model

* Browse models at [ollama.com/search](https://ollama.com/search)
* Select model and copy command:

  ```bash theme={null}
  ollama run [model-name]
  ```

<Frame>
  <img src="https://storage.googleapis.com/sixth_public_images/docs/assets/ollama-model-grab%20(2).gif" alt="Selecting a model in Ollama" />
</Frame>

* Open your Terminal and run the command:

  * Example:

    ```bash theme={null}
    ollama run llama2
    ```

<Frame>
  <img src="https://storage.googleapis.com/sixth_public_images/docs/assets/starting-ollama-terminal%20(2).gif" alt="Running Ollama in terminal" />
</Frame>

**✨ Your model is now ready to use within Sixth!**

#### 3. Configure Sixth

1. Open VS Code
2. Click Sixth settings icon
3. Select "Ollama" as API provider
4. Enter configuration:
   * Base URL: `http://localhost:11434/` (default value, can be left as is)
   * Select the model from your available options

<Frame>
  <img src="https://storage.googleapis.com/sixth_public_images/docs/assets/selecting-ollama-model-sixth%20(3).gif" alt="Configuring Sixth with Ollama" />
</Frame>

### ⚠️ Important Notes

* Start Ollama before using with Sixth
* Keep Ollama running in background
* First model download may take several minutes

### 🔧 Troubleshooting

If Sixth can't connect to Ollama:

1. Verify Ollama is running
2. Check base URL is correct
3. Ensure model is downloaded

Need more info? Read the [Ollama Docs](https://github.com/ollama/ollama/blob/main/docs/api.md).
