Make BROWSERBASE_PROJECT_ID optional in CLI
Merged
SH
8mo ago+5+5+0123456789-8-8-0123456789
Summary
- Stacked on #1800
- Only
BROWSERBASE_API_KEYis required for remote mode in the CLI BROWSERBASE_PROJECT_IDis still passed through if set, but no longer checked
Changes
packages/cli/src/index.tsāhasBrowserbaseCredentials()only checks for API keypackages/cli/tests/mode.test.tsā Updated test to match new error messagepackages/cli/README.mdā Updated docs to reflect optional project ID
Test plan
- Existing mode test updated
- Manual:
browse env remotewith onlyBROWSERBASE_API_KEYset
š¤ Generated with Claude Code
Summary by cubic
Make BROWSERBASE_PROJECT_ID optional in the CLI for remote mode, so only BROWSERBASE_API_KEY is required. The project ID is still forwarded when provided.
- Bug Fixes
- Updated remote mode check and error message to only require
BROWSERBASE_API_KEY. - Autodetection now defaults to
remotewhen the API key is set; otherwiselocal. - Updated tests and
@browserbasehq/browse-cliREADME to match.
- Updated remote mode check and error message to only require