Skip to content

Replit

Connect your Replit Enterprise account to Capsule Security to inventory the projects your teams build with Replit Agent, see who owns each one, and monitor the prompts people send to Replit Agent.

Overview

This integration reads your account through the Replit Admin API. It is read-only: it never creates, updates, or deletes anything in Replit.

The Replit Admin API is in beta, so Replit may change its endpoints and behavior.

Prerequisites

  • A Replit Enterprise account
  • Account admin access in Replit. Workspace admins and other members cannot create Admin API keys
  • A Capsule Security account with admin access

Step 1: Create an Admin API key

  1. Sign in to Replit as an Account admin
  2. Open Settings and, under Account, select Developer
  3. Select Create API key and choose read-only access. Capsule only reads
  4. Copy the key. It starts with rpl_

Store the key in a password manager or secret store. To rotate it, create a new key, reconnect the integration in Capsule, then revoke the old key in Replit.


Step 2: Configure the integration in Capsule

  1. In the Capsule Security portal, click Integrations in the left sidebar
  2. Find the Replit card and click Set up Integration
  3. Paste the API key from Step 1. Capsule tests it as you type and shows Connection successful once Replit lets it read members, projects and Agent messages
  4. Click Save

Capsule creates one Replit environment for the account and stores the key encrypted in its secret store. The key is never displayed again.


What Capsule ingests

Replit sourceAppears in Capsule as
GET /v1/membersIdentities, keyed by email
GET /v1/projectsAgents, one per project, owned by the project's creator
GET /v1/compliance/messagesSessions of user prompts on each project's agent, for runtime analysis

Members and projects are read in full on every sync, so a deleted project is removed from the inventory. Prompts are read incrementally from a checkpoint. The first sync reads the last 7 days.

Limits

  • Skills and MCP servers are not ingested. The Replit Admin API does not expose the skills installed in a project or the MCP servers connected to Replit Agent.
  • Only prompts are ingested. The compliance feed carries what people send to Replit Agent, not Agent replies or tool calls.
  • Team workspaces only. Replit lists projects from team workspaces. Prompts sent in a personal workspace or in a project deleted since are not attributed to an agent and are skipped.
  • Late events. Replit can publish a prompt after it happened and gives no completion signal. Capsule re-reads the last 15 minutes on every sync to catch late events, but a prompt published later than that can be missed.

Troubleshooting

MessageCauseFix
Replit did not accept this API keyThe key is wrong or revoked (401)Create a new key in Replit and reconnect
Replit accepted the key but refused to share members, projects or Agent messagesThe key cannot read one of the three endpoints (403)Create the key as an Account admin on an Enterprise account
Replit rejected the saved API key (sync error)The saved key was revoked after setupCreate a new key and reconnect the integration

How It Works

Capsule calls https://api.replit.com/v1 with the key as a bearer token. It pages through members and projects with Replit's cursors, and reads prompts in windows of at most 24 hours, the longest Replit allows. Rate-limited and failed requests are retried, honoring Replit's Retry-After header.


Support

  • Email: support@capsule.security
  • Include: your tenant ID and any error message shown in the portal

References