---
title: "oz0 channel bind"
description: "Create or replace a binding."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/channel/bind"
---
# oz0 channel bind

> Create or replace a binding.

For: Operators and developers looking up a command.

Create or replace a binding. The first --agent is the one a mention or a slash command starts when it names
none; a message whose first word is another of the agents starts that one. --workspace and --room narrow the
binding to one workspace and one room of the chat system (their IDs there); the most specific binding wins.

## Usage

```bash
oz0 channel bind <name> --channel <channel> --agent <agent> [--agent <agent>...] [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --agent
      </code>
    </td>
    
    <td>
      stringArray
    </td>
    
    <td>
      
    </td>
    
    <td>
      an agent the channel may start (repeatable; the first is the default)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --allow
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        members
      </code>
    </td>
    
    <td>
      who may start the agents: members (mapped people, as their accounts) or everyone (as service:channel/&lt;name>)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --channel
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      the channel, as its plugin names it (such as slack or discord)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --purpose
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      the purpose the jobs it starts name: one each of its agents declares
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --room
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only in this room (a channel ID)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --team
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      the team the jobs count toward for quotas
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --workspace
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only in this workspace of the chat system (a Slack workspace or Discord server ID)
    </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.
