There are two ways to control the AI model of your agents running on xpander.Centrally Managed - xpander-provided API keys to the Model provider and model ID you select in the Agent Workbench (recommended).Bring Your Own Model - Use your own API keys with any LLM provider client directly in the code.
When you configure the model provider and model name in the Agent Workbench UI, xpander automatically provides the appropriate native client class to your agent at runtime, handling all the provider-specific setup and configuration for you.
Copy
Ask AI
from xpander_sdk import Backendfrom agno.agent import Agent, OpenAIChatbackend = Backend()agno_agent = Agent(**backend.get_args(override={'model': OpenAIChat(api_key='your-openai-key')}))agno_agent.print_response(message="What's your role?")