Skip to main content
Back to home
Getting started

Installation & Setup

Configure the Lem AI CLI and environment to begin capturing institutional memory across your local and production workflows using our knowledge management tools.

1. Global installation

The Lem AI CLI is required for local project management and triggering autonomous context captures. Install it globally via npm to enable enterprise search tools on your machine.

Shell command
$npm install -g get-lem-ai

2. Project initialization

Navigate to the root directory of your project and run the setup command. You will be prompted to choose where to store your implementation files (select 1 for inside the project, or 2/3 for workspace-level root storage if you have multiple projects). Then, enter your API key to link the project to your Lem AI workspace.

$get-lem-ai setup
> Where should the Implementation file be placed?
> [1] Inside the current repo directory (default)
> [2] One step backward (../)
> [3] Root of the git repository
> Enter choice [1]: 1
> SDK API Key (from Lem settings): lem_sk_...

3. Install Git Hooks

Once configured, run the install command inside your repository to activate the local Git hooks.

$get-lem-ai install

4. Intelligent Branching

Lem AI monitors your local Git activity. When you create a new branch that matches a linked project task ID, Lem AI 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

5. Verify Connection

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

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

Security note

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