@joincoby/cli
v0.4.0
Published
Installer wizard for the Coby Claude Code plugin.
Downloads
243
Maintainers
Readme
@joincoby/cli
Installer wizard for the Coby Claude Code plugin.
Usage
npx @joincoby/cli initThe wizard will:
- Verify the
claudeCLI is on yourPATH - Prompt for your Coby API key
- Write the key into
~/.claude/.credentials.jsonunderpluginSecrets["coby-brain@coby"].api_key, preserving everything else (mode0600) - Add the
Coby-team/coby-pluginsmarketplace to Claude Code - Install the
coby-brainplugin
After it finishes, open Claude Code and ask about a known Fimo user (e.g. "tell me about <user>"). The bundled customer-profile skill resolves the user via the brain and composes their PostHog activity, Pylon tickets, and Hyperline billing into a one-page profile.
What gets installed
The coby-brain plugin bundles two MCP servers:
- coby-brain — the Coby brain (HTTP, bearer-authed with your API key). Serves identity resolution + curated PostHog (product analytics) and Pylon (customer support) tool sets — 49 tools total.
- Hyperline — vendor MCP for billing, authenticates via browser OAuth on first use (expected behaviour, not a bug). PostHog and Pylon need no per-user OAuth — the brain serves them using Coby's workspace-level tokens.
Your Coby API key lands in ~/.claude/.credentials.json (or $CLAUDE_CONFIG_DIR/.credentials.json) under pluginSecrets["coby-brain@coby"].api_key — the same location Claude Code's native plugin-config flow uses for sensitive: true fields. The file is written 0600.
Recovering after a Claude Code self-upgrade
Sometimes Claude Code's self-upgrade silently wipes the pluginSecrets
entry in ~/.claude/.credentials.json, leaving the Coby brain plugin
unauthenticated. If Claude tells you it has no mcp__coby-brain__*
tools, or that brain calls return an auth error, run:
npx @joincoby/cli doctorThis will:
- Diagnose whether your credential is missing, present-but-rejected, or just temporarily unreachable.
- If it's missing or rejected, prompt you to paste your Coby API
key (request a fresh one from
[email protected]if yours was revoked). - Save it to the right place for your platform (macOS Keychain on
darwin,
~/.claude/.credentials.jsonon Linux / WSL / Windows). - Re-probe to confirm the new key works.
- Tell you to run
/reload-pluginsin Claude Code to reconnect the MCP.
For scripts / agents, --diagnose-only skips the prompt:
npx @joincoby/cli doctor --diagnose-only # exit 0=healthy, 1=needs repair, 2=brain downRequirements
- Node.js ≥ 20
- Claude Code CLI installed and on your
PATH
License
MIT
