Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent from agno.integrations.discord import DiscordClient from agno.models.openai import OpenAIResponses basic_agent = Agent( name="Basic Agent", model=OpenAIResponses(id="gpt-5.2"), add_history_to_context=True, num_history_runs=3, add_datetime_to_context=True, ) discord_agent = DiscordClient(basic_agent) if __name__ == "__main__": discord_agent.serve()
Set up your virtual environment
uv venv --python 3.12 source .venv/bin/activate
Set your API keys
export OPENAI_API_KEY=xxx export DISCORD_BOT_TOKEN=xxx
Install dependencies
uv pip install -U agno openai discord.py
Run Agent
python cookbook/13_integrations/discord/basic.py
Was this page helpful?