Skip to content
BENIBIX Learn

plugins Option

Also known as SdkPluginConfig, Agent SDK plugins, Claude Agent SDK plugins

The option that adds plugins from Claude Code to your agent.

Think of it like

It is like getting a full box of tools, not one tool at a time.

Example

A team already has a plugin of code review skills for Claude Code. They add its folder to plugins, and their review bot gets the same skills.

Why it matters

One plugin can serve both the people who use Claude Code and the agents you build.

Definition

plugins is the Agent SDK option that loads Claude Code plugins into an agent. Each entry gives a path to a plugin folder on your machine, since only local plugins are supported. The agent then gets the plugin's skills, hooks, subagents, commands and MCP servers. A plugin built for Claude Code works the same way here. You can skip a plugin's MCP servers if your app runs them itself.

Example code

typescript
plugins: [{ type: "local", path: "./review-plugin" }]
Load one plugin from a local folder.
One plugin carries skills, hooks, subagents and MCP servers at once.

Common mistake

Giving it a marketplace name. It only takes a path to a folder on disk.

Key takeaways

  1. 1
    Local folders only. type: local and a path.
  2. 2
    Everything inside. Skills, hooks, agents, MCP.
  3. 3
    Same plugin format. As Claude Code.