计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
replit-install-auth【效率与协作】Install and configure Replit SDK/CLI authentication. Use when setting up a new Replit integration, configuring API keys, or initializing Replit in your project. Trigger with phrases like "install replit", "setup replit", "replit auth", "configure replit API key".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Set up Replit SDK/CLI and configure authentication credentials.
# Node.js
npm install @replit/sdk
# Python
pip install replit
# Set environment variable
export REPLIT_API_KEY="your-api-key"
# Or create .env file
echo 'REPLIT_API_KEY=your-api-key' >> .env
// Test connection code here
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in Replit dashboard |
| Rate Limited | Exceeded quota | Check quota at https://docs.replit.com |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { ReplitClient } from '@replit/sdk';
const client = new ReplitClient({
apiKey: process.env.REPLIT_API_KEY,
});
from replit import ReplitClient
client = ReplitClient(
api_key=os.environ.get('REPLIT_API_KEY')
)
After successful auth, proceed to replit-hello-world for your first API call.