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

# Use Poolside with Ollama

> Run Poolside Agent CLI with models served by Ollama.

Use Ollama as a local model runtime for Poolside Agent CLI. Ollama can launch `pool` directly, or you can point `pool` at Ollama's OpenAI-compatible API.

For a guided setup that installs Ollama, pulls an open-weight Poolside model, and starts a local agent session, see [How to run a Poolside model locally with Ollama](https://docs.poolside.ai/resources/run-model-locally.md).

## Prerequisites

* You have Ollama installed. For installation options, see the [Ollama Quickstart](https://docs.ollama.com/quickstart).
* You have Poolside Agent CLI installed. See [Install Poolside Agent CLI](https://docs.poolside.ai/cli/install.md).
* You have a model available in Ollama.

## Steps

> [tab] Launch through Ollama
>
> 1. Open your project directory:
>
>    ```bash theme={null}
>    cd <project-path>
>    ```
>
> 2. Launch `pool` through Ollama:
>
>    ```bash theme={null}
>    ollama launch pool
>    ```
>
>    This opens Ollama's model selector.
>
>    To start with a specific model instead:
>
>    ```bash theme={null}
>    ollama launch pool --model <model-name>
>    ```
>
>    To pass flags to `pool`, add them after `--`:
>
>    ```bash theme={null}
>    ollama launch pool -- --help
>    ```
>
> 3. Send a prompt. You know the setup works when the agent responds using the model served by Ollama.

> [tab] Connect directly
>
> 1. Point `pool` at Ollama's local OpenAI-compatible endpoint:
>
>    ```bash theme={null}
>    POOLSIDE_STANDALONE_BASE_URL=http://localhost:11434/v1 \
>      POOLSIDE_API_KEY=ollama \
>      pool --model <model-name>
>    ```
>
>    Use any non-empty value for `POOLSIDE_API_KEY` when your local Ollama endpoint does not validate API keys.
>
> 2. Send a prompt. You know the setup works when the agent responds using the model served by Ollama.

## Related resources

* [How to run a Poolside model locally with Ollama](https://docs.poolside.ai/resources/run-model-locally.md)
* [Ollama's integration docs for pool](https://docs.ollama.com/integrations/pool)
* [Poolside Agent CLI](https://docs.poolside.ai/cli/pool.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.