AgentKit Studio
Reference

Environment variables

All 132 environment names Studio reads, split into configurable, platform-injected and do-not-set tiers by namespace.

Three tiers

Studio reads 132 environment names from the process environment: 8 through a direct process.env.X read, the rest through an injected env parameter or a *_ENV_NAMES constant array.

TierIdentifierCountMeaning
Configurableconfigurable36Operators and developers may set these; unset means the code default applies.
Platform-injectedplatform84Injected by the container, managed runtime or desktop shell; manual values are usually overwritten or ignored.
Do not setforbidden12Studio reads these, but the value must come from the credential service or settings UI; never write them into a shell profile, .env or CI variable.

Credentials come from the settings UI only

Names in the "Do not set" tier are owned by the credential service or settings UI. Writing them into a shell profile, .env or CI variable bypasses the Studio credential boundary and leaks them into logs.

Namespaces

NamespaceCountNotes
AGENTKIT55Studio-owned configuration.
KSADK30Runtime knobs for Skills, sandboxes, memory and knowledge bases.
AGENTENGINE11Runtime identity and endpoints injected by the AgentEngine control plane.
OTEL10Standard OpenTelemetry export variables.
OTHER10Standalone names without a namespace prefix.
DSH5DSH host (home, agents home, observability).
E2B4E2B sandbox backend.
KSYUN3Kingsoft Cloud signing credentials.
CODEX1Codex App Server home and executable.
GITHUB1GitHub access token.
KS31KS3 bucket and endpoint.
OPENAI1OpenAI-compatible endpoint and key.

Full list

Grouped by namespace. Each row cites the first read site; later reads of the same name are omitted.

