AI Providers

SmartCursorX supports multiple AI providers for chat and code completion. Providers are configured in Settings → Models.

Supported Providers

OpenAI

Anthropic

Gemini

OpenRouter

Ollama

LiteLLM

Zen (Built-in)

Local (Experimental)

Fine-Tuned

API Key Security

All API keys are encrypted using OS-level credential storage:

Keys are never stored as plaintext in database tables or logs. The Secure Store architecture uses an AES-256-GCM encrypted JSON file with a random 32-byte key.

Custom Providers

You can add custom OpenAI-compatible providers:

  1. Open Settings → Models
  2. Click Add Custom Provider
  3. Enter a name, base URL, and API key
  4. Models populate automatically from the provider's /v1/models endpoint

Custom Models

Register specific models with custom context lengths and thinking support:

Cost Estimation

The Cost Estimator Service tracks token usage per model: