npm.io
3.0.3 • Published 18h agoCLI

@sponsored-code/cli

Licence
PolyForm-Shield-1.0.0
Version
3.0.3
Deps
4
Size
91 kB
Vulns
0
Weekly
0

Sponsored Code — CLI

Sponsored Code

npm downloads license sponsoredcode.com

CLI

Get paid in USDC for a small, clearly-labeled ad line in the AI tools you already run in the terminal.

scode pins one ad line to the bottom of your terminal AI tools — Claude Code, Codex, Gemini, or any command you point it at — and pays you in USDC to a Polygon wallet you connect. Everything below runs on your machine.

Running ad campaigns is a separate, brand-side workflow — it lives on the web dashboard and the @sponsored-code/sdk (with API keys built for exactly that), not the CLI.

Install

npm install -g sponsored-code
scode

Or run it once without installing — npx sponsored-code installs on first run and drops you into setup:

npx sponsored-code

Running scode on a fresh machine walks you through it: pick where the ad line shows up, then connect a Polygon wallet (or sign in with Google). Prefer the wallet prompt up front? scode start --wallet 0x….

The CLI installs two interchangeable commands — scode (short) and sponsored-code. The examples below use scode; use sponsored-code anywhere if scode is already taken on your system.

Where the ad shows up

Works with Claude Code, Codex, Gemini, and any other terminal AI tool — you keep running them exactly as you do now. Claude Code and Codex are built in; to add anything else, register it once:

  1. Run scode integrations.
  2. Choose Other CLIs.
  3. Enter the command name, e.g. aider.

Now run aider (or whatever you added) like usual and the ad line rides along — toggle any tool on or off from that same screen. Just want it for a single run? Skip the setup:

scode run aider

Commands

Run scode help (or scode, scode --help) any time for the full list.

Earn
command what it does
scode The interactive menu — setup on a fresh machine, your dashboard after.
scode start Register and start earning — prompts for your payout wallet (or --wallet 0x…).
scode on / scode off Resume or pause. off restores your tools untouched.
scode status Your account, integrity check, and current state.
scode earnings USDC earned and earnings over time — opens the web view.
scode integrations Choose how the ad shows in Claude Code, Codex, or any terminal app.
scode run <cmd> Run any terminal command with the earning status line pinned to the bottom.
Account
command what it does
scode login Sign in with Google — opens the browser to link this machine to your account (groups your machines, unlocks higher-paying ads).
scode logout Sign out this machine — it keeps earning anonymously to its wallet.
scode wallet This machine's wallet and on-chain balance. wallet list / wallet change 0x… manage the rest.
Other
command what it does
scode mcp Run an MCP server exposing campaign + analytics actions (the brand-side automation surface, alongside the SDK) to Claude or any MCP client. For unattended automation, set SCODE_WALLET_KEY to sign in headlessly instead of the browser.
scode help Show every command.

Privacy

It never reads your prompts, code, file paths, or transcript — none of that is touched or sent anywhere. It only changes the settings you opt into, cleanly reverted by scode off or uninstalling.

License

Source-available — see LICENSE.

Keywords