> ## Documentation Index
> Fetch the complete documentation index at: https://vms.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI agent with a code

> Enter the 6-digit code that an AI agent gives you, so that it can act as you. See and disconnect your agents.

An AI agent can register itself and then ask you to confirm. It gives you a link and a 6-digit code. When you enter the code, the agent can act as you through the [MCP server](https://vms.dev/docs/reference/workspace-mcp.md).

Help me connect an agent.

Explain what the agent can do if I connect it.
Remind me to enter the code only on the page that opens after sign-in.
Tell me how to disconnect the agent later.

## Before you start

* Get the link and the 6-digit code from the agent.
* If the agent asked for your email, sign in with that email. Only that account can enter the code.
* The code works for 10 minutes. The page accepts 5 wrong codes.

## Enter the code

**1. Open the link and sign in**

Open the link from the agent. If you are not signed in, sign in or create an account.

**2. Check the access and enter the code**

Read what the agent can do as you. Type the 6-digit code from the agent, then choose **Connect agent**.

![The page An agent asks to act as you, with the signed-in email, the list of what the agent can do, the Code from the agent field, and the Connect agent button.](https://mintcdn.com/vms-c6f4e5ac/ik-PVuE4l6A-0My2/images/account/connect-agent/00-claim-page-light.png?fit=max\&auto=format\&n=ik-PVuE4l6A-0My2\&q=85\&s=8a4f208e7d8cb7010f39f6aac1790a61)

The page shows **Agent connected**. Go back to the agent. It continues without more steps.

If an agent provider already knows your email, the page title names the provider, for example **agents.example.com asks to link its agent to your account**. After you connect it once, agents from that provider connect without a code.

## See and disconnect your agents

**1. Open Profile**

Open the user menu at the bottom left of the sidebar. Choose **Account settings**. Find the **Connected agents** card.

![The Connected agents card with one agent connected with a code, the date it connected, and the Disconnect button.](https://mintcdn.com/vms-c6f4e5ac/ik-PVuE4l6A-0My2/images/account/connect-agent/01-connected-agents-light.png?fit=max\&auto=format\&n=ik-PVuE4l6A-0My2\&q=85\&s=a64b6a74d00b34bf8ddabb425bf6b953)

**2. Disconnect the agent**

Choose **Disconnect** next to the agent. In **Disconnect the agent?**, choose **Disconnect**.

The agent stops at once. If it came from an agent provider, the link to that provider is also removed. To connect it again, the agent must ask you for a new code.

## Troubleshooting

> [accordion] The code is not correct.
>
> Check the code that the agent shows, and type it again. After 5 wrong codes, ask the agent for a new code.

> [accordion] This code expired.
>
> The code works for 10 minutes. Ask the agent for a new code. The agent gets a new code for the same registration for up to 24 hours.

> [accordion] Sign in with a different account
>
> The agent asked for a different email. Choose **Switch account**, then sign in with the email that you gave to the agent.

> [accordion] This link is not valid
>
> The link is wrong, or the registration was disconnected. Ask the agent for a new link.

Read the [changelog.](https://vms.dev/docs/changelog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.