Skip to Content
shardreel
Reference

Settings and environment

Saved settings and environment variables.

Settings file

Settings are saved to ~/.clipforge/settings.json. The UI never shows saved API keys back to you.

FieldMeaning
llmDefault AI provider: none, gemini, openrouter, lmstudio or ollama
llm_modelDefault model name, applied to whichever provider is used
base_urlOptional OpenAI-compatible endpoint override
nicheDefault niche context
gemini_api_keyGemini key
openrouter_api_keyOpenRouter key

Environment variables

Variables can be set in the shell or in ~/.clipforge/.env.

VariableDefaultMeaning
GEMINI_API_KEYnoneGemini key
OPENROUTER_API_KEYnoneOpenRouter key
CLIPFORGE_LLM_MODELnoneFallback model when no other model is set
CLIPFORGE_LLM_BASE_URLnoneFallback endpoint override
CLIPFORGE_LLM_API_KEYnoneKey used for any provider, taking priority over the provider key
CLIPFORGE_ADDR127.0.0.1:8787Address the server listens on
CLIPFORGE_WEB_DIRweb/dist in the projectFolder of the built UI

Precedence

For keys: the settings file, then real environment variables, then ~/.clipforge/.env. For the model: the job's model field, then the settings file, then CLIPFORGE_LLM_MODEL, then the provider default.

Edit on GitHubSpotted a mistake? Suggest a change and open a pull request.

On this page