Clay logo

LeadMagic has made more than one billion API calls with Clay and won The Unstoppable Wheel award.

Recap
LeadMagicDocs

LeadMagic CLI Quickstart

Install LeadMagic CLI, sign in with browser OAuth, open the terminal workspace, and enrich your first local CSV with the lm command.

Go from no installation to an authenticated LeadMagic CLI workspace and enriched local data in a few minutes.

Step-by-Step

1

Install LeadMagic CLI

Open a new terminal, then verify:

2

Sign in

A browser opens for OAuth. LeadMagic CLI does not require a pasted LeadMagic API key for normal use.

3

Verify your setup

Doctor auto-repairs fixable issues by default. Diagnostics only:

4

Scan for data files

Lists CSV, TSV, and Excel files with row counts and detected columns.

5

Analyze a file

Get a data health report: quality score, coverage, and recommendations. Save with -o report.md.

6

Open the LeadMagic CLI workspace

Or just lm: chat is the default command. Try:

Results land in .leadmagic/export/.

Alternative: Direct Commands

What Happens to Your Data

  • Local storage: Working files and results stay under ~/.leadmagic/ or project-local .leadmagic/.
  • Exports: Timestamped dirs in .leadmagic/export/{timestamp}-{operation}/.
  • Privacy: Only fields needed for each API call are sent. Your full dataset stays local.

Check Credits

Or in chat: "How many credits do I have?" / /credits

Next Steps