# --plugin-dir Flag

> It loads a plugin from a folder for one session.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --plugin-dir, --plugin-url

## Think of it like

It is like you try on a coat in the shop before you buy it.

## Definition

--plugin-dir loads a plugin from a folder or a .zip file, for this session only. Give one path per flag, and repeat the flag for more. --plugin-url fetches a plugin .zip from a web address the same way. Nothing is installed, so the plugin is gone when the session ends.

## Example

Lucy is building a plugin. After each change she starts claude --plugin-dir ./my-plugin to try it. There is nothing to install or remove.

## Example code

```bash
claude --plugin-dir ./my-plugin
```

Try a plugin you are building.

## Why it matters

You can test a plugin or try someone else's without changing your setup.

## Common mistake

Expecting it to still be there next time. It is only for this session. Use claude plugin install to keep it.

## Three principles

- **Folder or .zip.** One per flag.
- **--plugin-url.** From the web.
- **This session only.** Not installed.

## Related terms

- [Claude Code Plugin](https://learn.benibix.com/term/ai/claude-code-plugin)
- [claude plugin install Command](https://learn.benibix.com/term/ai/claude-plugin-install-command)
- [/reload-plugins Command](https://learn.benibix.com/term/ai/reload-plugins-command)

## Taught in

- [The claude plugin Commands](https://learn.benibix.com/learn/ai-claude-code-commands/claude-plugin-commands): Claude Code Commands, 13/17

---

Source: https://learn.benibix.com/term/ai/plugin-dir-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
