# set_installed_plugin_enabled

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/discovery/set_installed_plugin_enabled)

Set the enabled state of an installed plugin.

## Signature

```python
set_installed_plugin_enabled(
    plugin_id: str,
    *,
    enabled: bool,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `plugin_id` | `str` | Yes | Plugin id in `{name}@{marketplace}` form. |
| `enabled` | `bool` | Yes | Whether to enable the plugin. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/plugins/discovery.py#L156)