-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Problem (one or two sentences)
The CLI does not allow users to configure LiteLLM (litellm) as a provider using built-in flags or environment variables, even though backend engine support exists. Users cannot set LiteLLM endpoint, API key, or model from the CLI directly.
Context (who is affected and when)
Anyone running Roo Code CLI who wants to use an OpenAI-compatible LiteLLM endpoint, including for enterprise/private LLM proxy setups or local inference, is blocked. Only some providers are directly configurable from CLI options; litellm is not.
Desired behavior (conceptual, not technical)
CLI users should be able to run Roo Code CLI with --provider litellm and supply required LiteLLM-specific parameters (endpoint/baseURL, API key, model) via flags and/or standard environment variables, with parity to how OpenAI and OpenRouter are supported.
Constraints / preferences (optional)
Flag+env var mapping should use clear and consistent names. It should be possible to run LiteLLM locally without code changes, and ideally allow fallback defaults for local use (e.g., http://localhost:4000).
Request checklist
- I've searched existing Issues and Discussions for duplicates
- This describes a specific problem with clear context and impact
Roo Code Task Links (optional)
No response
Acceptance criteria (optional)
- CLI can launch using --provider litellm with correct model/apiKey/baseUrl flags or env vars
- Equivalent support for LiteLLM in CLI as is available for OpenAI/OpenRouter
- Good documentation for new flags/env vars in README and CLI help
Proposed approach (optional)
Introduce support in CLI for provider litellm, mapping CLI flags/env vars for litellmBaseUrl, litellmApiKey, litellmModelId. Default to http://localhost:4000 when not specified.
Trade-offs / risks (optional)
None anticipated; would improve flexibility for self-hosted/model-proxy scenarios without affecting existing providers.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status