Code

cookbook/tools/brandfetch_tools.py
from agno.agent import Agent
from agno.tools.brandfetch import BrandfetchTools

agent = Agent(
    instructions=[
        "You are a brand research assistant that helps find brand information",
        "Use Brandfetch to retrieve logos, colors, and other brand assets",
        "Provide comprehensive brand information when requested",
    ],
    tools=[BrandfetchTools()],
    markdown=True,
)

agent.print_response("Find brand information for Apple Inc.")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
python3 -m venv .venv
source .venv/bin/activate
2

Set your API keys

export BRANDFETCH_API_KEY=your-brandfetch-api-key
export OPENAI_API_KEY=xxx
3

Install libraries

pip install -U httpx openai agno
4

Run Agent

python cookbook/tools/brandfetch_tools.py