Reference
Complete reference documentation for NeuroLink configuration, troubleshooting, and technical details.
🎯 Reference Hub
This section provides comprehensive reference materials for advanced usage, configuration, and problem-solving.
- Troubleshooting — Common issues, error messages, and solutions for NeuroLink CLI and SDK usage.
- Configuration — Complete configuration reference including environment variables, provider settings, and optimization.
- Provider Capabilities Audit — Capability matrix for the 13 text/multimodal providers it historically tracks — the other 27 are covered in the per-provider guides with capability matrices and configuration examples.
- Provider Comparison — Detailed comparison of the hand-written provider implementations with features, costs, and recommendations.
- FAQ — Frequently asked questions about NeuroLink features, limitations, and best practices.
- Error Codes — Complete error code reference with categorized codes, severity levels, and resolution guidance.
- Analytics — Comprehensive guide to NeuroLink analytics, metrics, token tracking, cost monitoring, and observability integration.
- Telemetry Guide — OTLP setup, exporter behavior, and the local OpenObserve workflow for the Claude proxy.
- Server Configuration — Configuration reference for server adapters including Hono, Express, Fastify, and Koa framework integration.
- MCP Enhancements API — API reference for MCP enhancements including ToolRouter, ToolCache, RequestBatcher, tool annotations, and elicitation protocol.
🔧 Quick Reference
Environment Variables
# Core Provider API Keys
OPENAI_API_KEY="sk-your-openai-key"
GOOGLE_AI_API_KEY="AIza-your-google-ai-key"
ANTHROPIC_API_KEY="sk-ant-your-key"
# AWS Bedrock (requires AWS credentials)
AWS_ACCESS_KEY_ID="your-access-key"
AWS_SECRET_ACCESS_KEY="your-secret-key"
AWS_REGION="us-east-1"
# Azure OpenAI
AZURE_OPENAI_API_KEY="your-azure-key"
AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
# Google Vertex AI
GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
# Hugging Face
HUGGINGFACE_API_KEY="hf_your-key"
# Mistral AI
MISTRAL_API_KEY="your-mistral-key"
CLI Quick Commands
# Status and diagnostics
neurolink status # Check all providers
neurolink status --verbose # Detailed diagnostics
neurolink provider status # Provider-specific status
# Text generation
neurolink generate "prompt" # Basic generation
neurolink gen "prompt" -p openai # Specific provider
neurolink stream "prompt" # Real-time streaming
# Configuration
neurolink config show # Show current config
neurolink config validate # Validate setup
neurolink config init # Interactive setup
# MCP tools
neurolink mcp discover # Find available servers
neurolink mcp list # List installed servers
neurolink mcp install <server> # Install MCP server
# Claude proxy + local telemetry
neurolink proxy setup
neurolink proxy status --format json
neurolink proxy telemetry setup
neurolink proxy telemetry status
SDK Quick Reference
import { NeuroLink, createBestAIProvider } from "@juspay/neurolink";
// Basic usage
const neurolink = new NeuroLink();
const result = await neurolink.generate({
input: { text: "Your prompt" },
provider: "auto", // or specific provider
});
// Auto-select best provider
const provider = createBestAIProvider();
const result = await provider.generate({
input: { text: "Your prompt" },
});
// With advanced options
const result = await neurolink.generate({
input: { text: "Your prompt" },
provider: "google-ai",
model: "gemini-2.5-pro",
temperature: 0.7,
maxTokens: 1000,
enableAnalytics: true,
enableEvaluation: true,
timeout: "30s",
});
📊 Provider Comparison Matrix
Quick Overview (see Provider Capabilities Audit for complete details):
| Feature | OpenAI | Google AI | Anthropic | Bedrock | Azure | Vertex | HuggingFace | Ollama | Mistral | LiteLLM | SageMaker | OpenRouter | OpenAI Compat |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Free Tier | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | Varies | ❌ | Varies | Varies |
| Tool Support | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Streaming | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Vision | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ | ❌ | ✅ | Varies | ✅ | Varies |
| Local | ❌ | ❌ | ❌ | ❌ | ❌ |