7fc0bafb01
Anthropic-compatible API proxy that routes requests to multiple providers (Anthropic, Z.ai/GLM-4.7, DeepSeek V3.2) based on model name. Zero dependencies, SSE streaming, bearer token auth. Designed to run behind Caddy/nginx on a home server, enabling Claude Code and Roo Code clients to connect from anywhere.
20 lines
405 B
Desktop File
20 lines
405 B
Desktop File
[Unit]
|
|
Description=Ein AI Proxy - Anthropic-compatible multi-provider router
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=harrison
|
|
WorkingDirectory=/home/harrison/ai-proxy
|
|
ExecStart=/home/harrison/.nvm/versions/node/v24.14.1/bin/node proxy.mjs
|
|
Restart=always
|
|
RestartSec=5
|
|
Environment=NODE_ENV=production
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|