Build a Lens from your own coding agent with the Easy Lens CLI

The Easy Lens CLI lets the coding agent you already use, such as Claude, Codex or Cursor, build Lenses for you from your terminal. The CLI page gives you one prompt that sets it up, and the Games page sends you there when you have a web game to bring to Snapchat.

  1. Open the CLI page. On a computer, CLI in the menu on the left goes there too. You do not need to sign in to read it. The page reads Bring your AI. Build a Lens.

  2. Pick the agent you use: Claude, Codex, Cursor or Other. The agent prompt under the chips changes with your pick. Its setup line names your agent, and Other leaves that line out.

    The Easy Lens CLI panel, with the Claude, Codex, Cursor and Other chips, the agent prompt that installs the CLI, Copy agent prompt, and under Or run it yourself the npm install command with Copy command

  3. Tap Copy agent prompt and paste it into your agent. The prompt installs the CLI with npm, checks the version it installed, and tells your agent to follow the guide that comes with the CLI. When your agent needs you to sign in, the prompt has it run easylens auth login.

  4. Install it yourself if you would rather not ask your agent. Or run it yourself has one terminal command, npm install -g @snap/easylens-cli@latest, and Copy command copies it. It needs npm on your computer.

  5. Then ask your agent for a Lens. The videos under See what's possible on the same page show four things to ask for: turn your brand assets into a Lens, go from a trend to a Lens in one session, make a personal Lens for an occasion, and ask which of your Lens+ Lenses are performing before you decide what to build next.

  6. Look at Lenses built in one agent session on the same page for what a session can make. Each card there has Try on Snapchat.

  7. Bring a web game you already built from Games. Tap Bring my game to Snapchat, and the Easy Lens CLI card under it says what happens: you hand your coding agent your game and the CLI, and it converts your web build, adds Snapchat features like leaderboards and multiplayer, and publishes it from your terminal. The same agent prompt sits inside the card, and Open the CLI page goes to the CLI page.

    The Games page with Bring my game to Snapchat picked under I want to, and the Easy Lens CLI card for developers with an existing web game, with an Open the CLI page button

Your coding agent has the Easy Lens CLI and its guide, and you know where to copy the prompt again and what to ask your agent for first.