Skip to main content

Refresh Your Tools After Changing API Keys

Some MCP servers let you save more than one API key. You manage them from the API keys dialog on the server's card in Willow.

Willow builds the tool list from the keys you have saved at the moment your AI tool asks for it:

  • Two or more keys: every tool takes a required account argument, and your AI has to name one of your keys on each call.
  • One key: the account argument is gone, and the tools use that key.

Your AI tool keeps the list it fetched when it connected. If you add or delete a key while a session is open, the tool keeps asking for the old key names until it fetches the list again. Refresh the tool list after you:

  • save a second key, so your AI starts choosing between keys
  • delete keys down to one, so your AI stops asking which key to use
  • delete or rename the key your AI was using
tip

A call that names a key you no longer have fails with Unknown account "<name>" and lists the keys you do have. It means your AI tool is working from an old tool list. Refresh it using the steps below.

The universal fix​

If your tool isn't listed below, or you aren't sure, do one of these. Either one works in every client.

  1. Start a new chat or session. Most clients fetch the tool list when a conversation starts.
  2. Quit and reopen the client.

Refresh by AI tool​

AI toolHow to refresh
CursorOpen Cursor Settings > Tools & MCP, switch Willow off and on again, then start a new chat. If the old key names are still offered, restart Cursor.
Claude CodeRun /mcp, select willow, and choose Reconnect. Then start a new session, or run /clear.
Claude DesktopOpen Settings > Extensions, switch the Willow extension off and on, then start a new chat. If that doesn't help, quit and reopen Claude Desktop.
Claude WebStart a new conversation. Existing conversations keep the tools they started with. If the old keys still appear, go to Customize > Connectors > Willow and disconnect, then connect again.
ChatGPTStart a new chat. If the old keys still appear, open Settings > Apps, open the Willow app, and refresh it if a Refresh option is shown. Otherwise remove the app and add it again.
VS Code (Copilot)Open the Command Palette and run MCP: List Servers. Select Willow, then choose Restart Server. Start a new chat in agent mode.
CodexRun /mcp to see what Codex has loaded. Then restart Codex, or start a new session.
OpenCodeType /mcps and switch willow off and on, then start a new session. If that doesn't help, restart OpenCode.
Devin Desktop (formerly Windsurf)Open the MCP settings, refresh or toggle the Willow server, then start a new chat. If that doesn't help, restart the app.
Willow CLIRun willow tools refresh to clear the cached tool catalog. The next command fetches a fresh one. See the Willow CLI reference.

Check that it worked​

Ask your AI which tools it has for the server, or look at a tool's parameters in your client.

  • With two or more keys, each tool lists an account parameter with your key names.
  • With one key, there is no account parameter.

If the list still doesn't match what the API keys dialog shows, close the dialog, reopen it, and check the keys it lists. Then repeat the refresh in your AI tool. If it still doesn't match, see Troubleshooting.

On this page