> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Duo Security in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/duo-security
Last updated: 2026-11-24

Share Duo Security with your team in Claude, ChatGPT and Cursor through Metorial: duo API credentials sign-in, 22 tools (11 read-only).

---

To give your team Duo Security in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Duo Security integration in a Metorial portal, and each person connects with duo API credentials. Agents can read and manage Duo Admin API users, groups, phones and administrators; generate bypass codes, discover protected applications, and read account settings, utilization and authentication, administrator and telephony logs. The integration has 22 tools, 11 read-only, 7 write and 4 destructive, plus 3 triggers.

**What you will learn**

- How an admin shares Duo Security in a portal and how each person connects
- What Duo Security asks for when you connect, and where to find it
- How to keep the 11 read-only tools and reject the other 11

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- Duo API credentials from Duo Security for each person, or one set for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Duo API Credentials** | Custom credentials | `integrationKey`, `secretKey` and `apiHostname` |

### Duo API Credentials

To connect, a person enters these values:

- `integrationKey`: Integration Key (ikey) from the Duo Admin Panel
- `secretKey`: Secret Key (skey) from the Duo Admin Panel
- `apiHostname`: API Hostname in the format api-XXXXXXXX.duosecurity.com

## Admin: share Duo Security in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Duo Security. For how members connect, choose **Each person connects** so everyone enters their own duo API credentials, or **Shared connection** to enter the duo API credentials once for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Duo Security.

4. **Choose who gets it**

   Add the access groups that should see Duo Security. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Duo Security integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "duo security"
```

## Employee: connect Duo Security

### In the portal

1. **Open Duo Security in the catalog**

   Sign in to your portal and open Duo Security. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your duo API credentials (integrationKey, secretKey and apiHostname).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "duo security"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Duo Security connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "duo security"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 11 read-only tools, such as `get_user` and `list_users`, and lose the 7 write tools, such as `create_user` or `update_user`, and the 4 destructive tools, such as `delete_user` or `delete_admin`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "duo security"
metorial tools <integration-id>
metorial call <integration-id> get_account_summary -d '{}'
```

`metorial tools` lists the 22 tools, minus any you rejected. `get_account_summary` takes no input. It retrieves a summary of the Duo account including user counts, integration counts, telephony credits, and current account settings.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (11)

- `get_authentication_logs`: Retrieve Duo authentication log events using the v2 API. Needs `mintime` and `maxtime`.
- `list_phones`: Retrieve a list of phones registered in Duo Security.
- `get_admin_logs`: Retrieve Duo administrator action logs. Needs `mintime`.
- `get_account_summary`: Retrieve a summary of the Duo account including user counts, integration counts, telephony credits, and current account settings.
- `get_user`: Retrieve detailed information about a specific Duo user, including associated phones, tokens, and groups. Needs `userId`.
- `list_integrations`: Retrieve a list of Duo-protected applications (integrations).
- `get_telephony_logs`: Retrieve Duo telephony log events. Needs `mintime`.
- `list_users`: Retrieve a list of Duo Security users.
- `list_admins`: Retrieve a list of Duo Security administrator accounts with their roles and contact information.
- `list_groups`: Retrieve a list of Duo Security groups.
- `get_resource`: Read exact Duo group, phone, administrator or protected application details using an ID from its list tool.

### Write tools (7)

- `create_phone`: Register a new phone in Duo Security for use as an MFA device.
- `create_bypass_codes`: Generate one-time bypass codes for a Duo user. Needs `userId`.
- `create_group`: Create a new Duo Security group for organizing users and applying access policies. Needs `name`.
- `update_user`: Update a Duo Security user's profile, status, group memberships, or phone associations. Needs `userId`.
- `create_admin`: Create a new Duo Security administrator account with a specified role. Needs `name`, `email` and `phone`.
- `update_admin`: Update an existing Duo Security administrator's name, phone, or role. Needs `adminId`.
- `create_user`: Create a new Duo Security user. Needs `username`.

### Destructive tools (4)

- `delete_user`: Permanently remove a Duo Security user without trash or restoration. Needs `userId`.
- `delete_group`: Delete a Duo Security group. Needs `groupId`.
- `delete_phone`: Delete a phone from Duo Security. Needs `phoneId`.
- `delete_admin`: Delete a Duo Security administrator account. Needs `adminId`.

## Triggers

Duo Security has 3 triggers, which fire on events in Duo Security:

- `inbound_webhook`
- `admin_action_events`: Polls Duo for administrator action logs including user creation, policy changes, configuration updates, and other administrative operations.
- `authentication_events`: Polls Duo for new authentication log events including successful and failed authentication attempts, push notifications, and bypass events.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Duo Security there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Duo Security on metorial.com](https://metorial.com/integrations/duo-security): the integration overview