Environment nameTierFirst read
AGENTKIT_STUDIO_HOST_URLConfigurablesrc/authoring-tools.mjs
AGENTKIT_STUDIO_HOST_SESSION_TOKENDo not setsrc/authoring-tools.mjs
AGENTKIT_HOMEConfigurablesrc/authoring-tools.mjs
AGENTKIT_STUDIO_NATIVE_HARNESSPlatform-injectedsrc/build-engine.mjs
AGENTKIT_RUNTIME_TOKENDo not setsrc/bundle-host.mjs
AGENTKIT_BUNDLE_SOURCEPlatform-injectedsrc/bundle-source.mjs
AGENTKIT_BUNDLE_SHA256Platform-injectedsrc/bundle-source.mjs
AGENTKIT_STUDIO_DSH_PLUGIN_INDEXConfigurablesrc/dsh-plugin-catalog.mjs
AGENTKIT_STUDIO_GITHUB_TOKENDo not setsrc/dsh-plugin-discovery.mjs
AGENTKIT_STUDIO_DISCOVERY_CACHEConfigurablesrc/dsh-plugin-discovery.mjs
AGENTKIT_RUNTIME_TIMEOUT_MSPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_RUNTIME_AGENT_IDPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_RUNTIME_BUILD_IDPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_EXECUTION_POLICY_DEFAULTConfigurablesrc/frozen-build-runtime.mjs
AGENTKIT_EXECUTION_POLICY_MAXConfigurablesrc/frozen-build-runtime.mjs
AGENTKIT_MANAGED_SESSIONSConfigurablesrc/frozen-build-runtime.mjs
AGENTKIT_DEPLOYMENT_VERSIONPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_RUNTIME_HOSTPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_RUNTIME_PORTPlatform-injectedsrc/frozen-build-runtime.mjs
AGENTKIT_STRICT_RESOURCESConfigurablesrc/host/bootstrap.mjs
AGENTKIT_STUDIO_BUNDLE_DIRPlatform-injectedsrc/host/bootstrap.mjs
AGENTKIT_STUDIO_WORKSPACEPlatform-injectedsrc/host/bootstrap.mjs
AGENTKIT_STUDIO_NATIVE_CHROMIUM_EXECUTABLEPlatform-injectedsrc/host/bootstrap.mjs
AGENTKIT_MCP_INVOCATION_IDENTITYConfigurablesrc/host/services/resources.mjs
AGENTKIT_ENGINE_SERVICE_TOKENDo not setsrc/host/services/star-harness-worker.mjs
AGENTKIT_KS3_ENDPOINT_MODEConfigurablesrc/ks3-endpoints.mjs
AGENTKIT_MCP_BUSINESS_IDENTITYConfigurablesrc/managed-runtime-actions.mjs
AGENTKIT_MODEL_API_KEYDo not setsrc/managed-runtime-definition.mjs
AGENTKIT_MANAGED_CODEX_APIConfigurablesrc/managed-runtime-definition.mjs
AGENTKIT_ENGINE_SERVICE_URLPlatform-injectedsrc/managed-runtime-definition.mjs
AGENTKIT_ENGINE_SERVICE_CA_FILEPlatform-injectedsrc/managed-runtime-definition.mjs
AGENTKIT_ENGINE_SERVICE_WORKSPACEPlatform-injectedsrc/managed-runtime-definition.mjs
AGENTKIT_USER_HOMEPlatform-injectedsrc/managed-runtime-host.mjs
AGENTKIT_WORKSPACE_ROOTConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_MODELConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_SANDBOXConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_APPROVAL_POLICYConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_REASONING_SUMMARYConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_TIMEOUT_MSConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_IDLE_TIMEOUT_MSConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_STREAM_IDLE_TIMEOUT_MSConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_CODEX_MODEL_IDLE_TIMEOUT_MSConfigurablesrc/managed-runtime-host.mjs
AGENTKIT_PROMPT_PREDICTION_ENABLEDConfigurablesrc/prompt-prediction/host.mjs
AGENTKIT_PROMPT_PREDICTION_AUDITConfigurablesrc/prompt-prediction/host.mjs
AGENTKIT_CODEX_BINConfigurablesrc/providers/codex-command.mjs
AGENTKIT_ENGINE_SERVICE_WORKSPACESPlatform-injectedsrc/providers/engine-service-workspaces.mjs
AGENTKIT_ENGINE_SERVICE_MODELPlatform-injectedsrc/providers/engine-service-workspaces.mjs
AGENTKIT_STUDIO_NATIVE_APPLICATION_PREVIEW_ORIGINPlatform-injectedsrc/providers/engine-service-workspaces.mjs
AGENTKIT_STUDIO_NATIVE_APPLICATION_PREVIEW_ENTRYPlatform-injectedsrc/providers/engine-service-workspaces.mjs
AGENTKIT_STUDIO_DEPLOYMENT_TYPEPlatform-injectedsrc/studio-deployments.mjs
AGENTKIT_STUDIO_DESKTOP_VERSIONPlatform-injectedsrc/studio-version.mjs
AGENTKIT_STUDIO_DSH_VERSIONPlatform-injectedsrc/studio-version.mjs
AGENTKIT_TEMPLATE_SERVER_URLConfigurablesrc/template-catalog-source.mjs
AGENTKIT_TEMPLATE_CATALOG_FILEConfigurablesrc/template-catalog-source.mjs
AGENTKIT_TEMPLATE_ENVIRONMENTConfigurablesrc/template-catalog-source.mjs
KSADK_TRAFFIC_SOURCEPlatform-injectedsrc/aicp-resource-connection.mjs
KSADK_LOCAL_SKILLS_DIRPlatform-injectedsrc/host/bootstrap.mjs
KSADK_MODEL_COMPAT_RULEPlatform-injectedsrc/host/services/star-harness-release.mjs
KSADK_KB_DATASET_IDPlatform-injectedsrc/knowledge-tools.mjs
KSADK_KB_TOP_KPlatform-injectedsrc/knowledge-tools.mjs
KSADK_KB_SEARCH_METHODPlatform-injectedsrc/knowledge-tools.mjs
KSADK_KB_SCORE_THRESHOLDPlatform-injectedsrc/knowledge-tools.mjs
KSADK_KB_RERANKING_ENABLEPlatform-injectedsrc/knowledge-tools.mjs
KSADK_LTM_BACKENDPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_INDEXPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_APP_NAMEPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_NAMESPACEPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_TOP_KPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_SCENE_IDPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_FORCE_INMEMORYPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_HTTP_TOKENDo not setsrc/legacy-memory-tools.mjs
KSADK_MEMORY_DB_PATHPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_LTM_HTTP_URLPlatform-injectedsrc/legacy-memory-tools.mjs
KSADK_SANDBOX_BACKENDPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SANDBOX_TEMPLATE_IDPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SKILL_RUNTIME_TEMPLATE_IDPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SANDBOX_TIMEOUTPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SKILL_RUNTIME_TIMEOUTPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SANDBOX_ALLOW_INTERNET_ACCESSPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SKILL_RUNTIME_ALLOW_INTERNET_ACCESSPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SANDBOX_TYPEPlatform-injectedsrc/providers/native-e2b-host.mjs
KSADK_SKILL_SPACE_IDSPlatform-injectedsrc/providers/native-skill-host.mjs
KSADK_SKILL_RUNTIME_BACKENDPlatform-injectedsrc/providers/native-skill-runtime.mjs
KSADK_SKILL_PROJECT_NAMEPlatform-injectedsrc/providers/native-skill-runtime.mjs
KSADK_SKILL_ARTIFACT_PROJECTPlatform-injectedsrc/providers/native-skill-runtime.mjs
AGENTENGINE_INNER_KOP_URLPlatform-injectedsrc/host/bootstrap.mjs
AGENTENGINE_INNER_IAM_URLPlatform-injectedsrc/host/bootstrap.mjs
AGENTENGINE_MANIFEST_PATHPlatform-injectedsrc/host/bootstrap.mjs
AGENTENGINE_NETWORK_MODEPlatform-injectedsrc/ks3-endpoints.mjs
AGENTENGINE_RESOURCE_SERVER_URLPlatform-injectedsrc/managed-resource-client.mjs
AGENTENGINE_AGENT_IDPlatform-injectedsrc/managed-runtime-definition.mjs
AGENTENGINE_AGENT_VERSION_IDPlatform-injectedsrc/managed-runtime-definition.mjs
AGENTENGINE_MANAGED_RUNTIME_NAMEPlatform-injectedsrc/managed-runtime-manifest.mjs
AGENTENGINE_MANAGED_RUNTIME_VERSIONPlatform-injectedsrc/managed-runtime-manifest.mjs
AGENTENGINE_MANIFEST_PROTOCOLPlatform-injectedsrc/managed-runtime-manifest.mjs
AGENTENGINE_MANIFEST_SHA256Platform-injectedsrc/managed-runtime-manifest.mjs
OTEL_EXPORTER_OTLP_PROTOCOLPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_HEADERSPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_ENDPOINTPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_TRACES_ENDPOINTPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_TRACES_HEADERSPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_TRACES_PROTOCOLPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATEPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_EXPORTER_OTLP_CERTIFICATEPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_SERVICE_NAMEPlatform-injectedsrc/managed-runtime-host.mjs
OTEL_RESOURCE_ATTRIBUTESPlatform-injectedsrc/managed-runtime-host.mjs
PATHConfigurablesrc/host/services/star-harness-release.mjs
STUDIO_DOWNLOAD_PROD_KS3_BUCKETPlatform-injectedsrc/ks3-release-store.mjs
DOWNLOAD_PROD_KS3_BUCKETPlatform-injectedsrc/ks3-release-store.mjs
CLOUD_MONITOR_OTLP_ENDPOINTPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_OTLP_TRACES_ENDPOINTPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_OTLP_HEADERSPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_OTLP_PROTOCOLPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_OTLP_TRACES_PROTOCOLPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_OTLP_TRACES_HEADERSPlatform-injectedsrc/managed-runtime-host.mjs
CLOUD_MONITOR_APP_KEYDo not setsrc/managed-runtime-host.mjs
DSH_PLUGIN_INDEX_URLConfigurablesrc/dsh-plugin-catalog.mjs
DSH_OTEL_CA_PEM_BASE64Platform-injectedsrc/managed-runtime-host.mjs
DSH_OBSERVABILITY_CAPTURE_CONTENTPlatform-injectedsrc/managed-runtime-host.mjs
DSH_HOMEConfigurablesrc/providers/native-dsh-tools.mjs
DSH_AGENTS_HOMEConfigurablesrc/providers/native-dsh-tools.mjs
E2B_API_URLConfigurablesrc/providers/native-e2b-host.mjs
E2B_DOMAINConfigurablesrc/providers/native-e2b-host.mjs
E2B_API_KEYDo not setsrc/providers/native-e2b-host.mjs
E2B_SANDBOX_URLConfigurablesrc/providers/native-e2b-sdk-transport.mjs
KSYUN_ACCESS_KEYDo not setsrc/bundle-source.mjs
KSYUN_SECRET_KEYDo not setsrc/bundle-source.mjs
KSYUN_SESSION_TOKENDo not setsrc/bundle-source.mjs
CODEX_HOMEConfigurablesrc/model-credential-sync.mjs
GITHUB_TOKENDo not setsrc/dsh-plugin-discovery.mjs
KS3_BUCKETPlatform-injectedsrc/ks3-release-store.mjs
OPENAI_BASE_URLConfigurablesrc/managed-runtime-definition.mjs

