Getting Started
This guide walks you through installing OpenLatch, authenticating, and running your first protected AI agent session.
Step 1: Install
Section titled “Step 1: Install”Run the one-line installer:
npx @openlatch/client initThe installer will:
- Download the OpenLatch client
- Detect your installed AI coding agents
- Configure tool call hooks automatically
Step 2: Authenticate
Section titled “Step 2: Authenticate”OpenLatch uses your GitHub account for authentication:
openlatch auth loginThis opens a browser window for GitHub OAuth. Once authenticated, the client is linked to your OpenLatch account.
Step 3: Start a Protected Session
Section titled “Step 3: Start a Protected Session”Launch your AI coding agent as usual. OpenLatch hooks activate automatically:
# Example with Claude Codeclaude
# OpenLatch is now monitoring tool calls in the backgroundStep 4: View Your Dashboard
Section titled “Step 4: View Your Dashboard”Open the OpenLatch dashboard to see events from your session:
https://app.openlatch.aiThe dashboard shows:
- A timeline of intercepted tool calls
- Verdicts for each action (allowed, blocked, flagged)
- Details about each action the agent attempted
What Happens Next
Section titled “What Happens Next”OpenLatch runs silently in the background, capturing every action your agent takes into one behavioral-event stream. When enforcement returns a deny verdict, the agent receives a clear error message explaining why the action was stopped.
For a deeper understanding of the detection pipeline, see How It Works.