Guides
The env file
Keep API keys and defaults in ~/.clipforge/.env.
You can keep keys out of the UI by putting them in ~/.clipforge/.env.
GEMINI_API_KEY=your-key
OPENROUTER_API_KEY=your-key
CLIPFORGE_LLM_MODEL=google/gemini-3.8-flashLock it down, since it holds secrets:
chmod 600 ~/.clipforge/.envRules
- Only
~/.clipforge/.envis read. A.envin the project folder is ignored. - The file is read at the start of each job, so no restart is needed.
- Settings shows "A key is set" for keys that come from this file.
- Lookup order for keys: the Settings page, then real environment variables, then this file.
- The env file cannot choose the provider. Pick it in the job form or in Settings.
CLIPFORGE_LLM_MODELapplies to whichever provider you use, and only when the Settings model and the job's model field are both empty. Gemini and OpenRouter name models differently, so leave it unset if you use both.
See Settings and environment for every variable.
Edit on GitHubSpotted a mistake? Suggest a change and open a pull request.