GET STARTED / CONFIGURATION
Configuration
promptLM is a Spring Boot application — it picks up configuration from
environment variables and from application.yml.
Environment variables
The repository ships a .env.example in its root with the four
variables that the CLI and Studio expect.
| Variable | Purpose |
|---|---|
|
Base URL of the Git host’s REST API (GitHub or self-hosted Gitea). Used by the store to create and read remote repositories. See the endpoint table below. |
|
User or owner on the remote host. |
|
Personal access token with repo scope. |
|
Used by Spring AI’s OpenAI client for prompt execution. |
|
Important
|
A value of |
ANTHROPIC_API_KEY is also read by the Spring AI Anthropic client when
the model catalog routes a prompt to Claude.
REPO_REMOTE_ALLOW_LOOPBACK_HOST_ALIASES (optional, defaults to true)
controls whether loopback aliases are permitted when resolving the
remote URL — useful for local Gitea setups.
|
Note
|
Never commit a real PAT into |
Spring properties
Key properties read from apps/promptlm-cli/src/main/resources/application.yml:
| Property | What it controls |
|---|---|
|
|
|
Local directory under which prompt stores are created. Defaults to |
|
Mirror the env vars above for the remote store client. |
|
See env var above. |
LLM provider configuration
Spring AI configuration is wired under spring.ai.openai.api-key and
spring.ai.anthropic.api-key. To route through a LiteLLM gateway
instead, enable promptlm.gateway.litellm.enabled=true and follow the
configuration in the project README.