@inference-gateway/cli 0.188.0 → 0.189.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -296,6 +296,21 @@ OPENAI_API_KEY=your_key_here
296
296
  DEEPSEEK_API_KEY=your_key_here
297
297
  ```
298
298
 
299
+ Provider keys resolve in this order, first hit wins: the system environment, the
300
+ project `.env`, then the userspace fallback `~/.infer/auth.json` - a flat JSON
301
+ map of provider key env vars, so you can keep keys in one place across all
302
+ projects (or run `infer` outside any project):
303
+
304
+ ```json
305
+ {
306
+ "ANTHROPIC_API_KEY": "sk-ant-...",
307
+ "OPENAI_API_KEY": "sk-..."
308
+ }
309
+ ```
310
+
311
+ A missing `auth.json` changes nothing, and a malformed one is ignored with a
312
+ logged warning. Keep the file private (`chmod 600 ~/.infer/auth.json`).
313
+
299
314
  3. **Start chatting**:
300
315
 
301
316
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inference-gateway/cli",
3
- "version": "0.188.0",
3
+ "version": "0.189.1",
4
4
  "description": "A Git-first CLI coding agent that turns ideas, issues, and tasks into real code changes.",
5
5
  "bin": {
6
6
  "infer": "bin/run.js"