export PROMPTLM_GATEWAY_LITELLM_ENABLED=true
INTEGRATIONS / LLM PROVIDERS
LLM providers
promptLM routes prompt execution through Spring AI by default. Two providers ship with the CLI distribution: OpenAI and Anthropic. For everything else, enable the LiteLLM gateway module, which fronts a long tail of providers behind an OpenAI-compatible API.
Default providers (Spring AI)
The CLI’s application.yml wires Spring AI’s OpenAI and Anthropic
clients to the standard environment variables:
| Spring property | Reads from |
|---|---|
|
|
|
|
Routing between OpenAI and Anthropic is driven by the vendor and
model fields on the spec’s request — see
Request types.
LiteLLM gateway (opt-in)
The promptlm-execution-litellm module fronts LiteLLM as a
self-managed Docker container and routes prompts through it as an
OpenAI-compatible proxy. Disabled by default.
Enable with:
Or in application.yml:
promptlm:
gateway:
litellm:
enabled: true
Properties
All keys are nested under promptlm.gateway.litellm.
| Property | Default | Purpose |
|---|---|---|
|
|
Master switch for the LiteLLM gateway. |
|
|
LiteLLM Docker image tag. Used to compose |
|
Base URL where LiteLLM is exposed. |
|
|
|
Prompt |
|
empty map |
Mapping from promptLM model id to LiteLLM route. |
|
empty map |
Extra environment variables passed to the LiteLLM container. |
Docker container management
Nested under promptlm.gateway.litellm.docker:
| Property | Default | Purpose |
|---|---|---|
|
|
Whether promptLM manages the container’s lifecycle. |
|
(derived from |
Explicit image reference. Must use an immutable tag or digest — no |
|
|
Container name when promptLM spawns LiteLLM. |
|
|
Host port to expose. |
|
(none) |
Optional Docker network to attach to. |
|
|
How long to wait for LiteLLM readiness. |
|
|
Path queried for readiness checks. |
Model discovery
Nested under promptlm.gateway.litellm.discovery:
| Property | Default | Purpose |
|---|---|---|
|
|
Pull the model list from LiteLLM at runtime. |
|
|
How long the discovered list is cached. |
|
|
Path queried to list available models. |