Claude Code integration
Connect Claude Code to your CodePinion account with the CodePinion plugin.
The CodePinion plugin for Claude Code connects Claude to your account. Ask "what should I work on?", have it pull up your sprint, start work on a task, and log progress back, without pasting IDs by hand. It works in the Claude Code CLI, the desktop app and the IDE extensions, and its cp.py script works on its own from any terminal. This is separate from the standalone Go CodePinion CLI.
Install
In Claude Code:
/plugin marketplace add ssh://git@codepinion.co.ke:2223/codepinion-labs/codepinion_skill.git
/plugin install codepinion
Then sign in to Production. This opens your browser:
python3 ~/.claude/plugins/codepinion/skills/codepinion/scripts/cp.py login --env prod
Approve the code in your browser (Device sign-in), then ask Claude "what am I working on in CodePinion?" to check.
Without the plugin system
git clone ssh://git@codepinion.co.ke:2223/codepinion-labs/codepinion_skill.git
cp -r codepinion_skill/skills/codepinion ~/.claude/skills/
python3 ~/.claude/skills/codepinion/scripts/cp.py login --env prod
Environments
prod, playground and local are built in. You can be signed in to all of them at once, each with its own token:
cp.py env # who is signed in where, and which is active
cp.py env use playground # switch
cp.py tasks --sprint 4 --env playground # or for one command
Claude says which environment each answer came from, and never switches on its own.
Where the token lives
Tokens are stored in ~/.codepinion/claude-code.json, readable only by you (mode 0600). Revoke any of them in API tokens (requires sign-in).
Step-up approval
If a change needs a recent browser approval, Claude stops and asks you to run:
cp.py elevate --env prod
See Device sign-in.