Log in and check your account status

getting started

// what it does

cursor-agent login opens your default browser to authenticate and stores credentials locally. cursor-agent status reports whether you are authenticated, your account, and the current endpoint. This is the recommended path for interactive use; automation should use an API key instead.

// shell

$ cursor-agent login
$ cursor-agent status

// gotcha

On a headless box or over SSH with no browser, run NO_OPEN_BROWSER=1 cursor-agent login — it prints the login URL for you to open on another machine instead of failing to launch a browser.

// resources