lm with no arguments also starts chat — it’s the default command.
How It Works
When you type a message, the AI:- Interprets your intent — understands whether you want cleaning, enrichment, research, SQL, export, or troubleshooting
- Selects tools — picks the right file, database, LeadMagic, recipe, schedule, or outbound action
- Executes the workflow — runs steps in order, asks before spending credits, and stores results locally
- Streams progress — shows tool calls, progress, and results as the work runs
Example Conversations
Load and enrich a CSV
Load and enrich a CSV
Validate an email list
Validate an email list
Research a company
Research a company
Turn a file into a repeatable workflow
Turn a file into a repeatable workflow
Use local analytics
Use local analytics
Slash Commands
Type/ followed by a command name for quick actions. Type /help to see all available commands.
- Files
- Info
- Config
- Chat
- System
- Enrichment
- Automation & Integrations
| Command | Description |
|---|---|
/browse | Browse files in a directory |
/find | Find CSV or XLSX files |
/files | Show files in current directory |
/output | Set output directory for exports |
/clean | Open cleaning operation picker |
/merge | Merge CSV or Excel files |
Local Context
The chat has access to your local LeadMagic workspace:- Imported CSV and Excel tables
- Query results and visible table columns
- Chat sessions and exported transcripts
- Recipe definitions and schedule history
- Outbound push history
- Account status, credits, and pricing
@ to reference a file and /table or /columns to inspect the current data view.
AI Routing
The CLI routes AI requests through the LeadMagic AI Gateway. Check routing status with:Session Management
Chat sessions are automatically saved and can be resumed later.| Action | How |
|---|---|
| List sessions | /sessions |
| Start fresh | /clear |
| Export history | /export |
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Enter | Send message / execute command |
↑ / ↓ | Recall previous commands |
Tab | Autocomplete commands |
Escape | Clear input |
Ctrl+C | Exit application |
Ctrl+L | Clear screen |
Ctrl+K | Open command palette |
/ | Start a slash command |
@ | Reference a file |
Next Steps
Command Reference
All commands for non-chat workflows.
Configuration
Database, model, and theme settings.