> ## Documentation Index
> Fetch the complete documentation index at: https://openworklabs.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For agents: install the OpenWork desktop app with `brew install --cask openwork` (macOS) or from https://openworklabs.com/download. Do not run `npx openwork`; the npm package named `openwork` is a different project.
> Connect an agent to OpenWork with the MCP Gateway: `claude mcp add --transport http openwork https://api.openworklabs.com/mcp/agent`. Teams sign up at https://app.openworklabs.com?mode=sign-up.
> Step-by-step agent guide: https://openworklabs.com/docs/start-here/use-openwork-from-an-ai-agent.md
> Connect Slack (any organization admin): https://openworklabs.com/docs/slack/connect-slack.md. OpenWork in Slack (@openwork bot) is private alpha for approved organizations. Setup guide: https://openworklabs.com/docs/slack/overview.md. Agent skill: https://openworklabs.com/.well-known/agent-skills/set-up-openwork-slack/SKILL.md.

# Agents

> Add or remove one connector on an agent, and put an agent in a Slack channel, from the terminal.

> [!WARNING]
>
> These commands are in preview and are available to customers on request. Each one is off until OpenWork turns it on for your organization, and how it works may change. To try one, ask your OpenWork contact.

The `openwork agents` commands create and run [agents](https://openworklabs.com/docs/agents/overview.md) from the terminal. Run the CLI and sign in as described in the [CLI overview](https://openworklabs.com/docs/cloud/cli.md).

```sh theme={null}
openwork agents list
openwork agents get "Accounting Bot"
```

Every agent command needs agents turned on for the organization. The commands below each need a preview feature of their own as well.

| Command | What it does | Ask for |
| - | - | - |
| [`agents connectors`](#connectors) | Adds or removes one connector on an agent | Connector changes for agents |
| [`agents slack`](#slack) | Sends the bot's mentions in a channel to an agent | Agents in Slack channels |

A command whose feature is off stops with `feature_disabled` and changes nothing.

***

## connectors

Change one connector on an agent without resending its other tool settings.

```sh theme={null}
openwork agents connectors list "Accounting Bot"
openwork agents connectors add "Accounting Bot" "Acme Tracker"
openwork agents connectors remove "Accounting Bot" "Acme Tracker"
```

Name the agent and the connector by name or by id.

### add

Lets the agent use one more connector. It is refused when:

* you cannot use the connector yourself,
* the agent's owner cannot use it or has not connected it, or
* your organization blocks that connector for agents.

### remove

Turns the connector off for the agent. The agent's rules for that connector's individual tools are kept, so adding it back restores them.

### list

Shows each connector and whether the agent can use it.

### When the change applies

| You are | What happens |
| - | - |
| The agent's owner | The change applies from the agent's next run. |
| A manager of an agent shared with you | The change waits for the owner's approval. |
| Anyone else | The command is refused. |

***

## slack

Put an agent in a Slack channel, so a mention of the OpenWork bot there goes to that agent instead of the speaker's own assistant.

```sh theme={null}
openwork agents slack add "Accounting Bot" --channel C0123ABCD
openwork agents slack list "Accounting Bot"
openwork agents slack remove "Accounting Bot" --channel C0123ABCD
```

> [!NOTE]
>
> Agents do not answer in channels yet. The preview decides which agent owns a channel and who may talk to it. Someone who is let through is told privately that the agent can't answer yet, and nothing runs for their message.

The organization needs [Slack connected](https://openworklabs.com/docs/slack/connect-slack.md). Invite the bot to the channel first with `/invite @openwork`.

### add

| Flag | Description |
| - | - |
| `--channel <channel-id>` | The channel's id, such as `C0123ABCD`. Find it at the bottom of the channel's details in Slack. Channel names are not accepted. |

A channel has one agent. An agent can be in several channels.

### remove

| Flag | Description |
| - | - |
| `--channel <channel-id>` | The channel to take the agent out of. |
| `--force` | Skip the confirmation. |

After this, mentions in the channel go to each speaker's own assistant again. Archiving the agent or disconnecting Slack does the same.

### Who the agent listens to

Someone who mentions the bot in the channel is let through only when they can already use the agent:

* its owner,
* a person it is shared with, or
* a member of a team or organization it is shared with.

Everyone else gets one private line saying they have no access. No model or tool is called for them, and nothing is spent.

### Who can change channels

You need to be the agent's owner or a manager, hold the **Manage connections** permission, and have signed in recently.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.