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

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

Share Replicate with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 34 tools (21 read-only).

---

To give your team Replicate in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Replicate integration in a Metorial portal, and each person connects with an API token. Agents can run, fine-tune, and deploy machine learning models via API. The integration has 34 tools, 21 read-only, 7 write and 6 destructive, plus 3 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API token from Replicate for each person, or one 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 |
| --- | --- | --- |
| **API Token** | API token | `token` |

### API Token

To connect, a person enters:

- `token`: Replicate API token (starts with r8_)

## Admin: share Replicate 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 Replicate. For how members connect, choose **Each person connects** so everyone enters their own API token, or **Shared connection** to enter one API token for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Replicate. 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 Replicate integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search replicate
```

## Employee: connect Replicate

### In the portal

1. **Open Replicate in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API token (token).

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 replicate
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Replicate 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 replicate
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 21 read-only tools, such as `get_file` and `get_model`, and lose the 7 write tools, such as `create_file` or `create_model`, and the 6 destructive tools, such as `delete_file` or `delete_model`.

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 replicate
metorial tools <integration-id>
metorial call <integration-id> get_account -d '{}'
```

`metorial tools` lists the 34 tools, minus any you rejected. `get_account` takes no input. It gets information about the currently authenticated Replicate account, including username, name, and account type.

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

## Tools

### Read-only tools (21)

- `list_hardware`: List available hardware options on Replicate.
- `list_files`: List files that have been uploaded to Replicate.
- `search_models`: Search for public models, collections, and documentation on Replicate. Needs `query`.
- `get_account`: Get information about the currently authenticated Replicate account, including username, name, and account type.
- `list_trainings`: List recent training jobs for your account, sorted by creation time (newest first).
- `get_model`: Get details about a specific model on Replicate, including its description, latest version, run count, and input/output schema. Needs `owner` and `modelName`.
- `get_collection`: Get details about a specific collection, including all models in the collection. Needs `slug`.
- `list_model_versions`: List all versions of a specific model. Needs `owner` and `modelName`.
- `get_deployment`: Get details about a specific deployment, including its current release configuration, hardware, and scaling settings. Needs `owner` and `deploymentName`.
- `get_file`: Get metadata for a specific uploaded file, including its size, type, checksums, and expiration time. Needs `fileId`.
- `list_collections`: List curated collections of models on Replicate, grouped by use case (e.g. text-to-image, super-resolution).
- `list_deployments`: List all deployments for your account.
- `get_prediction`: Retrieve the current status and results of a prediction. Needs `predictionId`.
- `list_predictions`: List recent predictions for your account.
- `get_training`: Retrieve the current status and results of a training job. Needs `trainingId`.
- `list_public_models`: List public models on Replicate with sorting options.
- `get_model_version`: Get a specific model version, including the OpenAPI schema that describes its inputs and outputs. Needs `owner`, `modelName` and `versionId`.
- `list_model_examples`: List example predictions saved by a model author to demonstrate a model's capabilities. Needs `owner` and `modelName`.
- `get_model_readme`: Get a model's README content as a Markdown attachment. Needs `owner` and `modelName`.
- `get_webhook_signing_secret`: Get the signing secret for Replicate's default webhook so incoming webhook payloads can be verified.
- `download_file`: Download a Replicate file through a signed file download URL. Needs `fileId`, `owner`, `expiry` and `signature`.

### Write tools (7)

- `run_prediction`: Run an AI model prediction on Replicate. Needs `input`.
- `create_model`: Create a new model on Replicate. Needs `owner`, `modelName`, `visibility` and `hardware`.
- `create_deployment`: Create a new production deployment for a model on Replicate. Needs `deploymentName`, `model`, `version`, `hardware`, `minInstances` and `maxInstances`.
- `update_model`: Update metadata of an existing model on Replicate, such as its description, readme, or associated URLs. Needs `owner` and `modelName`.
- `create_training`: Start a fine-tuning training job on Replicate. Needs `owner`, `modelName`, `versionId`, `destination` and `input`.
- `update_deployment`: Update a deployment's configuration, including hardware, scaling, or the model version it runs. Needs `owner` and `deploymentName`.
- `create_file`: Upload a file to Replicate for use as model input. Needs `filename`.

### Destructive tools (6)

- `delete_deployment`: Delete a deployment. Needs `owner` and `deploymentName`.
- `cancel_prediction`: Cancel a running prediction. Needs `predictionId`.
- `delete_file`: Delete an uploaded file from Replicate. Needs `fileId`.
- `delete_model`: Delete a model from Replicate. Needs `owner` and `modelName`.
- `cancel_training`: Cancel a running training job. Needs `trainingId`.
- `delete_model_version`: Delete a private model version and its associated predictions and output files. Needs `owner`, `modelName` and `versionId`.

## Triggers

Replicate has 3 triggers, which fire on events in Replicate:

- `inbound_webhook`
- `training_completed`: Triggers when training jobs reach a terminal state (succeeded, failed, or canceled).
- `prediction_completed`: Triggers when predictions reach a terminal state (succeeded, failed, or canceled).

## 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 Replicate there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Replicate on metorial.com](https://metorial.com/integrations/replicate): the integration overview