@iruidong/code
v0.1.18
Published
Ruidong Code CLI for anthropic-compatible coding workflows
Downloads
2,026
Maintainers
Readme
Ruidong Code
Ruidong Code is a terminal coding assistant CLI for Anthropic-compatible gateways and relay services. The default product path is simple: run ruidong, paste your iruidong.com API key once, and it saves the provider config in ~/.ruidong-code/config.json.
Install
npm install -g @iruidong/code
ruidong --versionNode.js >=18 is required.
Quick Start
1. First launch
cd /path/to/project
ruidongOn first launch, Ruidong Code asks for your https://iruidong.com API key and writes:
{
"provider": {
"id": "anthropic-compatible",
"baseUrl": "https://iruidong.com",
"authToken": "your_api_key",
"defaultModel": "glm"
}
}2. Start using it
Non-interactive check:
ruidong -p "你好,请只回复 OK" --bareRuidong Code also ships with a built-in official marketplace URL:
https://marketplace.iruidong.com/marketplace.json.
3. Other gateways
If you want crs or another compatible gateway, edit ~/.ruidong-code/config.json and change baseUrl, credentials, and defaultModel.
If your team still relies on shell ANTHROPIC_* variables, opt into legacy behavior explicitly:
export RUIDONG_ENABLE_LEGACY_ANTHROPIC_ENV=1Instruction Files
Project instruction files now use:
Ruidong.md: shared project instructionsRuidong.local.md: local private instructions
Legacy CLAUDE.md and CLAUDE.local.md are still read for compatibility.
Useful Commands
ruidong --help
ruidong -p "summarize this repo" --bare
ruidong doctorInside an interactive session:
/model/mcp/plugin
Docs
Release Verification
Before publishing:
npm run build
npm run verify:p0
npm pack