---
title: "Creating an AI assistant key"
description: "An AI assistant key lets Claude or Cursor work with your forms on your behalf. Create one in Account > AI Access, and revoke it whenever you like."
url: https://help.leadform.io/en/articles/89-creating-an-ai-assistant-key
collection: "AI Assistant (MCP)"
updated: 2026-11-03
language: en
---

# Creating an AI assistant key

An AI assistant key lets Claude or Cursor work with your forms on your behalf. Create one in Account > AI Access, and revoke it whenever you like.

## Create a key

1.  Open the user menu at the bottom of the sidebar and click Account.
    
2.  Open the AI Access tab.
    
3.  Under AI assistant keys, enter a Key name, for example 'Claude on my laptop'. Name it after where you will use it, so you know which one to revoke later.
    
4.  Choose when it Expires: In 30 days, In 90 days (the default), In a year, or Never. When a key expires you need to create a new one.
    
5.  Click Create key.
    

## Use it straight away

The new key appears in Connect your assistant, already filled into the setup values for Claude or Cursor, with a copy button for each. This is the only place your new key is shown. If you need it again later, create a new key.

## Managing your keys

Each key in the list shows its name, when it was last used (or never used) and when it expires. Expired and revoked keys are marked as such.

To revoke a key, click the bin icon next to it and confirm. Any AI assistant using that key loses access to your forms straight away.

## Keeping keys safe

Treat a key like a password: anyone who has it can work with your forms. Do not share it or show it in screenshots, use one key per device or assistant, and prefer an expiry date over Never. If a key may have leaked, revoke it and create a new one.
