I am having trouble creating an Anthropic credential in my n8n self hosted instance

I am trying to add my anthropic credential to my n8n self hosted instance, but every time I go to save it, it says cannot connect with these credentials. I have an auto-billing cycle, live api key, and the api key works with an http request. I would like to be able to use the anthropic nodes in n8n.

  • n8n version: 2.13.4

  • SQLite database

  • Docker install

  • anthropicApi credential type not appearing in /types/credentials.json

  • Native Anthropic nodes exist but credential type is missing

1 Like

This looks like the Anthropic credential type isn’t registered in your Docker instance. Check if anthropicApi is defined in your /types/credentials.json — if you’re on a custom self-hosted setup, you might need to rebuild the image or check if the Anthropic node package is actually installed. Should help narrow it down.

2 Likes

Thank you. Is this the default solution for all credential issues with the same message or is this unique to Anthropic’s?

This is pretty specific to your setup, not an Anthropic thing. Check if you have NODES_EXCLUDE set in your docker env variables, that can block credential types from registering even if the nodes show up.