---
title: "oz0 plugin new"
description: "Create a plugin from a template."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/plugin/new"
---
# oz0 plugin new

> Create a plugin from a template.

For: Operators and developers looking up a command.

Create a plugin from a template.

Every template writes AGENTS.md, with the manifest's rules and the commands to lint, test, run in dev and pack the plugin, a Claude Code skill (.claude/skills/oz0-plugin) that runs them, a README.md with the sections the hub's page shows (what the plugin does, how to set it up, its limits and where to read more), and a LICENSE placeholder: the plugin has no licence until you put a licence's text there and declare it as license: in oz0-plugin.yaml, and lint warns until then.

Tool IDs and agent names start with the plugin's name.

Templates:

- byo-agent (your own agent code, a script, LangGraph or CrewAI, behind the harness protocol, in Python)
- flow-tool (a fixed procedure as a flow, offered to an agent as one flow tool, over an MCP tool in Python)
- harness-adk (an agent on Google ADK (google-adk) behind the harness protocol, in Python)
- harness-agent-framework (an agent on Microsoft Agent Framework (agent-framework-core) behind the harness protocol, in Python)
- harness-strands (an agent on AWS Strands (the strands-agents SDK) behind the harness protocol, in Python)
- mcp-connector (a connector that wraps a vendor's own remote MCP server, on the customer's own OAuth app)
- procedure (an agent that follows a written procedure a named expert approves)
- python-agent (an agent on Pydantic AI with an MCP tool in Python)
- python-tool (an MCP tool in Python, with the official MCP SDK)
- quarantine-dual-model (the dual-model pattern on oz.quarantine - a privileged agent that acts, a quarantined one that reads)
- quarantine-map-reduce (LLM map-reduce on oz.quarantine - one quarantine child per untrusted document, a typed reduce)
- ts-tool (an MCP tool in TypeScript, with the official MCP SDK, run by the node's Node.js 24).

## Usage

```bash
oz0 plugin new <dir> [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --description
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      one line about what the plugin does
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --name
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        the directory's name
      </code>
    </td>
    
    <td>
      plugin name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --template
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        python-tool
      </code>
    </td>
    
    <td>
      template: byo-agent, flow-tool, harness-adk, harness-agent-framework, harness-strands, mcp-connector, procedure, python-agent, python-tool, quarantine-dual-model, quarantine-map-reduce, ts-tool
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
