Availability
The controls on this page are available from Tyk AI Studio 2.3.0.
Overview
A plugin is a program that runs next to AI Studio or an Edge Gateway. Each plugin runs as a separate process. A plugin can read AI Studio data only through the Service API, within the scopes that an administrator approved. On this page, the host is the AI Studio or Edge Gateway process that starts and runs the plugin. A plugin runs with the privileges of the host user. It can read and write the files that the host user can access. It can also connect to any network address that the host can reach. This table shows what the platform controls and what it does not control:Signature Verification
AI Studio and the Edge Gateway can verify the cosign signature of each OCI plugin before they load it. Signature verification is an Enterprise Edition feature.- The Community Edition does not verify signatures. The signature settings have no effect. OCI plugins load, and AI Studio records them as unverified. The host logs a warning once at startup.
- In the Enterprise Edition, when signatures are required and no verifier is available, the host refuses the plugin. It never loads the plugin unverified.
false. Unsigned plugins and plugins signed with an unknown key also do not load.
The host verifies signatures in its own process. You do not need the cosign binary at runtime, so verification also works in the distroless images. Use the cosign CLI only to sign plugins. The host reads signatures from the registry with the same registry authentication (OCI_PLUGINS_REGISTRY_*) as the plugin itself.
The host accepts two signature formats:
- A cosign v2 signature, stored as the
sha256-<digest>.sigtag. - A cosign v3 Sigstore bundle, attached to the plugin as an OCI referrer.
Signature Settings
Set these variables on AI Studio and on each Edge Gateway. An invalid value stops the process at startup.Public Keys
The host always trusts the Tyk signing key. You cannot turn it off. To trust your own keys or the keys of a publisher, add them on AI Studio and on each Edge Gateway that loads the plugins:
AI Studio and the Edge Gateway use the same variable names for keys. Refer to OCI_PLUGINS_PUBKEY_* for AI Studio and OCI_PLUGINS_PUBKEY_* for the Edge Gateway.
- Command without
?pubkey=: The host tries each configured key, and the Tyk key first. The plugin loads if one key verifies it.- Marketplace installations use this behavior.
- To trust a new publisher, add the key. You do not change the install command.
- Command with
?pubkey=<key>: The host uses only that key. For example,oci://registry.example.com/plugins/my-plugin@sha256:<digest>?pubkey=CI.
Transparency Log Policy
By default, a signature must also have a valid entry in the Rekor transparency log for the signing key. Rekor is the public log of the Sigstore project, which records each signature. The host checks the entry offline against the embedded Sigstore trusted root. Set the policy withAI_STUDIO_OCI_TLOG_POLICY on AI Studio and OCI_PLUGINS_TLOG_POLICY on each Edge Gateway:
Keep
required. With optional, a user who can write to your registry can remove the log entry. The signature then verifies against the key only. Use disabled only for air-gapped signing (cosign sign --tlog-upload=false).
If you run a private Sigstore deployment, set AI_STUDIO_OCI_TRUSTED_ROOT_FILE and OCI_PLUGINS_TRUSTED_ROOT_FILE to its trusted_root.json. Use the same setting after a Rekor key rotation.
Restrict Plugin Sources
You can refuse complete plugin deployment types. AI Studio and each Edge Gateway apply their own setting.
An unknown value, such as
ocii, stops the process at startup. A list without a source, such as ,, also stops the process. Thus, a typo cannot allow all sources or refuse all sources. The host logs a restricted policy at startup.
The host classifies a plugin command by its prefix. The prefixes are case-sensitive:
When a source is not allowed:
- AI Studio refuses to create or update a plugin with that command, including marketplace installations and upgrades. The API returns
400.- AI Studio does not fetch the OCI plugin or its manifest, and it does not load the plugin.
- The AI Studio UI shows only the allowed types. When
ociis not allowed, AI Studio turns off marketplace installations. - The Edge Gateway does not load the plugin. This applies even when AI Studio sends the plugin. The refusal shows in the plugin health and the logs of the Edge Gateway.
- Existing plugins with that source stay in the database. You can read, edit or delete them. They do not load, and you cannot save them with that command.
To make plugin loads repeatable, pin each OCI plugin by digest (
@sha256:<digest>). A tag can move to different content.
Internal Registries and Hosts
From 2.3.0, AI Studio and the Edge Gateway refuse a plugin whose host is an internal address. For the list of internal addresses, refer to Outbound Network Policy.- The check applies to the registry of an
oci://plugin and to the host of agrpc://plugin. - It also applies to plugins that are already installed and cached.
- A host name that does not resolve also counts as internal.
plugin host "<host>" is an internal address.
To use an internal registry or plugin host, use one of these options:
For the Edge Gateway, refer to LLM_UPSTREAM_ALLOWED_INTERNAL_HOSTS and ALLOW_INTERNAL_NETWORK_ACCESS in the Edge Gateway environment variables.

