crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Native LLMTR provider (OpenAI-compatible gateway)

Open knowhycodata opened this issue 1 week ago • 1 comments

Feature Area

Core functionality

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

No.

Describe the solution you'd like

Add LLMTR as a native OpenAI-compatible provider, the same way DeepInfra was added. LLMTR is an OpenAI-compatible gateway at https://llmtr.com/v1. It serves models hosted in Turkey (llmtr/... ids) and routes other models (for example anthropic/claude-sonnet-5) to their vendors.

With this change, LLM(model="llmtr/llmtr/qwen3-8-27b") or LLM(model="anthropic/claude-sonnet-5", provider="llmtr") would use the native OpenAI client with LLMTR_API_KEY, and LLMTR_BASE_URL as an optional override. LiteLLM would not be needed.

The change is one ProviderConfig entry plus the routing tables in llm.py, the CLI key prompt, tests and docs. I have it ready and can open a PR that references this issue.

Describe alternatives you've considered

LLM(model="openai/<id>", base_url="https://llmtr.com/v1", api_key=...) works, but it needs the base URL in every project, and the openai/ prefix hides which gateway is used.

Additional context

CONTRIBUTING requires the llm-generated label on issues and PRs prepared with a coding assistant. This issue was prepared that way and reviewed by me. I cannot set labels as an outside contributor; please apply llm-generated.

Willingness to Contribute

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

knowhycodata avatar Nov 20 '26 11:11 knowhycodata

Thanks for reaching out! This request is a better fit for the CrewAI Community Tools repository.

Please open an issue there and submit any corresponding pull request there as well.

github-actions[bot] avatar Nov 20 '26 13:11 github-actions[bot]