Skip to main content

AI connections

Users connect more and more AI tools to their accounts: agents you build, AI clients such as Claude, ChatGPT, VS Code and Cursor that register themselves, and MCP clients. AI connections lists them in one place, so that administrators and users can see what acts for whom and end what shouldn't.

For administrators​

Open LLM AI > AI Connections. Each row is one user and one application, with:

ColumnDescription
TypeAgent (the application of an agent), AI client (a client that registered itself with dynamic client registration), MCP (its tokens are for an MCP server), or Application. The status of the agent shows next to it: Disabled, Expired, or Orphaned when its manager no longer exists or is forbidden, a sign to review the agent.
AccessThe scopes and resources of the tokens, and the agents acting with them.
Connected accountsThe token vault accounts the application may use.
UsageActive tokens, MCP tool calls and actions the user approved with CIBA.
Last activeWhen the application last got a token or called a tool.

By default, the list shows only applications that act for users. Turn on Show all applications to list every application the users granted. Search for one user to see only theirs. Global administrators can switch the organization.

Tokens of the client credentials grant belong to the application itself, not to a user, and aren't listed.

Revoke ends the connection at once: Casdoor expires the tokens, including refresh tokens, removes the consent, stops the application from using the user's connected accounts, and sends a session-revoked event to the SSF streams of the application, so that MCP servers and APIs that cache the tokens stop accepting them.

For users​

Users find the same list for themselves under AI apps on their account page, and can revoke each one. Connected accounts shows the accounts kept in the token vault, and Approvals the requests they approved or denied.

Agents that stop​

An agent can't act after it is disabled or after its Expire time. From then on, its existing tokens are inactive at introspection and are refused by Casdoor's APIs, and it can't start CIBA requests or use connected accounts. When an administrator disables it, or sets an expire time that has passed, Casdoor also sends session-revoked to its SSF streams.

API​

EndpointDescription
GET /api/get-agent-connections?owner=<organization>&user=<user>&all=trueThe connections of an organization, for its administrators.
POST /api/revoke-agent-connection?id=<organization>/<user>&application=<application>Revoke one connection. Leave the user empty to revoke the application for all users.
GET /api/get-my-agent-connectionsThe signed-in user's connections.
POST /api/revoke-my-agent-connection?application=<application>The signed-in user revokes one.