/stockbit:stockbit-authfrom Stockbit MCP
Logs in to Stockbit and captures the session token via browser login flow. Useful when the user needs to authenticate or re-authenticate after session expiry or HTTP 401 errors.
Ships in Stockbit MCP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Launch the browser login and confirm the refresh token was captured.
stockbit-auth login
(or node dist/bin/stockbit-auth.js login from the repo root; add --fresh-profile if a saved browser profile is stuck.)
If you are an agent running this through a tool harness, do not run it as a foreground or backgrounded shell call. Harnesses that reap the process tree when a turn ends will kill node mid-login, and node's cleanup closes the browser with it — the login never completes and the failure looks like a browser problem. Launch it as a detached process instead, so it outlives the turn. On Windows:
Start-Process -FilePath "node" -ArgumentList "dist\bin\stockbit-auth.js", "login" `
-WorkingDirectory <repo-root> -WindowStyle Hidden `
-RedirectStandardOutput "$env:TEMP\stockbit-login.out.log" `
-RedirectStandardError "$env:TEMP\stockbit-login.err.log"
On macOS/Linux, detach with nohup ... & or an equivalent that survives the caller.
A browser window opens on the Stockbit login page. The user logs in there themselves. The session is captured automatically the moment login completes, and the window may close itself. The flow allows up to 15 minutes.
Never ask for the user's Stockbit password and never type credentials on their behalf — the browser session is theirs. Then wait for them to say they are done; do not poll in a loop.
Read the redirected logs (success prints Session captured and a passing test refresh), then confirm the stored token independently:
stockbit-auth status
Expect Validity: OK. Note that status can print correctly and then crash on a libuv assertion on Windows — judge by the text, not the exit code. Remind the user that ordinary use keeps the window sliding, and only a long idle gap forces another login.
Offer the fallbacks in this order:
stockbit-auth doctor — diagnoses browsers, the token store, and the capture path.stockbit-auth import-har — the user logs in with any browser, exports a DevTools HAR, and imports it.stockbit-auth bootstrap — paste a refresh token manually.Two things that cause confusing failures: the capture only watches the browser it launched, so logging in through a normal window is invisible to it; and the stored token is encrypted against this machine and user, so it cannot be copied to another host — every machine logs in once for itself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stockbit-auth, authentication, session-capture, browser-login
9 skills in this plugin
/bandar-checkAnswer "who is accumulating this stock?" for an IDX ticker using Stockbit broker-flow data. Use when the user asks about bandar, big money, accumulation, distribution, foreign flow, asing, or who is on the other side of the tape./chart-markupRead and draw on the user's own Stockbit chart — levels, trend lines, studies, screenshots and saving the layout. Use when the user asks to draw, mark up, annotate or look at their chart./morning-scanThe pre-open and first-hour routine for IDX — session state, movers, a scan over a universe, and a catalyst check on the leaders. Use when the user asks what is moving today, for a morning briefing, or what to watch.npx claudepluginhub ino-xious/stockbit-mcp --plugin stockbitOther plugins' skills for the same job