pilabase-ai
v0.3.1
Published
Pilabase AI Command Line Interface with rich styling
Maintainers
Readme
Pilabase AI CLI
The Pilabase AI CLI gives you a rich command-line experience for working with the Pilabase AI worker.
Install
cd kimi-cli
npm installRun
npm start -- generate -p "Write a hello function" -o ../kimi-ai/generated/hello.tsLogin and support
Pilabase AI supports local password login and browser-based support login.
pilabase-ai login— prompt for email/passwordpilabase-ai login --token <token>— save an existing tokenpilabase-ai login --browser— open browser support login and poll for a tokenpilabase-ai support— open the support login flow and wait for a tokenpilabase-ai logout— clear saved credentials
The CLI stores credentials in ~/.pilabase-ai/config.json and will also read legacy ~/.kimi-cli/config.json if present.
Commands
pilabase-ai test— verify worker, auth, and AI connectivitypilabase-ai status— show current CLI configuration and token statuspilabase-ai profile— fetch authenticated profile informationpilabase-ai generate -p <prompt>— generate code from a promptpilabase-ai explain -c <file-or-code>— explain code with AIpilabase-ai refactor -c <file-or-code>— refactor code with AIpilabase-ai generate-tests -c <file-or-code>— produce tests for codepilabase-ai repo-context— display repo status, commits, and file excerptspilabase-ai chat -m "Hello"— send chat messages to the AI
Example usage
pilabase-ai login --browser
pilabase-ai status
pilabase-ai generate -p "Create a React counter component" -l TypeScript -o ./generated/counter.tsx
pilabase-ai chat -m "What should I name this component?"Notes
pilabase-aiis the main executable.- A compatibility wrapper remains at
bin/kimi-cli.jsfor legacy scripts. - Use
--show-thinkingto see intermediate AI reasoning when available.
The CLI now includes richer formatted headers, panels, and status output for a cleaner interactive experience. Run node bin/kimi-cli.js status to inspect your current configuration.
