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

# Cerebras OSS GPT

> Run gpt-oss-120b on Cerebras with web search via WebSearchTools.

```python oss_gpt.py theme={null}
"""
Cerebras Oss Gpt
================

Cookbook example for `cerebras/oss_gpt.py`.
"""

from agno.agent.agent import Agent
from agno.models.cerebras.cerebras import Cerebras
from agno.tools.websearch import WebSearchTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    model=Cerebras(
        id="gpt-oss-120b",
    ),
    tools=[WebSearchTools()],
    markdown=True,
)

# Print the response in the terminal
agent.print_response("Whats happening in France?")

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

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

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno cerebras-cloud-sdk ddgs
```

**2. Export your Cerebras API key**

```bash Mac/Linux theme={null}
export CEREBRAS_API_KEY="your_cerebras_api_key_here"
```

```bash Windows theme={null}
$Env:CEREBRAS_API_KEY="your_cerebras_api_key_here"
```

**3. Run the example**

Save the code above as `oss_gpt.py`, then run:

```bash theme={null}
python oss_gpt.py
```

Full source: [cookbook/90\_models/cerebras/oss\_gpt.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/90_models/cerebras/oss_gpt.py)


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