Run the TeamClaude login script to authenticate this CLI plugin with the server.
The script will:
- •Start a temporary local HTTP server
- •Open the browser for Auth0 login
- •Save the received JWT token to
~/.teamclaude/token
Execute:
bash
node "$CLAUDE_PLUGIN_DIR/scripts/login.mjs" $ARGUMENTS
After login succeeds, confirm to the user that authentication is complete and the plugin will use the saved token automatically for all future requests. Only SIDECAR_API_BASE_URL environment variable is needed going forward.
If the user hasn't set SIDECAR_API_BASE_URL, remind them to add it to their shell profile:
bash
export SIDECAR_API_BASE_URL="https://your-server.com"