Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/jorgeurtubiam-ship-it/Gulin_ia/llms.txt

Use this file to discover all available pages before exploring further.

GuLiN supports a wide range of AI providers through a unified backend abstraction. You can connect to any cloud provider, run a fully local model with Ollama or LM Studio, or point GuLiN at any OpenAI-compatible endpoint. Switching providers is non-destructive: your chat history and Gulin Brain memories are shared across all providers, so changing models mid-project does not interrupt your flow.
Bring Your Own Key (BYOK): GuLiN never proxies your credentials through its servers when you configure a provider directly. Your API token travels only between your machine and the provider’s endpoint. To get started without configuring anything, the default gpt-5-mini preset runs through the GuLiN cloud proxy.
Hot-switching models: Use the model dropdown at the top of the AI panel to change the active model at any time. The chat history is preserved — the next message simply uses the newly selected provider and model. You can switch from GPT to Claude to Gemini within the same conversation.

Settings Keys

All AI provider settings are written to ~/.config/gulin/settings.json (or %APPDATA%/gulin/settings.json on Windows). The following keys control provider behavior:
KeyTypeDescription
ai:apitypestringBackend type: openai, anthropic, google, azure, azure-legacy, ollama, openai-compatible
ai:baseurlstringOverride the provider’s API base URL
ai:apitokenstringYour API key or token for the provider
ai:modelstringModel identifier to use (e.g. gpt-4o, claude-3-5-sonnet-20241022)
ai:maxtokensnumberMaximum tokens in the completion (default: 4000)
ai:timeoutmsnumberRequest timeout in milliseconds (default: 60000)
ai:orgidstringOpenAI organization ID (optional)
ai:apiversionstringAPI version string — required for Azure; optional for Anthropic
ai:proxyurlstringHTTP/HTTPS proxy URL to route all AI API requests through

Provider Configuration

OpenAI uses the openai API type. GuLiN supports all chat completion models including reasoning models (o1, o3, o4, gpt-5 families). For reasoning models, MaxCompletionTokens is used automatically instead of MaxTokens.
{
  "ai:apitype": "openai",
  "ai:apitoken": "sk-...",
  "ai:model": "gpt-4o",
  "ai:maxtokens": 4000,
  "ai:timeoutms": 60000
}
To use your OpenAI Organization ID:
{
  "ai:apitype": "openai",
  "ai:apitoken": "sk-...",
  "ai:orgid": "org-...",
  "ai:model": "gpt-4o"
}
The default GuLiN preset uses the GuLiN cloud proxy with gpt-5-mini. To use your own key, set ai:apitype and ai:apitoken directly.

Custom Provider Example

You can define a completely custom provider by editing your settings.json directly. Environment variables are supported via the $ENV:<VAR>:<fallback> syntax:
{
  "ai:apitype": "openai",
  "ai:baseurl": "https://my-private-llm.internal/v1",
  "ai:apitoken": "$ENV:MY_LLM_API_KEY",
  "ai:model": "my-finetuned-model",
  "ai:maxtokens": 8000,
  "ai:timeoutms": 120000
}
The $ENV: prefix tells GuLiN to resolve the value from the named environment variable at startup. If the variable is not set, the optional fallback value (after the second :) is used instead.

Provider Comparison

ProviderAPI TypeBase URLKey Required
OpenAIopenai(default)Yes
Anthropic Claudeanthropic(default)Yes
Google Geminigoogle(default)Yes
Azure OpenAIazure / azure-legacyCustom requiredYes
DeepSeekopenaihttps://api.deepseek.com/v1Yes
OpenRouteropenaihttps://openrouter.ai/api/v1Yes
Ollamaopenaihttp://localhost:11434/v1No
LM Studioopenaihttp://localhost:1234/v1No

Build docs developers (and LLMs) love