m1guelpf / auto-commit

A CLI tool that automatically writes commit messages for you.
MIT License
1.2k stars 54 forks source link

Read `OPENAI_API_KEY` from config #12

Open wallentx opened 1 year ago

wallentx commented 1 year ago

I've used a handful of tools that use codex, and so far most have been able to read the API key from a file, as well as ENV. This is pretty convenient, since I've been able to reference a few of them to the same ~/.config/openaiapirc file, while others have their own folder within ~/.config.