Skip to main content

Cloud Login

The easiest way to authenticate is using the CLI. This connects your local environment to your Trace Cloud account.
trace login
This will open your browser to authorize the device. Once successful, your API key will be securely stored in ~/.trace/config.

API Keys

For CI/CD, MCP, or explicit usage, you can use an API Key.
  1. Go to the Trace Dashboard.
  2. Create a new Service Token.
  3. Set it as an environment variable:
export TRACE_API_KEY=sk_live_...

Usage

CLI:
trace analyze --api-key sk_live_...
MCP: Configure the env block in your server settings:
"env": {
  "TRACE_API_KEY": "sk_live_..."
}