Nexus is a routing platform that provides endpoints for various Large Language Models through a unified API interface. Explore Nexus’s capabilities and documentation here.

Authentication

Nexus requires API keys for the underlying model providers. Set the appropriate environment variables for the models you plan to use:
export OPENAI_API_KEY=***
export ANTHROPIC_API_KEY=***

Example

Use Nexus with your Agent:
from agno.agent import Agent
from agno.models.nexus import Nexus

agent = Agent(model=Nexus(id="anthropic/claude-sonnet-4-20250514"), markdown=True)

# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story")

View more examples here.

Params

ParameterTypeDefaultDescription
idstr"openai/gpt-4"The specific model ID used for generating responses. Format typically follows "provider/model-name".
namestr"Nexus"The name identifier for the Nexus agent.
providerstr"Nexus"The provider of the model.
base_urlstr"http://localhost:8000/llm/v1/"The base URL for making API requests to the Nexus service.
Nexus also supports the params of OpenAI.