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

# Ollama Cloud

> Run an Agno agent against Ollama Cloud's hosted gpt-oss:120b-cloud model and stream the response.

## Code

```python ollama_cloud.py theme={null}
from agno.agent import Agent
from agno.models.ollama import Ollama

agent = Agent(
    model=Ollama(id="gpt-oss:120b-cloud"),
)

agent.print_response("What is the capital of France?", stream=True)
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set up Ollama Cloud API Key">
    Sign up at [ollama.com](https://ollama.com) and get your API key, then export it:

    ```bash theme={null}
    export OLLAMA_API_KEY=your_api_key_here
    ```
  </Step>

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U ollama agno
    ```
  </Step>

  <Step title="Run Agent">
    Save the code above as `ollama_cloud.py`, then run:

    ```bash theme={null}
    python ollama_cloud.py
    ```
  </Step>
</Steps>

## Key Features

* **No local setup required**: Models run on Ollama's hosted infrastructure.
* **Automatic configuration**: When `api_key` is set, the host defaults to `https://ollama.com`.
* **Model selection**: See available cloud models in the [Ollama library](https://ollama.com/library).
