Dtwo
ChatGPT pluginPolicy for agent tool calls
Dtwo is the security control plane for agents. This plugin connects Codex to your Dtwo account, so you can run your MCP gateways from the conversation.
Read the full descriptionShow less
Create a gateway, set how clients authenticate to it, and add the MCP servers your agents use. Write a policy in Rego, validate it, and attach it to the gateway's ingress pipeline, which runs before a tool call, or its egress pipeline, which runs on the response. Publish a version, deploy it, and roll back to an earlier version if you need to. Search recent gateway events to see what each policy decided.
Skills cover gateway configuration, the policy lifecycle, and Rego authoring, plus a guided setup for your first gateway. They ask before deploying to a running gateway or deleting a policy.
The plugin acts only inside the Dtwo organization you sign in to. You need a Dtwo account.
Dtwo is #12,886 of 17,376 ChatGPT plugins by placement, down 132 places in a week.
Movement
From our daily snapshots, up to 90 days back.
Rank by placement
Rank in Developer tools
In its category
How this plugin ranks within each of its categories.
Developer tools1,009th of 1,272 by placement
| # | Plugin | Overall | 7d |
|---|---|---|---|
| 1,007 | #12,847 | 216places down | |
| 1,008 | #12,879 | 188places up | |
| 1,009 | #12,886 | 132places down | |
| 1,010 | #12,895 | 39places down | |
| 1,011 | #12,933 | 191places up |
Also on other marketplaces
Example prompts
- “Set up my first Dtwo gateway.”
- “Block Slack messages that contain customer email addresses.”
- “Show the policy decisions from my gateway in the last hour.”
Skills
dtwo-end-user-guide
Produce a short PDF — one page whenever the content fits — that an administrator forwards to their END USERS, telling those users what systems an existing Dtwo gateway reaches and how to connect their own AI client to it. Tailored to one client (Claude Code, Claude Desktop, Cursor, Codex) and to whether the organization has already configured that client centrally. This documents a gateway for the people who will use it — it does not build or change one. TRIGGER when: user wants something to hand to their users — "a guide I can send the team", "instructions for my users", "how do people connect to this", an end-user one-pager, handout, or rollout doc for a gateway. SKIP when: the user is creating, configuring or deploying a gateway themselves (use setup for a first gateway, dtwo-gateway-config for YAML and MCP server entries); attaching or publishing policies (use dtwo-gateway-policy); writing Rego (use dtwo-policy-rego).
dtwo-gateway-config
Manage Dtwo gateway YAML configuration and MCP server definitions: edit, validate, save draft, publish, deploy, and roll back. TRIGGER when: user says "add/remove/edit MCP server", "gateway config/YAML", "change gateway auth/JWKS/SSRF/CORS", "publish/revert gateway config", "deploy gateway" after a config change; or wants to inspect/list gateway versions. SKIP when: task is writing or explaining Rego (use dtwo-policy-rego); task is attaching/detaching policies on a pipeline or pinning policy versions (use dtwo-gateway-policy).
dtwo-gateway-policy
Create, validate, attach, publish, deploy, verify, and roll back Dtwo policies and their pipeline attachments — the system-of-record skill for policy lifecycle (create/update/publish/revert), pipeline lifecycle (attach/deploy/verify), the session-state marker registry, and (when intent tools are enabled) the intent registry. TRIGGER when: user says create/modify a policy, block/allow/redact something, attach/detach policy, set/update pipeline, publish/pin a policy version, or deploy gateway after a policy change; also manage a marker/marker registry; or (only when intent tools are enabled) intent capture/registry/transitions or intent/marker compatibility. Always pair with dtwo-policy-rego for the Rego authoring step. SKIP when: task is purely explaining existing Rego with no save/attach/deploy intent (use dtwo-policy-rego); or editing gateway YAML / MCP server entries (use dtwo-gateway-config).
dtwo-policy-rego
Generate, modify, explain, and debug Rego policy code for the Dtwo MCP Gateway (ingress and egress) — input schema, allow/deny/transform patterns, markers/session-state, debugging, and policy-store catalog contribution structure. TRIGGER when: user asks to write/modify/explain/debug a Rego policy; says block/allow/redact/transform a tool call or response; mentions OPA, package paths, input.payload, or default allow; pastes Rego for review; writes a marker writer/reader or session_writes; (only when intent tools are enabled) recognizes the platform intent-capture policies; contributes to the dtwoai/policy-store catalog; or diagnoses blanket denies or transform conflicts. Pair with dtwo-gateway-policy when the resulting Rego must be saved or deployed. SKIP when: policy CRUD or pipeline attachment that does not change Rego (use dtwo-gateway-policy); general OPA usage outside the MCP Gateway; or editing gateway YAML (use dtwo-gateway-config).
setup
Guide a first-time user through complete Dtwo gateway setup end to end — verify the Dtwo MCP connection, choose a deployment type, create the gateway, configure authentication, add MCP servers, attach starter policies, publish, activate (self-hosted), deploy, print ready-to-paste connection instructions, and finish by authenticating to the gateway and testing the attached policies. TRIGGER when: user is setting up Dtwo for the first time, onboarding, just installed the plugin, or says "set up dtwo", "create my first gateway", "get me started", "walk me through setup". SKIP when: the user already has a gateway and wants a single focused change — editing gateway YAML or MCP server entries (use dtwo-gateway-config); attaching/detaching or publishing policies (use dtwo-gateway-policy); writing/modifying/explaining Rego (use dtwo-policy-rego); or producing a guide to send to their end users about an existing gateway (use dtwo-end-user-guide).
- Categories
- Sign-in
- On install
- Capabilities
- Create MCP gateways and configure their authentication, Add and edit the MCP servers behind a gateway, Write and validate Rego policies for tool calls and responses, Attach policies to a gateway's ingress and egress pipelines, Publish, deploy, and roll back gateway configurations and policies, Search gateway events to see each policy decision, Browse and install policies from the Dtwo policy catalog
- Version
- 1.3.5
- Keywords
- mcp, mcp-gateway, policy-as-code, rego, opa, agentic-security, governance, guardrails
- Created
- October 31, 2026
- More info
Publish this plugin?
Show its standing on your own site, quote it with its date, or put it in front of everyone browsing the directory.