Skip to content

Local AI Provider

CaseSolo supports firm-controlled local AI routing for Ollama, vLLM, and OpenAI-compatible local servers. The launch contract is policy-first: every local/cloud routing decision must be deterministic, privilege-aware, residency-aware, and auditable without leaking secrets.

Settings Shape

Local AI is stored in Firm.settings.localAI:

{
  "enabled": true,
  "type": "ollama",
  "baseUrl": "http://gpu-node.internal:11434",
  "model": "llama3.1:70b",
  "apiKey": "optional-local-secret",
  "maxConcurrency": 4,
  "timeoutMs": 120000
}

Data residency is stored in Firm.settings.dataResidency:

{
  "region": "us",
  "mode": "local_preferred",
  "forceLocal": false,
  "allowCloudFallback": true
}

Supported mode values are cloud_allowed, local_preferred, and local_only. region: "on-prem" or forceLocal: true always normalizes to local_only.

Policy Rules

Implementation Points

Use the audit payload directly in Activity.metadata.providerSelection for AI execution, provider tests, and settings changes.

Source: docs/dev/local-ai-provider.md