codex-kimi-hardwarex
v1.2.5
Published
Complete standalone Codex CLI with Kimi K2 model integration - no external dependencies needed
Downloads
28
Maintainers
Readme
Codex Kimi HardwareX
A complete standalone Codex CLI with Kimi K2 model integration. No external dependencies required - just install and use!
Quick Start
- Install the package:
npm install -g codex-kimi-hardwarexGet your API key:
- Visit https://platform.moonshot.cn
- Create an account if you don't have one
- Generate your API key from the dashboard
Set your API key:
export MOONSHOT_API_KEY="sk-your-actual-api-key-here"- Start using it:
codex-kimiFeatures
- ✅ Complete standalone package - No external dependencies needed
- ✅ Automatic Kimi K2 configuration - Pre-configured with
--provider moonshot --model kimi-k2-0711-preview - ✅ Node.js compatibility - Works with Node.js v18+ (bypasses v22 requirement)
- ✅ 16MB complete bundle - Includes entire codex-cli with all dependencies
Usage
Basic usage:
codex-kimiWith custom API key:
MOONSHOT_API_KEY="your-key" codex-kimiWith additional arguments:
codex-kimi --help
codex-kimi "Write a hello world program"Configuration
The package automatically configures:
--provider moonshot--model kimi-k2-0711-preview- Uses your
MOONSHOT_API_KEYenvironment variable
Requirements
- Node.js 18.0.0 or higher
- Valid Moonshot AI API key from https://platform.moonshot.cn
Troubleshooting
API Key Issues
If you see "Invalid Authentication" errors:
- Verify your API key is valid:
- Login to https://platform.moonshot.cn
- Check your API key in the dashboard
- Make sure it hasn't expired
- Check your environment variable:
echo $MOONSHOT_API_KEY # Should show your key - Re-export if needed:
export MOONSHOT_API_KEY="sk-your-actual-key"
Installation Issues
If you get permission errors during installation:
sudo npm install -g codex-kimi-hardwarexLicense
Apache-2.0
Author
HardwareX [email protected]
