LeadMagic CLI Configuration
Configure LeadMagic CLI paths, project-local or global storage, themes, exports, and third-party outbound integrations.
LeadMagic CLI stores configuration in JSON and supports a small set of environment overrides. LeadMagic authentication comes from lm login and browser OAuth, not a static LeadMagic apiKey in config.
Config File Location
| Location | Path | When used |
|---|---|---|
| Project-local | .leadmagic/config.json | .leadmagic/ exists in current or parent directory |
| Global | ~/.leadmagic/config.json | Fallback |
Managing Config
Common keys
| Key | Description |
|---|---|
baseUrl | LeadMagic API base (https://api.leadmagic.io) |
dbPath | Local data file path |
dbMemoryLimit | e.g. 2GB, 512MB |
dbThreads | Thread count (1–256) |
workerBaseUrl | LeadMagic service URL |
outputDir | Export directory |
scrollSpeed | Workspace scroll speed (1–10) |
theme | Color theme name |
plainTextMessages | Render messages as plain text |
instantlyApiKey | Instantly.ai |
emailBisonApiKey / emailBisonInstanceUrl | EmailBison |
smartleadApiKey | Smartlead |
Managed automatically
| Key | Notes |
|---|---|
authToken / refreshToken / authTokenExpiresAt | From lm login |
userInfo | Cached profile |
aiModel | Read-only: managed by LeadMagic |
acceptedTermsAt | Terms acceptance timestamp |
Environment Variables
| Variable | Description |
|---|---|
LM_WORKER_URL | Override the LeadMagic service URL |
LM_DEBUG=1 | Debug logging |
Database
| Command | Description |
|---|---|
lm db init | Create DB + migrations |
lm db stats | Stats and memory |
lm db vacuum | Compact / reclaim space |
lm db analyze | Optimizer stats |
lm db repair | Fix corruption + re-migrate |
lm db reset | Drop all tables |
lm db unlock | Clear stale locks |
Themes
Or in chat: /theme
Available themes: leadmagic (default), catppuccin, dracula, tokyo-night, nord, gruvbox, rosepine, monokai, solarized, github, one-dark.
Export Directory
Recipes & Watch Paths
| Path | Purpose |
|---|---|
~/.leadmagic/recipes/ | Custom recipe YAML |
~/.leadmagic/watch/ | Hot-folder config + inbound/processing/done/failed |
.leadmagic/icp.json | ICP definitions |
Next Steps
LeadMagic CLI Workspace
Use the interactive LeadMagic CLI workspace for AI-assisted local data work, enrichment, slash commands, file references, sessions, and keyboard shortcuts.
Troubleshoot LeadMagic CLI
Fix LeadMagic CLI installation, sign-in, terminal compatibility, local data, connected services, and debug logging.
Was this page helpful?
We value your feedback.