rai connect

Connect this machine to a RaiSE server using device authorization flow. On success, stores credentials locally so subsequent CLI and MCP calls can authenticate without manual token entry.

Argument Description
ORG_SLUG Organization slug on the RaiSE server (optional — prompted if omitted)
Flag Short Description
--server -s RaiSE server URL. Default: https://api.raise.sh
# Connect to the default server
rai connect

# Connect with org slug
rai connect my-org

# Connect to a self-hosted instance
rai connect my-org --server https://raise.mycompany.com

The command opens the device authorization URL in your browser (or prints it if a browser cannot be launched). After you approve the device in your browser, the CLI stores the access token automatically.

See also: rai whoami, rai project