🏢 Enterprise & Proxy Setup Guide
NeuroLink provides comprehensive proxy support for enterprise environments, enabling AI integration behind corporate firewalls and proxy servers.
✨ Zero Configuration Proxy Support
NeuroLink automatically detects and uses proxy settings when environment variables are configured. No code changes required.
Quick Setup
# Set proxy environment variables
export HTTPS_PROXY=http://your-corporate-proxy:port
export HTTP_PROXY=http://your-corporate-proxy:port
# NeuroLink will automatically use these settings
npx @juspay/neurolink generate "Hello from behind corporate proxy"
🔧 Environment Variables
Required Proxy Variables
| Variable | Description | Example |
|---|---|---|
HTTPS_PROXY | Proxy server for HTTPS requests | http://proxy.company.com:8080 |
HTTP_PROXY | Proxy server for HTTP requests | http://proxy.company.com:8080 |
Optional Proxy Variables
| Variable | Description | Default |
|---|---|---|
NO_PROXY | Domains to bypass proxy | localhost,127.0.0.1 |
🌐 Provider-Specific Proxy Support
✅ Full Proxy Support
All NeuroLink providers automatically work through corporate proxies:
| Provider | Proxy Method | Status |
|---|---|---|
| Anthropic Claude | Direct fetch calls with proxy | ✅ Verified + Tested |
| OpenAI | Global fetch handling | ✅ Verified + Tested |
| Google Vertex AI | Custom fetch with undici ProxyAgent | ✅ Verified + Tested |
| Google AI Studio | Custom fetch with undici ProxyAgent | ✅ Verified + Tested |
| Mistral AI | Custom fetch with undici ProxyAgent | ✅ Verified + Tested |
| Ollama | Custom fetch with undici ProxyAgent | ✅ Verified + Tested |
| HuggingFace | Custom fetch with undici ProxyAgent | ✅ Implemented |
| Azure OpenAI | Custom fetch with undici ProxyAgent | ✅ Implemented |
| Amazon Bedrock | Global fetch handling | ✅ Implemented |
🚀 Quick Validation
Test Proxy Configuration
# 1. Set proxy variables
export HTTPS_PROXY=http://your-proxy:port
export HTTP_PROXY=http://your-proxy:port
# 2. Test with any provider
npx @juspay/neurolink generate "Test proxy connection" --provider google-ai
# 3. Check proxy logs for connection intercepts
Verify Proxy Usage
When proxy is working correctly, you should see:
- ✅ AI responses generated successfully
- ✅ Proxy server logs showing intercepted connections
- ✅ No direct internet access required
- ✅ Enterprise MCP tools work alongside proxy
Enterprise Grade Testing
NeuroLink includes comprehensive proxy validation tests:
# Run enterprise proxy tests
npm test -- test/proxy/proxySupport.test.ts
# Test all providers with proxy + MCP
npm test -- test/proxy/proxySupport.test.ts --run
Test Coverage:
- ✅ Proxy usage validation (negative/positive testing)
- ✅ All enterprise providers (Anthropic, OpenAI, Vertex, Mistral, Ollama)
- ✅ MCP + Proxy compatibility (enterprise grade)
- ✅ Real-world timeout handling
- ✅ SDK and CLI interface testing