crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Support OpenRelay as a native OpenAI-compatible LLM provider

Open prashant182 opened this issue 1 day ago • 2 comments

Feature Area

Integration with external tools

Is your feature request related to a an existing bug? Please link it here.

N/A

Describe the solution you'd like

Add OpenRelay as a native OpenAI-compatible provider, the same way openrouter, deepseek, cerebras, dashscope and deepinfra are in OPENAI_COMPATIBLE_PROVIDERS. Today LLM(model="openrelay/...") goes to LiteLLM, and without crewai[litellm] installed it fails with ImportError. It should work with OPENRELAY_API_KEY set:

llm = LLM(model="openrelay/deepseek-v4.1-flash")

Base URL is https://inference.openrelay.inc/v1, the key is OPENRELAY_API_KEY, and OPENRELAY_BASE_URL overrides the URL. OpenRelay model ids start with openrelay/ (openrelay/kimi-k3.1-pro, openrelay/deepseek-v4.1-flash, openrelay/glm-5.3-flash, openrelay/gemma-4-31b), so the provider should add that prefix when the name after the routing prefix leaves it out. Then the id as OpenRelay documents it works as the CrewAI model string.

The change is one registry entry, a few lines in llm.py, the CLI's provider tables, tests, and the docs accordion in en/ar/ko/pt-BR: the same shape as #7459.

Docs: https://docs.openrelay.inc/docs/inference/models, https://docs.openrelay.inc/docs/inference/chat-completions

Describe alternatives you've considered

custom_openai=True with base_url works today, but users must know the URL and can't use an openrelay/ prefix in agents.yaml. LiteLLM is an extra dependency.

Additional context

None.

Willingness to Contribute

Yes, I'd be happy to submit a pull request

prashant182 avatar Dec 01 '26 01:12 prashant182

Hi, I’m interested in implementing this. I plan to follow the existing DeepInfra integration from #7459: add the OpenRelay provider configuration and routing, update the CLI provider tables, add focused tests, and update the English, Arabic, Korean, and Brazilian Portuguese documentation. Is this feature approved for contribution, and may I work on it?

rshd123 avatar Dec 01 '26 16:12 rshd123

I’d also be interested in working on this if it’s still available. I’d follow the DeepInfra integration in #7459 to register OpenRelay as a native OpenAI-compatible provider, add the API key and base URL configuration, and update the CLI and docs. I’d also add tests to verify both model ID forms resolve to the same openrelay/-prefixed ID.

alanhuang05 avatar Dec 01 '26 19:12 alanhuang05