@gitinspect/cli
v0.1.1
Published
Thin `gitinspect` OAuth CLI for generating raw GitInspect-compatible credentials.
Readme
gitinspect
Thin gitinspect OAuth CLI for generating raw GitInspect-compatible credentials.
Install dependencies
bun installRun locally
bun run apps/cli/src/index.ts login
bun run apps/cli/src/index.ts login -p codex
bun run apps/cli/src/index.ts login -p anthropic --print-jsonBuild
cd apps/cli
bun run build
node dist/index.js --helpCommand
gitinspect login
gitinspect login -p <provider>
gitinspect login --print-jsonProvider aliases:
codex→openai-codexclaude→anthropicgemini→google-gemini-clicopilot→github-copilot
Examples:
gitinspect login -p codex
gitinspect login -p anthropic
gitinspect login -p gemini
gitinspect login -p copilot
gitinspect login -p gemini --print-jsonOutput
Default output is a base64url-encoded raw OAuthCredentials JSON payload.
gitinspect login -p codexThe CLI copies the sign-in URL to your clipboard when auth starts, then waits for you to press Enter before opening the browser. After success it copies the final login code to your clipboard and tells you to paste the code back inside gitinspect.com. For callback-server providers, the manual redirect/code prompt only appears after a short wait if the browser callback does not finish automatically.
--print-json prints the raw OAuthCredentials object directly.
gitinspect login -p gemini --print-jsonScope
v1 is output-only:
- no credential persistence
- no hidden writes
- no logout or providers command
GitInspect app import is supported separately by pasting the generated login code into the app.
Packaging
The published npm package is self-contained and does not depend on unpublished workspace packages at runtime. It builds to normal Node-compatible JavaScript in dist/ and exposes the gitinspect binary from the scoped package @gitinspect/cli.
Example:
npx @gitinspect/cli login
bunx @gitinspect/cli loginImplementation
The CLI is a thin wrapper over @mariozechner/pi-ai/oauth provider login flows.
