You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): improve dev experience and roo provider API key support (#11203)
- Allow --api-key and ROO_API_KEY env var for the roo provider instead of
requiring cloud auth token
- Switch dev/start scripts to use tsx for running directly from source
without building first
- Fix path resolution (version.ts, extension.ts, extension-host.ts) to
work from both source and bundled locations
- Disable debug log file (~/.roo/cli-debug.log) unless --debug is passed
- Update README with complete env var table and dev workflow docs
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@@ -233,8 +234,8 @@ The CLI will look for API keys in environment variables if not provided via `--a
233
234
## Development
234
235
235
236
```bash
236
-
#Watch mode for development
237
-
pnpm dev
237
+
#Run directly from source (no build required)
238
+
pnpm dev --provider roo --api-key $ROO_API_KEY --print "Hello"
238
239
239
240
# Run tests
240
241
pnpm test
@@ -246,6 +247,12 @@ pnpm check-types
246
247
pnpm lint
247
248
```
248
249
250
+
By default the `start` script points `ROO_CODE_PROVIDER_URL` at `http://localhost:8080/proxy` for local development. To point at the production API instead, override the environment variable:
251
+
252
+
```bash
253
+
ROO_CODE_PROVIDER_URL=https://api.roocode.com/proxy pnpm dev --provider roo --api-key $ROO_API_KEY --print "Hello"
254
+
```
255
+
249
256
## Releasing
250
257
251
258
Official releases are created via the GitHub Actions workflow at `.github/workflows/cli-release.yml`.
0 commit comments