Claude Code integration monetisation
ImplementedMonetise your Claude Code integration
Use Claude Code's scriptable statusline as a lightweight, display-only sponsored surface. The implementation stays outside prompts, source code and terminal contents, and it does not pretend to replace Claude Code's thinking spinner.
The CLI is implemented in the repository but its npm package is currently private. The install command below is the intended setup once an authorised package distribution is available.
Product status
The integration exists in the repository.
The current repository contains the Claude Code CLI implementation. The package is marked private, so public npm availability is not claimed. The integration uses the host's real scriptable statusline rather than inventing a runtime hook that Claude Code does not expose.
Host-specific approach
Scriptable Claude Code statusline
The implemented integration renders sponsored creative in Claude Code's scriptable statusline below the prompt input. It does not replace the thinking spinner. The current host surface is display-only because it does not provide a dependable interactive click target.
Integration
How the Claude Code integration is designed
The CLI authenticates through the same browser-assisted device-authorisation pattern used by VS Code. The statusline command reads from a five-minute local creative cache where possible, reports qualification without blocking the host and prints nothing on failure.
Read the technical integration guideIntended setup after authorised package distribution
npm install -g @adfrolic/claude-code-integration
adfrolic auth
Claude Code settings.json
{
"statusLine": {
"type": "command",
"command": "adfrolic statusline"
}
}Privacy boundary
The host surface should not turn work content into advertising data.
The Claude Code integration does not send source code, prompts, AI responses or terminal contents to the AdFrolic backend. Ad selection, budgeting, fraud controls and billing remain server-side.
Review the AdFrolic trust boundaryDeveloper earnings
No generic income estimate is presented as a promise.
Actual developer earnings depend on qualified impressions, available advertiser demand, campaign pricing, geography and placement. The developer dashboard is the source of truth for recorded earnings and payout status.
Frequently asked questions
Is the Claude Code package available on npm now?
The implementation exists in the repository, but the package is currently marked private. The public page therefore does not claim that the npm install command is available today.
Can AdFrolic replace Claude Code's thinking spinner with adverts?
No. Claude Code does not expose a runtime hook that lets this integration replace the thinking spinner per request. The implemented host surface is the scriptable statusline.
Can users click a Claude Code statusline advert?
Not reliably in the current implementation. The statusline is treated as display-only because Claude Code does not expose a dependable click target there.
Will the statusline slow Claude Code down?
The command uses a five-minute local creative cache and is designed to fail silently, so a network or AdFrolic failure should not disrupt a Claude Code session.
Does the statusline send prompt or terminal contents to AdFrolic?
No. Prompts, AI responses and terminal contents are outside the advertising request contract.