This guide provides step-by-step instructions on how to deploy the Intel® Agent Toolkit on a single node.
- Step 1 — Base Stack
- Verify the Base Stack
- Step 1b — Semantic Router
- Step 2 — Redis (Shared Memory Backend)
- Step 2b — PostgreSQL + pgvector (Vector Store)
- Step 2c — Agent Sandbox (Sandboxed Code Execution)
- Step 2d — OpenShell (Policy-Enforced Sandboxes)
git clone -b release-1.2 https://github.com/intel/enterprise-ai-solutions.git
cd enterprise-ai-solutions
./es_auto_installer.sh configure
./es_auto_installer.sh init agent-toolkit # creates env/local/ (env name defaults to "local")Open env/local/global_config.yaml and env/local/config.agent-toolkit.yaml and fill in your values:
# env/local/global_config.yaml
# Your base domain — this becomes the base URL for all services (e.g. litellm.<base_domain_name>)
base_domain_name: "example.com"
# TLS certificate — self-signed by default
# Kubernetes — provisioned by the installer by default; for a BYO cluster set:
# existing_kubernetes: /path/to/kubeconfig
# Enable/disable stack components
auth_provider: "litellm" # set by init agent-toolkit
observability_enabled: true
# Proxy settings (optional, depending on network)
http_proxy: ""
https_proxy: ""
no_proxy: ""# env/local/config.agent-toolkit.yaml
# Model(s) to deploy — select the model(s) from the model list (ex: qwen2-5-coder-14b), separated by commas
llm_services_autodeploy_models: ["qwen2-5-coder-14b"]
# Enable/disable stack components
# deploy_agenticai_plugin (Flowise agentic AI plugin): not available in this release
redis_stack_enabled: true # standalone Redis Stack in its own namespace
pgvector_enabled: true # optional: PostgreSQL 16 + pgvector — shared vector store and long-term memory backend
kuberay_enabled: false # optional: KubeRay operator — enables Ray distributed computing inside the cluster
agent_sandbox_enabled: true # optional: Agent Sandbox controller — isolated pod environments for safe code execution
openshell_enabled: false # optional: NVIDIA OpenShell policy-enforced sandboxes (requires agent_sandbox_enabled: true)Note: For proxy settings, see running-behind-proxy.md.
Set llm_services_autodeploy_models in config.agent-toolkit.yaml to one value from the table below:
CPU models
| # | Value to set in llm_services_autodeploy_models |
Model |
|---|---|---|
21 |
qwen3-coder-30b |
Qwen/Qwen3-Coder-30B-A3B-Instruct |
22 |
qwen2-5-coder-14b |
Qwen/Qwen2.5-Coder-14B-Instruct (default — used by the Coding Agent) |
23 |
bge-base-en |
BAAI/bge-base-en-v1.5 (text embedding) |
24 |
bge-reranker |
BAAI/bge-reranker-base (reranking) |
25 |
qwen3-30b-a3b |
Qwen/Qwen3-30B-A3B-Instruct-2507 |
26 |
gemma-4-26b |
google/gemma-4-26B-A4B-it |
27 |
llama-3-1-8b |
meta-llama/Llama-3.1-8B-Instruct |
28 |
llama-3-1-8b-specdec |
meta-llama/Llama-3.1-8B-Instruct (with speculative decoding) |
29 |
qwen3-coder-30b-specdec |
Qwen/Qwen3-Coder-30B-A3B-Instruct (with speculative decoding) |
30 |
qwen3-6-35b-a3b |
Qwen/Qwen3.6-35B-A3B |
Memory: a node needs the
memory:requests of its models (inenv/local/models.yaml) plus about 17 GiB for the rest of the stack, and 16 GiB more for Qwen3Guard while the content-safety guardrail is on. The default install requests about 131 GiB (qwen2-5-coder-14b96 GiB, Qwen3Guard 16 GiB, router 2 GiB, the rest 17 GiB), so it does not fit a 128 GB node: choose a 64 GiB model there (qwen2-5-coder-7b,llama-3-1-8b).qwen3-coder-30brequests 160 GiB.
Note:
meta-llama/Llama-3.1-8B-Instructdoes not support parallel tool calling. Only sequential tool calls are supported with this model.
Note: For how per-model CPU/memory sizing and vLLM flags are configured under the hood, or to add a new model, see Xeon (CPU) vLLM Model Configuration.
Speculative Decoding:
Models that support speculative decoding are available with a -specdec suffix (e.g. qwen3-coder-30b-specdec, qwen2-5-coder-14b-specdec, llama-3-1-8b-specdec). This technique uses a smaller draft model to generate candidate tokens quickly, which are then verified by the larger target model in parallel — reducing time-to-first-token and overall generation latency while preserving output quality.
These models are registered in LiteLLM with a -specdec suffix to distinguish them from their non-speculative counterparts (e.g. qwen3-coder-30b-specdec). The draft model is automatically configured during deployment.
To deploy a speculative decoding variant, set the -specdec model in config.agent-toolkit.yaml:
llm_services_autodeploy_models: ["qwen3-coder-30b-specdec"]Multiple models can be deployed together using a comma-separated list: llm_services_autodeploy_models: ["qwen3-coder-30b", "bge-base-en"]
export HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxx # HuggingFace token (required to pull gated models)
./es_auto_installer.sh install agent-toolkitEstimated time: 20–40 minutes on a fresh node.
Output is also written to env/local/logs/install-agent-toolkit-<timestamp>.log.
After Step 1 completes, verify all pods are healthy before proceeding to Step 2:
# The installer writes the cluster's kubeconfig into the env
export KUBECONFIG=$(pwd)/env/local/kubeconfig.yaml
# All pods should be Running
# (the vLLM pod may take an additional 10-15 min to pull the model weights)
kubectl get pods -A
# Retrieve the LiteLLM master key
export LITELLM_MASTER_KEY=$(kubectl get secret litellm-master-key -n litellm -o jsonpath='{.data.master_key}' | base64 -d)
# (Optional) If behind a corporate proxy, update no_proxy to prevent the request from being intercepted by the proxy (replace <base_domain_name> with your base_domain_name)
export no_proxy="${no_proxy},litellm.<base_domain_name>,langfuse.<base_domain_name>"
# Gateway IP: map litellm.<base_domain_name> (and the other service names) to it in /etc/hosts
kubectl get svc -n envoy-gateway-system -l gateway.envoyproxy.io/owning-gateway-name=eg-gateway \
-o jsonpath='{.items[0].status.loadBalancer.ingress[0].ip}'
# Confirm the model API is responding (replace <base_domain_name> with your base_domain_name;
# TLS is self-signed by default, so use curl -k):
# First, list registered models to confirm the model name:
curl -k https://litellm.<base_domain_name>/v1/models \
-H "Authorization: Bearer ${LITELLM_MASTER_KEY}"
# Then test chat completions (replace <base_domain_name> with your base_domain_name, then use the model name returned by /v1/models above):
curl -k https://litellm.<base_domain_name>/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${LITELLM_MASTER_KEY}" \
-d '{"model": "qwen2-5-coder-14b",
"messages": [{"role":"user","content":"Write a Python hello world"}],
"max_tokens": 100}'The
LITELLM_MASTER_KEYis stored in thelitellm-master-keySecret (keymaster_key) in thelitellmnamespace.
Semantic routing automatically directs queries to the most appropriate model based on content analysis using embeddings. This allows you to route simple queries to faster/cheaper CPU models while directing complex tasks to larger CPU models.
Why Use Semantic Routing?
- Cost optimization: Route simple queries to efficient models, complex ones to powerful models
- Latency reduction: Fast models handle straightforward requests quickly
- Intelligent dispatch: Coding tasks → coding-specialized models, reasoning → larger models
- Transparent routing: Applications use a single model name (e.g.,
hybrid-router), routing happens server-side
📚 For more information: See the official LiteLLM Auto Routing documentation
- Step 1 complete and base stack verified
- At least one model deployed (you'll add an embedding model for routing and a second model to route to)
The hybrid router spreads requests over the deployed chat models, so deploy a second one. BAAI/bge-base-en-v1.5 (bge-base-en) is added as well, as the embedding model for your agents.
A second larger model i.e. Qwen/Qwen3-Coder-30B-A3B-Instruct with better capabilities will also be deployed alongside your existing one.
Update env/local/config.agent-toolkit.yaml to include the embedding model and second model:
llm_services_autodeploy_models: ["qwen2-5-coder-14b", "bge-base-en", "qwen3-coder-30b"]Deploy the model:
Important: With the NRI balloon policy, the default model (cpu: auto) takes the free physical cores of one NUMA node. When no NUMA node has enough free cores left, a further deploy stops with NRI pre-flight failed: not enough physical cores. To make room, set an explicit cpu: for each model in env/local/models.yaml (see xeon-model-configuration.md). For a sizing guide, refer to the Intel AI Performance Advisor for cloud instances and on-prem servers.
After updating models.yaml, undeploy the existing model first, then re-run the install so all 3 models are placed with the new sizes.
kubectl get llminferenceservices,inferenceservices -n llm-inference # see list of vllm deployments
./model-manager undeploy <first_model_name> # uninstall the existing vllm deployment
./es_auto_installer.sh install agent-toolkitRestart the GenAI Gateway's Deployment:
kubectl rollout restart deployment litellm -n litellmFollow the steps to re-verify the base stack to ensure models can be accessed.
Open https://litellm.<base_domain_name>/ui in your browser (the gateway IP must be in /etc/hosts for that name, as in the quick-start). Without the hosts entry, port-forward the LiteLLM Service and open http://localhost:4000/ui:
kubectl port-forward -n litellm svc/litellm 4000:4000Login credentials:
- Username: default which is
admin - Password: the value of
LITELLM_MASTER_KEY
Step 3a - Verify the Embedding Model:
The embedding model is automatically registered in LiteLLM when deployed via es_auto_installer.sh. Verify it's available:
- Navigate to: Models+Endpoints → All Models tab
- Look for
bge-base-enin the models list - Note the model name - you'll use it in the next step (typically
bge-base-en)
Step 3b - The hybrid router:
This release creates the hybrid-router model at install (hybrid_router_enabled: true, the default), so there is no UI step. It sorts each request by complexity and sends it to one of the deployed chat models. Models deployed after the install join it when you re-run ./es_auto_installer.sh install agent-toolkit. Tiers and model lists: hybrid-router.md.
Test that queries are being routed correctly based on content:
Simple query (should route to smaller model - fast response):
export LITELLM_MASTER_KEY=$(kubectl get secret litellm-master-key -n litellm -o jsonpath='{.data.master_key}' | base64 -d)
curl -k https://litellm.<base_domain_name>/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${LITELLM_MASTER_KEY}" \
-d '{
"model": "hybrid-router",
"messages": [{"role":"user","content":"What is a Python list?"}],
"max_tokens": 100
}'Complex query (should route to more powerful model):
curl -k https://litellm.<base_domain_name>/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${LITELLM_MASTER_KEY}" \
-d '{
"model": "hybrid-router",
"messages": [{"role":"user","content":"How to code a program in Python that implements a distributed task queue with Redis backend"}],
"max_tokens": 200
}'Check routing decisions in Langfuse:
Navigate to the Langfuse dashboard to see which model handled each request:
https://langfuse.<base_domain_name>
Login credentials: kubectl get secret langfuse-secrets -n langfuse -o jsonpath='{.data.admin_email}' | base64 -d and ... -o jsonpath='{.data.admin_password}' | base64 -d; the project is inference.
Go inside the inference project. Under Tracing, select the most recent litellm_request, scroll down to Metadata → attributes. Look at the llm.model_name field to confirm routing decisions.
Requests to hybrid-router are classified by complexity (simple, medium, complex, reasoning) and sent to a model of that tier; a bandit then picks among the models of a tier by observed cost and latency. Details and settings: hybrid-router.md.
Redis is the common memory backend for all agentic workloads in this stack — deploy it before any use-case agent (MCP agents, etc.).
The charts/redis-stack chart deploys Redis Stack (includes RediSearch) into its own redis namespace as a single persistent instance shared across all agents.
Automated deployment (recommended):
By default, Redis should already be deployed. You can check by running kubectl get pods -n redis. If not, follow the instructions below to deploy it.
Set redis_stack_enabled: true in env/local/config.agent-toolkit.yaml:
redis_stack_enabled: trueThen re-run es_auto_installer.sh:
./es_auto_installer.sh install agent-toolkitThe deployment script generates the password into the redis-stack-server-credentials Kubernetes Secret and passes it to the chart, so no manual credential setup is needed.
Verify it is running:
kubectl get pods -n redis
# NAME READY STATUS RESTARTS AGE
# redis-stack-server-0 1/1 Running 0 60s
# Quick connectivity test (a password is required)
kubectl exec -n redis redis-stack-server-0 -- sh -c \
'redis-cli -a "$REDIS_PASSWORD" --no-auth-warning ping'
# PONGRedis URL (in-cluster) — use this in all agents:
The full URL, including the password, is stored in a Kubernetes Secret. Read it from there rather than hardcoding credentials:
kubectl get secret redis-stack-server-credentials -n redis \
-o jsonpath='{.data.REDIS_URL}' | base64 -d
# redis://default:<password>@redis-stack-server.redis.svc.cluster.local:6379This URL is the single source of truth for all agent workloads connecting to Redis within the cluster. Note the
default:username — Redis 6+ rejects theredis://:<password>@...form withWRONGPASS.
- Authentication is mandatory. The chart fails to render if no password is supplied. Redis with
nopassallows any client that can reach the port to read and modify all agent session data and to run arbitrary Lua scripts on the server. - The Service is
ClusterIP, reachable only from inside the cluster. Do not change it toNodePortorLoadBalancer— that publishes Redis on every node IP in the 30000-32767 range. If you need external access, usekubectl port-forwardinstead. - Mesh-only access. Redis runs in the ambient mesh: namespaces in the mesh reach it, plaintext clients from outside are refused.
- Password rotation is not automated in this release.
PostgreSQL 16 with the pgvector extension gives every agentic workload a persistent, queryable vector store for long-term memory, RAG pipelines, semantic search, and structured state storage — all within the cluster.
When to enable:
- Your agent needs long-term memory that survives pod/session restarts
- You are building RAG pipelines that store and retrieve embeddings
- Use cases require structured relational + vector data in the same store
- You want a production-grade alternative to in-memory vector stores
By default, pgvector should already be deployed. You can check by running kubectl get pods -n pgvector. If not, follow the instructions below to deploy it.
Enable it in env/local/config.agent-toolkit.yaml:
pgvector_enabled: trueThen re-run the deploy script:
./es_auto_installer.sh install agent-toolkitWhat gets deployed:
| Resource | Detail |
|---|---|
| Namespace | pgvector |
| Image | pgvector/pgvector:pg16 (PostgreSQL 16 + pgvector extension) |
| Service | pgvector.pgvector.svc.cluster.local:5432 |
| Database | agentdb |
| User | agentuser |
| Credentials secret | pgvector-credentials in the pgvector namespace |
Verify it is running:
kubectl get pods -n pgvector
# NAME READY STATUS RESTARTS AGE
# pgvector-0 1/1 Running 0 60s
# Confirm pgvector extension is active
kubectl exec -n pgvector pgvector-0 -- \
psql -U agentuser -d agentdb \
-c "SELECT extname, extversion FROM pg_extension WHERE extname='vector';"
# extname | extversion
# --------+-----------
# vector | 0.8.0Retrieve the connection string from the cluster secret:
kubectl get secret pgvector-credentials -n pgvector \
-o jsonpath='{.data.DATABASE_URL}' | base64 -d
# postgresql://agentuser:<password>@pgvector.pgvector.svc.cluster.local:5432/agentdbIn-cluster connection string (for use in agent workloads):
postgresql://agentuser:<password>@pgvector.pgvector.svc.cluster.local:5432/agentdb
Agent Sandbox provides isolated, ephemeral Kubernetes pods for safe code execution. Every sandbox is a fully self-contained pod — the agent can run arbitrary code, install packages, and write files without touching the host or other workloads.
By default, Agent Sandbox should already be deployed. You can check by running kubectl get pods -n agent-sandbox-system. If not, follow the instructions below to deploy it.
Enable it in env/local/config.agent-toolkit.yaml:
agent_sandbox_enabled: trueThen re-run the deploy script:
./es_auto_installer.sh install agent-toolkitWhat gets deployed (all in the agent-sandbox-system namespace):
| Component | Description |
|---|---|
agent-sandbox-controller |
Kubernetes operator that manages Sandbox pod lifecycle |
| CRDs | sandboxes, sandboxtemplates, sandboxclaims, sandboxwarmpools |
sandbox-router |
HTTP proxy that routes SDK requests to sandbox pods |
python-sandbox-template |
Default SandboxTemplate using a locally-built Python runtime |
Verify:
kubectl get pods -n agent-sandbox-system
# NAME READY STATUS RESTARTS
# agent-sandbox-controller-xxx 1/1 Running 0
# sandbox-router-xxx 1/1 Running 0
kubectl get sandboxtemplate -n agent-sandbox-system
# NAME AGE
# python-sandbox-template 1mIn-cluster router URL (used by the in-cluster agent):
http://sandbox-router-svc.agent-sandbox-system.svc.cluster.local:8080
For the full guide — adding custom templates, WarmPools, and SDK usage — see agent-sandbox.md.
NVIDIA OpenShell runs on top of Agent Sandbox and enforces egress default-deny, L7 rules, Landlock and credential isolation inside every sandbox. The GenAI Gateway is registered as a provider: sandboxes see a placeholder key and the supervisor injects a dedicated LiteLLM virtual key.
# env/local/config.agent-toolkit.yaml
agent_sandbox_enabled: true
openshell_enabled: trueWithout openshell_oidc_issuer, OpenShell runs in single-admin mode (ClusterIP only, reached through kubectl port-forward with Kubernetes RBAC); no extra setting is needed.
./es_auto_installer.sh install agent-toolkitVerify:
kubectl get pods -n openshell-system
# NAME READY STATUS RESTARTS
# openshell-0 1/1 Running 0For CLI setup, running a sandbox against the GenAI Gateway, and known limitations, see openshell.md.