How to connect Unkey with ChatGPT

Connect ChatGPT to Unkey MCP. Create and revoke unkey api keys, check unkey api key usage limits, and more using natural language, with authentication handled for you.

Unkey logoUnkey
Api Key

Unkey is an API infrastructure platform for key management, authorization, rate limiting, and usage analytics. It helps teams secure APIs and control access without building these systems from scratch.

43 Tools

How to connect Unkey MCP with ChatGPT

ChatGPT can take action across your apps and files, stay with a project for hours, and turn a goal into finished materials like sheets, slides, and docs, not just answers.

In this guide, I will explain the easiest and most secure way to connect your Unkey account to ChatGPT via Composio Connect, so it can create API keys, verify access, manage rate limits, revoke keys, and review usage through natural language commands without ever putting your account credentials at risk.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Unkey with

Why use Composio over default connectors?

  • Apps with read and write access. Default connectors mostly can read your data. Composio's Unkey integration lets ChatGPT take actions like creating drafts, sending updates, labeling records, and more.
  • 1,800+ SaaS toolkits out of the box. Composio gives you instant access to a vast catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand.
  • Cross-app automation. Chain actions across multiple apps in a single run - fetch a thread, summarize it in Notion, and post highlights to Slack without leaving the conversation.

Prerequisites

Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.

Step-by-step: Connect Unkey to ChatGPT

1. Install the Composio plugin

Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.

Install in ChatGPT

Composio plugin page in ChatGPT with the Install plugin button

You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.

2. Authenticate

After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.

Composio login and Allow access screen for ChatGPT

3. Start using Composio

That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Unkey messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Unkey.

Option 2: Add Composio as an MCP server

If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.

1. Open the MCP settings

In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.

ChatGPT settings showing the Plugins page with the MCP tab selected

2. Add the server

Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
ChatGPT Add server dialog with the name Composio, type Streamable HTTP, and the Composio MCP URL

Then click Save. The Composio server now appears in your MCP plugins list.

ChatGPT Plugins page showing the Composio MCP server added to the list

3. Authenticate

Click Authenticate on the Composio entry, log in via Composio, and click Allow access. Composio tools are then available in ChatGPT the same way as with the plugin.

What you can do after connecting Unkey

  • Create and revoke Unkey API keys
  • Check Unkey API key usage limits
  • Verify a customer Unkey API key

Security + privacy notes (important)

  • Use least-privilege access: Only grant permissions you actually need.
  • Review OAuth permissions before approving: Make sure requested scopes match what you expect Composio and ChatGPT to do.
  • Keep write actions human-reviewed: For actions like sending messages, creating labels, or editing drafts, keep manual confirmation enabled.
  • Be careful with sensitive data: Avoid using this setup with highly sensitive information unless allowed by your personal, company, or client policies.
TOOLS

Supported Tools

Every Unkey action and event your agent gets out of the box.

Add Key Roles

Add existing roles to a customer API key without removing its current roles or direct permissions.

Consume Multiple Rate Limits

Irreversibly consume quota for up to 100 independent Unkey rate limits.

Consume Rate Limit

Irreversibly consume quota for one identifier in an existing Unkey rate-limit namespace.

Create API

Create an API namespace for organizing and issuing customer API keys.

Create API Key

Create a customer API key in an API namespace and return its one-time plaintext key value.

Create Existing-Key Portal Session

Create an end-user portal session with key read, key reroll, and analytics access for existing keys, then return its single-use redirect URL.

Create Identity

Create an identity that groups customer API keys under one external entity with shared metadata and rate limits.

Create or Add Key Permissions

Create any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all supplied slugs directly to a customer API key without removing existing direct or role-based access.

Create Permission

Create an RBAC permission with a unique slug for assignment to roles or customer API keys.

Create Portal

Create a keyspace-backed customer portal for free API Management.

Create Portal Domain

Attach a custom domain to an Unkey portal, start asynchronous DNS verification, and return the records that must be published.

Create Rate Limit Namespace

Create a named rate-limit namespace and return the rlns_ namespace ID used by quota inspection and consumption tools.

Create Role

Create an RBAC role without attaching or creating permissions.

Create Role and Permissions

Create an RBAC role, create any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all of them to the new role.

Get API

Retrieve an API namespace by its API ID.

Get API Key

Retrieve metadata, status, permissions, roles, and usage settings for a customer API key by key ID.

Get API Request Metrics

Count requests served by the Unkey API for the connected workspace per time bucket, split into successful, client-error, and server-error totals.

Get Identity

Retrieve an identity by its Unkey identity ID or external ID.

Get Permission

Retrieve one RBAC permission by its permission ID or slug.

Get Portal

Retrieve one customer portal by portal ID, slug, keyspace ID, or app ID; provide exactly one selector.

Get Portal Domain

Retrieve one portal custom domain, including its verification status and required DNS records.

Get Rate Limit Override

Retrieve one rate-limit override by namespace and its exact identifier pattern.

Get Role

Retrieve one RBAC role and its assigned permissions by role ID or name.

Get Workspace Flags

Get feature flags for the connected workspace, keyed by flag slug, including each flag's current value and opt-in or opt-out availability.

Get Workspace Limits

Return every workspace plan limit and its current usage where available.

Get Workspace Usage

Return billable API operations, Compute usage, and active gateway keys for the current UTC month or one requested recent calendar month.

Identify API Key

Identify a customer API key from its complete plaintext value and return the key's metadata, status, permissions, roles, usage settings, and identity.

Inspect Multiple Rate Limits

Inspect up to 100 independent Unkey rate limits with cost zero.

Inspect Rate Limit

Inspect quota for one identifier in an existing Unkey rate-limit namespace with cost zero.

List API Keys

List one page of customer API keys in an API namespace, optionally filtered by external identity.

List API Requests

List one page of recent Unkey API requests for the connected workspace, newest first.

List Identities

List one page of identities in the connected Unkey workspace, optionally filtering by identity ID or external ID.

List Permissions

List one page of RBAC permissions in the connected Unkey workspace, optionally filtering by permission text.

List Portal Domains

List all custom domains attached to one Unkey portal, including each domain's verification status and required DNS records.

List Portal Sessions

List one page of end users with revocable sessions on a portal, including pending and active sessions.

List Rate Limit Namespaces

List one page of readable rate-limit namespaces in the connected Unkey workspace, newest first, with optional text search.

List Rate Limit Overrides

List one page of custom rate-limit overrides configured in a namespace, including each identifier pattern, request limit, and window duration.

List Roles

List one page of RBAC roles and their assigned permissions in the connected Unkey workspace, optionally filtering by role ID, name, or description.

Query Rate Limit Analytics

Run a read-only SQL query against Unkey rate-limit analytics for the connected workspace.

Query Verification Analytics

Run a read-only SQL query against Unkey key-verification analytics for the connected workspace.

Verify and Consume API Key

Verify a customer API key while explicitly consuming a positive number of credits and any requested rate-limit quota.

Verify, Migrate, and Consume API Key

Verify a customer API key using a provider-configured on-demand migration that may create or migrate a missing legacy key.

Verify Portal Domain

Restart asynchronous DNS verification for a pending or failed portal domain after correcting its records.

FRAMEWORKS

How to build Unkey MCP Agent with another framework

FAQ

Frequently asked questions

Start with Unkey.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Unkey tool your agent needs.Free to start.

Start building