协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
coderabbit-install-auth【开发与工程】Install and configure CodeRabbit SDK/CLI authentication. Use when setting up a new CodeRabbit integration, configuring API keys, or initializing CodeRabbit in your project. Trigger with phrases like "install coderabbit", "setup coderabbit", "coderabbit auth", "configure coderabbit API key".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Set up CodeRabbit SDK/CLI and configure authentication credentials.
# Node.js
npm install @coderabbit/sdk
# Python
pip install coderabbit
# Set environment variable
export CODERABBIT_API_KEY="your-api-key"
# Or create .env file
echo 'CODERABBIT_API_KEY=your-api-key' >> .env
// Test connection code here
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in CodeRabbit dashboard |
| Rate Limited | Exceeded quota | Check quota at https://docs.coderabbit.com |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { CodeRabbitClient } from '@coderabbit/sdk';
const client = new CodeRabbitClient({
apiKey: process.env.CODERABBIT_API_KEY,
});
from coderabbit import CodeRabbitClient
client = CodeRabbitClient(
api_key=os.environ.get('CODERABBIT_API_KEY')
)
After successful auth, proceed to coderabbit-hello-world for your first API call.