38c1b78e68
- Add .clinerules symlink → CLAUDE.md so Roo Code reads same project context - Add sync-context.sh: copies global context to ~/.claude/ for Claude Code and prints content for manual paste into Roo Code Custom Instructions - Update CLAUDE.md: note .clinerules symlink, add sync-context.sh to file list - Update CONTEXT.md: add AI context file mapping table, update file structure - Update README.md: rewrite AI Context Files section to cover both tools, document symlink strategy and sync workflow
1.0 KiB
1.0 KiB
Ein AI Proxy - Project Context
Anthropic-compatible proxy that routes AI requests to multiple providers based on model name: sonnet→GLM-4.7 (Z.ai), opus→Anthropic, haiku→DeepSeek.
.clinerules is a symlink to this file so Roo Code reads the same context.
File Structure
proxy.mjs- Main proxy server (zero dependencies, Node.js built-ins only)config.json- API keys and auth token (gitignored)config.example.json- Template configein-ai-proxy.service- Systemd unit filedeploy.sh- Deployment and testing scriptsync-context.sh- Syncs global context to Claude Code and Roo Code
Development
Run locally: node proxy.mjs (requires config.json)
Test health endpoint: curl http://localhost:3100/health
Zero npm dependencies — do not add any.
Deployment
On mini-server (ssh mini-server): cd ~/ai-proxy && git pull && sudo systemctl restart ein-ai-proxy
View logs: sudo journalctl -u ein-ai-proxy -f
See Also
CONTEXT.md - Full infrastructure details (network, servers, Caddy, routing table)