Common settings

VariableDefaultPurpose
AGENTKIT_HOME~/.agentkitStudio data directory: grants, caches, cloud Skills
DSH_HOME~/.dshDSH host directory; point it at a temp directory when developing
DSH_AGENTS_HOME~/.agentsRoot for native Tools that resolve an Agent directory
AGENTKIT_STUDIO_DSH_PLUGIN_INDEXemptyHTTPS address of a remote plugin index; empty means builtin only
AGENTKIT_EXECUTION_POLICY_DEFAULTworkspace-writeDefault execution policy for a new Agent
AGENTKIT_EXECUTION_POLICY_MAXworkspace-writeHighest execution policy an Agent may request
AGENTKIT_STRICT_RESOURCESemptyTruthy fails on a missing resource instead of degrading
AGENTKIT_PROMPT_PREDICTION_ENABLEDemptyEnables prompt prediction
CODEX_HOME~/.codexCodex App Server home
OPENAI_BASE_URLemptyOpenAI-compatible endpoint; injected by the platform in container deployments

Source is authoritative for every default; the Default column only repeats the fallback the code actually reads.

Version and compatibility

ItemValueNotes
Environment names132Renaming one is a breaking change
Direct reads8process.env.X literals
Host forwarded30Declared by *_ENV_NAMES constant arrays
Platform-injected84Manual values are overwritten

Developer entry points

ItemSource
Global configurationsrc/global-config.mjs
Observabilitysrc/observability-otel.mjs
Host forwarding allow-listsrc/managed-runtime-host.mjs
Container deployment environmentsrc/container-deployment-env.mjs
Plugin index addresssrc/dsh-plugin-index.mjs

Related tests:

Test fileLocation
container-deployment-env.test.mjstests/container-deployment-env.test.mjs
global-config.test.mjstests/global-config.test.mjs
portable-bundle.test.mjstests/portable-bundle.test.mjs
observability-otel.test.mjstests/observability-otel.test.mjs

On this page