Illustration of a terminal running easylens agent init cursor next to a phone previewing an AR Lens with a Publish button
Illustration by AIUseFlow · credits

Snap Easy Lens CLI Guide: Build a Snapchat Lens With Claude Code, Cursor or Codex

Also available in Hindi: यह लेख हिंदी में पढ़ें

On 18 November 2026 Snap launched Easy Lens CLI, a command-line tool that lets the AI coding assistant you already use build Snapchat Lenses. You describe the Lens in plain words. Snap says the assistant can use more than 100 AR building blocks and more than 50 AI asset generators, render previews, send the Lens to your phone and publish it.

Step 1: install and sign in

Five steps from installing Easy Lens CLI to a published Snapchat Lens
Based on Snap's launch post and the CLI's own help text. Illustration, not a screenshot.

The CLI ships on npm and needs Node.js 18 or newer:

npm install -g @snap/easylens-cli@latest
easylens auth login
easylens doctor

auth login signs you in with your Snapchat account in a browser; doctor runs read-only setup checks. Native builds exist only for macOS on Apple Silicon, Linux x64 and Windows x64, so Intel Macs and ARM laptops are not covered yet.

Step 2: teach your agent the CLI

Where easylens agent init writes instructions for each coding assistant
From the output of easylens agent init --help, version 0.2.99. Illustration, not a screenshot.

Run this inside your project folder:

easylens agent init --target cursor

The target can be claude (the default, a skill file), cursor, codex or agents (an AGENTS.md file). Existing files are never overwritten. For any other assistant, easylens agent print prints the guide so you can paste it in.

Step 3: build and test before anyone sees it

Now ask in plain language, for example: "Make a face Lens that shows a gold crown when I smile." Under the hood the agent writes a recipe and runs commands such as easylens recipe validate, easylens lens build recipe.json --watch and easylens lens render for an MP4 preview.

A good habit is to publish your first versions with --hidden, which uses HIDDEN visibility instead of PUBLIC, and to check easylens lens quotas first.

Step 4: publish and track

easylens lens publish takes a conversation ID and a name, plus options such as tags, --payouts and --wait. Snap says CLI Lenses go through the same content checks and Lens review as the Easy Lens apps. Afterwards, easylens lens insights and easylens payouts show performance and earnings.

Should you use it?

It suits game makers turning browser games into Web Lenses, agencies reusing campaign assets and creators who already use an AI coding tool. An agent with shell access can publish, so ask it to stop before lens publish.

Related reading: Claude Code tutorial for beginners, Cursor rules examples, Runway Dev plugin for coding agents and the Claude Code tool page.

Sources

FAQ

Is Easy Lens CLI free?

Installing it costs nothing. It is not open source: use falls under Snap's Lens Studio License Agreement and Generative Lens Tools Terms.

Do I need to know how to code?

No. Snap says a full game can go from idea to published Lens in a day without writing code, because the assistant does the technical work.

Can I earn money from these Lenses?

Yes, if you are enrolled in Lens+ Payouts. Snap says it paid $1.8 million to Lens+ community creators last month.

Which assistants work?

Snap names Claude Code, Cursor and Codex. Other agents can follow the guide that easylens agent print outputs.

About the author

Suraj Kumar builds and edits AIUseFlow, a directory of AI tools for vibe coders, agent builders and creators. Guides like this one walk through a practical workflow with cited sources — not a news wire rewrite. How we rank tools.

Get the weekly stack

Rank movers and new AI tools for builders, once a week. Free, no spam, unsubscribe anytime.