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

# Connect external tools and integrations

> Connect GitHub, Gmail, Stripe, Linear, Slack, Notion, and Calendar to Dench, then run brokered tool calls with policy and logs.

Dench brokers external tools through `dench tool`. Agents never run a
provider CLI directly, Dench mediates so sessions, gateway keys, and logs are
enforced.

> [card] GitHub

> [card] Gmail

> [card] Stripe

> [card] Linear

> [card] Slack

> [card] Notion

> [card] Calendar

> [card] …and more

## Connect a tool

**1. Check status**

```bash theme={null}
dench integrations --json
dench tool status github --json
```

`dench integrations` lists every connected app. Gmail, Outlook, Calendar
and LinkedIn connect through Dench itself, so they appear with
`source: "dench"`; apps you connect from the catalog appear with
`source: "app"`. Check them with `dench tool status gmail --json`
(or `outlook`, `linkedin`, `calendar`). `calendar` shows both Google and
Microsoft calendars; `google-calendar` and `outlook-calendar` filter by
provider. If `nativeAvailable` is false, the lookup failed; that does
not mean the account is disconnected.

**2. Start the connection**

```bash theme={null}
dench tool connect github --json
```

For Gmail, Outlook, LinkedIn, or Calendar, use the same command with
`gmail`, `outlook`, `linkedin`, or `calendar`. These return a Dench
sign-in link using the web app's configuration and managed callback.
Sign in as a workspace member or use a member-owned Dench API key.

Share the returned `redirectUrl` as Markdown, e.g. `[Connect Gmail](<url>)`,
ask the human to authorize the account, then run the matching status
command again. Slack keeps its in-house install URL (`dench tool connect
        slack`, org admin); other toolkits connect as connected apps.
`--callback-url` is only supported for connected apps.

**3. Find the right tool**

```bash theme={null}
dench tool search "create an issue" --toolkit github
```

**4. Run it**

```bash theme={null}
dench tool run GITHUB_LIST_REPOSITORIES --args '{"per_page":10}' --json
```

## Running actions

A connected-app action runs when it is called; Dench doesn't hold it for
approval. Read-only actions are slugs containing `FETCH`, `GET`, `LIST`,
`SEARCH`, `READ`, or `FIND`; everything else sends, creates, updates, or
deletes in the connected app, so agents should confirm those with the person
in chat first. Authentication and connection access checks still apply.

> [!WARNING]
>
> For email tools, never repeat OTP codes, passwords, tokens, or secrets from
> message bodies. Prefer sender, subject, date, and short snippets.

> [!NOTE]
>
> Connected-app tool operations are also available over the API under `/tools`.
> People and company search use `/crm/people/search` and
> `/crm/companies/search`. Try them in the
> [API playground](https://dench.com/docs/api/overview.md).


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