Akeyless AI Insights

Overview

Akeyless AI Insights enables natural-language interaction with the Akeyless platform using Large Language Models (LLMs). To operate, AI Insights must be configured at:

  1. Account level - feature enablement
  2. Gateway level - specify LLM target + model

Supported LLM Providers

  • OpenAI (GPT models)

Prerequisites

Before you begin, ensure you have:

  • Akeyless CLI installed & authenticated (admin access)\
  • LLM Provider account + API Key
  • Akeyless Gateway running
  • Ability to create and manage Targets in Akeyless
  • Protection key available (for encrypting API credentials)

High-Level Steps

StepDescriptionTool
1Enable AI Insights at account levelCLI
2Create OpenAI TargetCLI
3Configure Gateway for AI InsightsREST API
4Validate configuration & testCLI / UI

Step 1 - Enable AI Insights (Account Level)

akeyless update-account-settings \
  --enable-ai-insights true

To verify:

akeyless get-account-settings

Expected result contains:

"ai_insights": { "enable": true }

To disable:

akeyless update-account-settings --enable-ai-insights false

Step 2 - Create LLM Target

Option A - OpenAI Target


Command

akeyless target-create-openai \
  --name <target-name> \
  --api-key <openai-api-key> \
  [--openai-url <base-url>] \
  [--model <default-model>] \
  [--organization-id <org-id>] \
  [--key <protection-key>]

Example

akeyless target-create-openai \
  --name my-openai-target \
  --api-key sk-xxxx \
  --model gpt-4

Find Target ID

akeyless get-target --name <target-name>

Model Rules

ProviderValid Prefix
OpenAIgpt-

Examples:

  • gpt-4, gpt-3.5-turbo
  • gpt4

Step 3 - Configure Gateway


Configuration uses the Gateway API.

TOKEN=$(akeyless auth | grep token | awk '{print $2}')

curl -X PUT "http://localhost:8000/config/ai-insights" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "cluster_identity": {
      "account_id": "a-1234567890",
      "access_id": "p-1234567890",
      "cluster_name": "my-gateway"
    },
    "ai_insights": {
      "enable": true,
      "target_name": "my-openai-target",
      "model": "gpt-4"
    }
  }'

To disable:

"ai_insights": { "enable": false }

Verification

Verify Account Setting

akeyless get-account-settings

Verify Target

akeyless get-target --name my-openai-target

Verify Gateway Config

curl -X GET http://localhost:8000/config/ai-insights

Test in UI


  1. Open Akeyless Web UI
  2. Navigate to AI Insights
  3. Start a chat
  4. Ask a natural language question

Troubleshooting

IssueResolution
AI Insights disabledEnable at account level
Gateway disabledUpdate gateway config
Invalid modelMust use gpt-
Invalid targetMust be OpenAI
Target not foundValidate target name/ID
Authentication failureRe-auth with akeyless auth
Gateway unreachableCheck port 8000 + firewall
API key errorsCheck validity + base URLs

Configuration Checklist

StepStatus
Enable AI Insights
Create Target
Store Target ID
Configure Gateway
Verify Gateway Config
Test in UI

Footer Section