unblocked commands — including the MCP server and every context-* command — need to call the Unblocked API on your behalf. Authentication is how you grant that access.
Interactive auth
- The CLI opens your default browser to sign in to Unblocked.
- After you authorize the session, the browser hands a token back to the CLI.
- The CLI caches that token locally. Subsequent commands reuse it until it expires or you sign out with
unblocked uninstall.
install-mcp.sh quick install script triggers this flow automatically at the end of its run. If you installed with install.sh (CLI only), run unblocked auth manually before using any other command.
Headless auth with an API token
In environments without a browser — CI runners, containers, remote shells — use an Unblocked API token instead of interactive auth. Set the token in the environment before running otherunblocked commands:
Signing out
To clear the cached credentials along with all other local Unblocked state, rununblocked uninstall.