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.
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.
- 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
- Sign in to Replit as an Account admin
- Open Settings and, under Account, select Developer
- Select Create API key and choose read-only access. Capsule only reads
- 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.
- In the Capsule Security portal, click Integrations in the left sidebar
- Find the Replit card and click Set up Integration
- 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
- 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.
| Replit source | Appears in Capsule as |
|---|---|
GET /v1/members | Identities, keyed by email |
GET /v1/projects | Agents, one per project, owned by the project's creator |
GET /v1/compliance/messages | Sessions 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.
- 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.
| Message | Cause | Fix |
|---|---|---|
| Replit did not accept this API key | The 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 messages | The 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 setup | Create a new key and reconnect the integration |
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.
- Email: support@capsule.security
- Include: your tenant ID and any error message shown in the portal