Google Gemini
Overview
Use Google Gemini as the LLM provider for Atolio.
Prerequisites
- A healthy Atolio deployment
kubectlaccess to the clusteratolioctldownloaded from the latest release- A Google Gemini API key
jqinstalled (used below)
Step 1: Create a Gemini API key
- Go to https://aistudio.google.com/
- Create a new project and API key, copy it, & keep it secure.
Step 2: Port‑forward Atolio Feeder (for KV operations)
kubectl -n atolio-db port-forward service/feeder 8889
Leave this running in a separate terminal while you configure keys.
Step 3: Generate a JWT token
# Get the JWT Secret. Needed for JWT generation
export jwtSecret=$(kubectl -n atolio-svc get secret lumen-secrets -o json | jq -r .data.jwtSecretKey | base64 -d)
# Change this to reflect your Atolio deployment's domain name
export domainName="https://search.example.com"
export JWT_TOKEN=$(atolioctl connector create-jwt --raw \
--jwt-audience-sdk=${domainName} \
--jwt-issuer-sdk=${domainName} \
--jwt-secret-sdk=${jwtSecret} \
"atolio:*:*:*")
Confirm JWT_TOKEN is set to a JWT value.
Step 4: Configure Atolio to use Google Gemini
atolioctl --feeder-address :8889 --jwt-token-sdk ${JWT_TOKEN} kv set /lumen/system/llm/providers/google/api_key {GEMINI_API_KEY}
Replace {GEMINI_API_KEY} with your key.
Step 5: Restart the Marvin service
kubectl -n atolio-svc delete pod -l app=marvin
Kubernetes will recreate the pod with the new configuration.
Verification
- In your Atolio UI, open the homepage and run a test question.
- If you see errors, re-check the KV entries and that the correct model slug is set.