Install a plugin
midas plugin @acme/midas-plugin
midas plugin @acme/midas-plugin --global
midas plugin ./local-plugin.tsWithout --global, the plugin is added to the current project. With it, the plugin is available in every project. The command installs the package and updates config.
Load a local plugin
A plugin can also be a TypeScript or JavaScript file in .midas/plugins/ or ~/.config/midas/plugins/. Use this for a team plugin you do not want to publish to npm.
{
"plugin": [
"@acme/midas-plugin",
["./plugins/company-auth.ts", { "issuer": "acme" }]
]
}What a plugin can add
- An auth provider, so a company can sign in through its own identity service.
- A hook on a lifecycle event, such as a session or a tool call.
- A TUI command or a workspace adapter.
- Configuration that other parts of Midas can read.
Safety
A plugin is code running on your machine with your account. It can do more than a skill, which is just instructions. Read the source before you install one, and pin a version for a team.
Related
- Configuration has the full plugin section.
- Skills is the instruction path for a repeatable workflow.
- MCP connects an external tool.