Search Engine Setup
3 min read
Where to put credentials so each search engine works.
Mode | Where secrets live | Source of env names |
|---|---|---|
Search Proxy (recommended) | Search Proxy pod | Search Proxy client |
Legacy |
| Direct egress from |
In both modes, assistants-core still needs client/config: SEARCH_PROXY_BASE_URL (when using Search Proxy), ACTIVE_SEARCH_ENGINES, and Custom API vars if used.
When SEARCH_PROXY_BASE_URL is set, every engine in ACTIVE_SEARCH_ENGINES needs its credentials on Search Proxy; credentials on assistants-core are not used (Customized API is the exception, see below). An engine without credentials on Search Proxy still shows in the Space, but its searches fail.
Visibility lists: Activation Reference. Behaviour: Architecture Search Engines / Search Proxy. Confirm exact Helm value paths against the charts for your release.
Search Proxy (recommended)
Set these on the Search Proxy deployment.
Standard search
Variable | Role |
|---|---|
| API key |
| Programmable Search Engine id ( |
| Optional override (default Custom Search JSON API URL) |
Brave (proxy-only)
Variable | Role |
|---|---|
| API key |
| Optional override |
Requires Search Proxy. Not available on the legacy path.
Perplexity (proxy-only)
Variable | Role |
|---|---|
| API key |
| Optional override |
Requires Search Proxy. Not available on the legacy path.
Customized API
Configured on assistants-core (routed through Search Proxy only when FEATURE_FLAG_SEARCH_PROXY_ENABLE_CUSTOM_API_UN_26736 is enabled):
Variable | Role |
|---|---|
| Base URL |
|
|
| JSON headers |
| JSON |
| JSON |
Env can lock fields so Spaces UI hides them.
Grounding (agent search) — Search Proxy
Bing (BING_AGENT_*)
Variable | Role |
|---|---|
| Azure AI Foundry / project endpoint |
| Bing grounding connection |
| Model deployment for the automatically created agent (required) |
| Azure identity mode (e.g. |
| Optional token audience |
| Optional private-endpoint transport |
VertexAI (VERTEXAI_AGENT_*)
Variable | Role |
|---|---|
|
|
| Optional; required when type is |
| Optional OAuth scopes |
To always use Web Grounding for Enterprise, set VERTEXAI_AGENT_FORCE_ACTIVATE_ENTERPRISE_SEARCH=true on assistants-core. Enable Enterprise Search is then on for every Space and cannot be turned off. See Search Engine Configuration.
To change the default Gemini model for Grounding with VertexAI, set VERTEXAI_AGENT_DEFAULT_VERTEX_AI_MODEL_NAME on assistants-core (default gemini-3-flash-preview). Spaces can still choose another model.
Checklist for a new tenant on Search Proxy
Deploy Search Proxy; enable
searchProxydependency / setSEARCH_PROXY_BASE_URLonassistants-core.Mount standard-search and crawler secrets on Search Proxy (
web/settings).Mount / bind Azure or GCP identity for grounding (
BING_AGENT_*/VERTEXAI_AGENT_*).Set
ACTIVE_SEARCH_ENGINESonassistants-coreto the engines you want visible. Each of them needs its credentials on Search Proxy.Configure corporate egress with
HTTP_CLIENT_*on Search Proxy if required.Verify Brave/Perplexity only after Search Proxy health checks pass.
Legacy path (assistants-core direct egress)
Use when Search Proxy is not enabled (SEARCH_PROXY_BASE_URL unset). Supported until decommissioned. Brave and Perplexity are not available.
Standard search — legacy
Variable | Role |
|---|---|
| API key |
| Programmable Search Engine id ( |
| Optional override |
Mount on assistants-core.
Customized API
Same CUSTOM_WEB_SEARCH_API_* vars as above (always on assistants-core).
Grounding — legacy
Bing (AZURE_AI_* on assistants-core)
Variable | Role |
|---|---|
| Foundry project endpoint |
| Bing grounding connection when required |
| Model deployment name for auto-provision |
| Azure identity mode ( |
| Optional token audience |
| Optional private-endpoint transport |
VertexAI (on assistants-core)
Variable / mechanism | Role |
|---|---|
GCP Workload Identity / ADC | Production auth |
| Dev/alternate credentials (SA JSON) |
| Optional OAuth scopes |
| Optional; |
| Optional; default Gemini model for Spaces (default |
Corporate HTTP proxy for legacy egress: PROXY_* on assistants-core — see Proxy Configuration.