Integrations · Replicate
A Guild agent runs predictions, manages deployments, and starts or cancels training jobs on Replicate on your team’s behalf. Guild injects the Replicate API key server-side so agent code never sees it, and credential policies let you restrict exactly which operations each agent can perform.
Book a demo
See how teams govern agents that use Replicate.
Talk to sales
Get access to Guild, then connect Replicate to your first agent.
What the Replicate integration exposes
The tools cover predictions, deployments, models, files, training jobs, collections, hardware, and account information. Agents can create, retrieve, update, and delete resources, search public models and collections, and cancel running predictions or training jobs. Tools follow the replicate_ prefix and ship in theguildai~replicate package.
How it works
1
Connect your Replicate credential
In Guild, go to Access & setup > Credentials, click Connect, select replicate, and paste your API key into the API Key field. Guild sends the key as a bearer token in the Authorization header on every request.
2
Import and wire the tools
Import ReplicateTools from
@guildai-services/guildai~replicate and spread it into your agent’s tools object. All tools are available immediately once the credential is connected.3
Narrow tools with pick
Use pick() from the Agent SDK to include only the tools your agent needs. Tools are named with the replicate_ prefix, so you can target groups by pattern in your credential policies too.
Why Replicate access needs governing
Replicate tools can create and delete models and deployments, cancel running predictions, and remove files along with all associated output. Credential policies let you write ALLOW and DENY rules that Guild’s credential proxy enforces before any request leaves Guild. You can restrict an agent to read-only operations like replicate_predictions_get and replicate_models_list, block destructive operations with replicate_models_versions_delete or replicate_files_delete, or scope rules to a specific agent or workspace so different agents get different levels of access on the same connected credential. Guild stores the Replicate API key server-side and injects it at request time, so agent code never sees it. The proxy enforces policies before the credential is added, and a matching DENY rule always wins over any ALLOW rule. Credentials can be scoped to an account, a workspace, a single member, or one agent, giving you fine control without duplicating keys.About the Replicate integration
Agents can browse and search public models, create and manage deployments, and run or cancel predictions and training jobs on Replicate. They can also upload and delete files, update model properties, and retrieve account and hardware information. The integration isguildai~replicate.
Authentication
- Type: API key
- Header: Guild sends the key as a bearer token in the
Authorizationheader
Setup
1
Connect Replicate
In Guild, go to Access & setup > Credentials, click Connect, select replicate, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with thereplicate_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~replicate:
All 34 tools
All 34 tools
Frequently asked questions
Can an agent cancel a prediction that is already running?
Can an agent cancel a prediction that is already running?
Yes. The replicate_predictions_cancel tool cancels a prediction that is currently running.
Does the integration support webhook events from Replicate?
Does the integration support webhook events from Replicate?
No. The catalog entry for
guildai~replicate lists no webhook events, so agents cannot receive event-driven triggers from Replicate through Guild.How do I stop an agent from deleting model versions?
How do I stop an agent from deleting model versions?
Add a DENY rule for replicate_models_versions_delete in the credential policy. Guild’s proxy enforces the rule before the request reaches Replicate, and a DENY always overrides any ALLOW rule.
Can I give one agent a different Replicate account than the rest of the workspace?
Can I give one agent a different Replicate account than the rest of the workspace?
Yes. Connect a credential scoped to that agent using the Dedicated to this agent option on the installed agent’s page. Guild resolves agent-dedicated credentials before workspace or account credentials.
Put a governed agent on Replicate this week
Book a demo
See how teams govern agents that use Replicate.
Talk to sales
Get access to Guild, then connect Replicate to your first agent.