sponsored-code
v3.2.1
Published
An ad rides your Claude Code terminal. You get paid in USDC. Run `npx sponsored-code` — installs and runs the Sponsored Code CLI (@sponsored-code/cli).
Downloads
2,146
Maintainers
Readme
CLI
Get paid in USDC for the status-line slot Claude Code already shows while it works.
scode shows one small, clearly-labeled ad in the Claude Code terminal UI 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 startOr in one line — npx sponsored-code installs globally on first run, then runs start for you:
npx sponsored-codescode start prompts for a Polygon wallet for USDC payouts (or pass --wallet 0x…), registers an
account, and turns the slot on.
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.
Commands
Run scode help (or scode, scode --help) any time for the full list.
Earn
| command | what it does |
|---|---|
| scode start | Register and turn the ad slot on — prompts for your payout wallet (or --wallet 0x…). |
| scode register | Create an account only, without turning the slot on. |
| scode on / scode off | Resume or pause the slot. off restores stock Claude Code instantly. |
| scode status | Your account, integrity check, and current slot state. |
| scode earnings | USDC earned and earnings over time — opens the web view. |
| scode statusline | Render the ad row (Claude Code calls this itself). Add --demo to preview it with no account. |
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. |
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. |
| scode help | Show every command. |
Privacy
It never reads your prompts, code, file paths, or transcript — none of that is touched or sent
anywhere. All it does locally is edit supported Claude Code settings, cleanly reverted by scode off.
License
Source-available — see LICENSE.
