Skip to content

Quick Start

Terminal window
lnai init

This creates the .ai/ directory with default config files.

Edit .ai/AGENTS.md with your project guidelines:

# Project Guidelines
This is a TypeScript project using Node.js 22.
## Code Style
- Use ESM imports
- Prefer const over let
- Use async/await over callbacks

Edit .ai/settings.json to add permissions or MCP servers:

{
"permissions": {
"allow": ["Bash(git:*)"],
"ask": ["Bash(npm:*)"]
}
}
Terminal window
lnai sync

Commit the .ai/ directory to share configuration with your team. Generated tool files are automatically added to .gitignore by lnai sync, so collaborators just need to run lnai sync after cloning.

See Version Control for details.

Terminal window
lnai validate