docker.tyk.io, set LLM_UPSTREAM_ALLOWED_INTERNAL_HOSTS=docker.tyk.io,dl.cloudsmith.io.
If DNS is not available, a cached plugin that passes its checks still loads. The host logs a warning that names the registry.
Plugin Environment
From 2.3.0, AI Studio and the Edge Gateway start eachfile:// and oci:// plugin with an explicit environment. A plugin does not get the environment of its host. A plugin gets only these host variables:
The plugin does not get other host variables, such as the database URL, the encryption keys or the license.
To pass more variables, set PLUGIN_ENV_PASSTHROUGH on AI Studio and PLUGIN_ENV_PASSTHROUGH on the Edge Gateway.
- The pass-through applies to every plugin that the host starts. List only the variables that your plugins need.
- The host logs a warning when the pass-through includes a host secret. Examples are
ENCRYPTION_KEY,DATABASE_URL,TYK_AI_LICENSE, or any name that ends in_API_KEY,_SECRET,_TOKENor_PASSWORD. The host still passes the variable. - The host passes proxy variables by default. Do not put credentials in a proxy URL unless plugins can use them.
ALLOW_INTERNAL_NETWORK_ACCESSis not passed by default.
grpc:// plugin runs outside the host. Its environment is the environment of its own process.
Plugin Configuration and Secrets
AI Studio does not encrypt plugin configuration. AI Studio sends it to each Edge Gateway, and the plugin receives it in plain text. Do not put a literal credential in plugin configuration. From 2.3.0, the management API and the admin console do not return the value of a secret field. They show[redacted] in its place, also in plugin lists, the plugins of an LLM or agent, plugin schedules, and system.plugin.* events.
- A secret field is a field that the configuration schema of the plugin marks with
"format": "password"or"writeOnly": true, at any depth. - If AI Studio has no schema for the plugin, it redacts string fields by name. Examples are names that contain
password,secret,token,api_key,credential, orauthorization. - When you save the configuration with
[redacted]in a secret field, AI Studio keeps the stored value. AI Studio refuses[redacted]in any other field with400. GET /api/v1/plugins/ui-registryreturns the configuration and the command of a plugin only to a caller withplugins:read.- Administrators with plugin access can still read fields that the schema does not mark as secret.
$SECRET/NAME.
AI Studio resolves the reference before it starts the plugin. For a plugin that runs on an Edge Gateway, AI Studio sends the value encrypted. The stored configuration keeps the reference.
- AI Studio does not resolve a reference inside a longer string, an array or an object.
- AI Studio does not resolve
$ENV/NAMEfor plugins. - To set or change a
$SECRET/reference, you need read access to secrets. - A plugin cannot add a reference to its own configuration.
Scopes and Administrator Approval
A plugin declares the Service API scopes that it needs in its manifest. An administrator approves the scopes when they install the plugin. From 2.3.0, the host refuses each Service API call outside the approved scopes. The call fails withPermissionDenied and the message insufficient scope: <scope> (plugin: <name>).
- A plugin can read and update only its own configuration.
- When a new plugin version declares new scopes, an administrator must approve them before the upgrade. If the scopes are not approved, the upgrade fails with
Scopes Not Approved. - A change to the command or the OCI reference of a plugin withdraws the approval. AI Studio stops the old process and loads the new binary. The edit form then shows the scopes to approve. Until an administrator approves them, AI Studio refuses the Service API calls of the plugin. If the new binary does not load, the plugin does not run. A change that keeps the command keeps the approval.
- Edge Gateways do not enforce the approval. An edge gives a plugin the scopes that its record declares, also while the approval is pending in AI Studio. Review the declared scopes before you change the command of a plugin.

Credentials in Events and Object Hooks
Plugins can subscribe to system events and register object hooks. From 2.3.0, literal credentials show as[redacted] in these payloads. This applies to LLM API keys, tool authentication keys, datasource connection strings, user password hashes and tokens, App gateway keys and guardrail secrets. $SECRET/ and $ENV/ references stay visible.
If a before_* hook returns an object where a credential is still [redacted], AI Studio keeps the stored value.
Cached Plugin Binaries
AI Studio and the Edge Gateway cache each pulled OCI plugin binary. The cache directory isAI_STUDIO_OCI_CACHE_DIR on AI Studio and OCI_PLUGINS_CACHE_DIR on the Edge Gateway.
When the host fetches a binary, it records the SHA-256 hash. Each time the plugin loads, the host compares the cached binary with the recorded hash.
If the binary changed on disk, the host does not use the cached copy. It fetches the plugin from the registry again and verifies the signature again. If that fetch fails, the plugin does not load.
After an upgrade to 2.3.0, entries from older releases have no recorded hash. The host fetches each OCI plugin again on its first load, so make sure that the registry is available. The host logs Cached OCI plugin failed its integrity check, fetching it again for each plugin. These warnings are normal.
The hash check finds a binary that changed or became corrupt on disk. It does not stop a user who can change both the binary and its record. Make the cache directory writable only by the service user.
FIPS Plugin Variants
AI Studio and the Edge Gateway are available as FIPS 140-3 builds. A FIPS deployment is compliant only if each plugin is also a FIPS build. Plugin publishers can release FIPS variants, with the<version>-fips tag.
In FIPS mode, the host logs a warning when it starts a plugin binary that is not a FIPS build. The plugin still starts. Use RSA 2048 or larger, or ECDSA, for plugin signing keys in FIPS mode.
Production Checklist
- Install only plugins that you trust.
- Use OCI plugins pinned by digest from an allowed registry, with signatures required (Enterprise Edition).
- Allow only the plugin sources that you use, on AI Studio and on each Edge Gateway.
- Keep
ALLOW_INTERNAL_NETWORK_ACCESSunset. Use the Allow internal host switch orLLM_UPSTREAM_ALLOWED_INTERNAL_HOSTSfor internal registries. - Keep
PLUGIN_ENV_PASSTHROUGHshort, and act on each warning that it logs. - Store plugin credentials as
$SECRET/references. - Review the scopes in each manifest before you approve them.
- Restrict network egress at the network layer.
- Run the host as a non-root user, and make the OCI cache directory writable only by that user.