@insforge/cli 0.1.74 → 0.1.78

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.
package/README.md CHANGED
@@ -186,6 +186,20 @@ npx @insforge/cli docs storage rest-api # Show REST API storage docs
186
186
 
187
187
  ---
188
188
 
189
+ ### AI — `npx @insforge/cli ai`
190
+
191
+ Configure local development for the InsForge Model Gateway. The setup command fetches the linked project's active OpenRouter key from the InsForge backend and writes it as the server-only `OPENROUTER_API_KEY` variable.
192
+
193
+ ```bash
194
+ npx @insforge/cli ai setup
195
+ npx @insforge/cli ai setup --env-file .env
196
+ npx @insforge/cli ai setup --json
197
+ ```
198
+
199
+ By default the CLI writes `.env.local` and adds `.env*.local` to `.gitignore` when needed. For deployments such as Vercel, add `OPENROUTER_API_KEY` to the provider's server/runtime environment. Do not rename the key to `NEXT_PUBLIC_`, `VITE_`, or `PUBLIC_`; those prefixes expose values to browser code.
200
+
201
+ ---
202
+
189
203
  ### Database — `npx @insforge/cli db`
190
204
 
191
205
  #### `npx @insforge/cli db query <sql>`