Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 18:30 UTC
feat(cli): add --no-browser flag to link command (#3829)
## Summary Adds a `--no-browser` flag to `composio link` (and `composio dev connected-accounts link`) that skips auto-opening the browser and prints the authorization URL for the user to open manually, while still waiting for the connection to become `ACTIVE`. Previously the only way to suppress the browser auto-open was `--no-wait`, which also exits without waiting for authorization. `--no-browser` fills the gap for users (and remote/SSH sessions) who want to click the link themselves but still get the wait-for-ACTIVE confirmation — matching the existing `composio login --no-browser` behavior. ## Changes - New `--no-browser` boolean option on both the root `link` command and the `dev connected-accounts link` variant - `waitForActiveConnection` skips `open()` and tells the user to open the printed URL when the flag is set - The unmanaged-auth dashboard fallback (`ToolRouterV2_NoManagedAuth`) also respects the flag - Root help (`root-help.ts`) documents the new flag - Test: `link gmail --no-browser` waits for ACTIVE and never calls `open` No VHS recording added — this is a small flag addition to an existing command surface, not a new documented workflow. ## Verification - `pnpm typecheck` — passes - `pnpm --filter @composio/cli test` — 81 files, 725 tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No changes.