Skip to main content

Configure Aiterava Intelligence

All configuration is done from the dashboard: Settings → AI Intelligence.

Platform key mode (SaaS only)​

In SaaS mode, Aiterava provides AI access via a credit system. No external API key is required.

  • Each AI request consumes credits based on the model used
  • Your credit balance is visible under Settings → AI Intelligence → Credits
  • Alerts are sent when the balance reaches the alert threshold (80% by default)

BYOK — Bring Your Own Key​

BYOK mode lets you use your own API key with any provider. Your tokens are billed directly by the provider, not Aiterava.

Enable BYOK​

  1. Go to Settings → AI Intelligence.
  2. In the API Keys section, click + Add a key.
  3. Select the provider (Anthropic, OpenAI, Gemini...).
  4. Paste your API key.
  5. Click Save.

Keys are encrypted at rest (AESGCM) — you cannot read them back after saving.

Providers and where to get keys​

ProviderURLNotes
Anthropic (Claude)console.anthropic.comRecommended — best quality/cost ratio
OpenAI (GPT)platform.openai.com—
Google Geminiaistudio.google.comFree quota available
Groqconsole.groq.comVery fast, free quota
Mistralconsole.mistral.aiEuropean models (GDPR)
OllamaYour local infrastructureZero cost, requires GPU

BYOK on on-premise​

On an on-premise instance, enable BYOK by adding to your .env:

# Token encryption key (required for BYOK and WhatsApp)
AI_BYOK_MASTER_KEY=<64 hex characters>

# Generate:
# openssl rand -hex 32

AI policy settings​

Under Settings → AI Intelligence → Policy, you can configure:

SettingDescription
AI enabledEnable/disable all AI for your tenant
Preferred providerProvider used by priority for your requests
Local-only modeBlocks all data from being sent to external providers
Sensitive data allowedAllow/block sensitive data in prompts
Default complexity modeSIMPLE (fast/cheap) → MEDIUM → COMPLEX (powerful)
Monthly quotaCredit cap per month
Daily limitDaily cap (0 = no limit)

Environment variables (on-premise)​

# ─── Aiterava Intelligence ───────────────────────────────────────────────────
AI_BYOK_MASTER_KEY=<openssl rand -hex 32>

# Optional: platform Anthropic key provided by Aiterraxis
# (if you don't want to manage your own key)
ANTHROPIC_PLATFORM_API_KEY=sk-ant-...

Next step → Channel — Visitor chat