Install this once per machine before wiring up any MCP client. It covers the package install, both authentication paths (browser and headless), and how to verify or revoke your token.
Prerequisites#
- Python 3.10+
- A RiskManaged account (free to create at riskmanaged.io/register)
Install via pip#
pip install riskmanaged-mcpInstall via curl (auto-installs the binary)#
curl -sSL https://riskmanaged.io/install.sh | bashAuthenticate (OAuth browser flow — recommended)#
The riskmanaged auth login command runs a one-click browser flow — you click
Authorize and the CLI receives a token directly. Nothing to copy-paste.
riskmanaged auth login- Your browser opens to
riskmanaged.io/mcp-authorize - Confirm you're logged in (or sign in)
- Click Authorize RiskManaged CLI
- You're redirected back; the CLI confirms the token is saved
The token is stored in ~/.riskmanaged/config.json (chmod 600) with a 90-day
TTL. Revoke it any time from Profile → API Tokens.
Authenticate (manual token — for headless / CI)#
For Docker, CI runners, or any environment where you can't open a browser:
# 1. Mint a token in Profile → API Tokens
# 2. Set the env var (wins over on-disk config)
export RISKMANAGED_TOKEN="rms_xxx_your_token_here"
export RISKMANAGED_URL="https://agent.riskmanaged.io" # optional, this is the default
# Or write to disk:
riskmanaged auth login --token rms_xxx_your_token_hereEnv-var precedence: RISKMANAGED_TOKEN > ~/.riskmanaged/config.json > not
configured. Same for RISKMANAGED_URL.
Verify installation#
riskmanaged whoamiShould print your username, plan, and token expiry.
Log out#
riskmanaged auth logout # revokes the token server-side + deletes the local file