Getting Started

Installation & Setup

Configure the Lem CLI and environment to begin capturing institutional memory across your local and production workflows.

1. Global Installation

The Lem CLI is required for local project management and triggering autonomous context captures. Install it globally via npm.

Shell Command
$npm install -g lem

2. Project Initialization

Navigate to the root directory of your project and run the setup command. You will be prompted to enter your API key to link the project to your Lem workspace.

$lem setup
> Enter API Key: lem_sk_...

3. Intelligent Branching

Lem monitors your local Git activity. When you create a new branch that matches a linked project task ID, Lem automatically generates a local implementation.md file to guide your development.

$git checkout -b feature/LEM-123
> Task Detected: LEM-123 (Auth Migration)
> Created: .lem/implementation.md

4. Verify Connection

Verify that your local environment is correctly synchronized with your workspace.

$lem status
> Lem CLI v1.4.2
> Connected: ibrahim@lem.ai
> Project: My-App (Linked)

Security Note

"Lem never stores your Git credentials. All communication is secured via your API Key and encrypted session tokens."