Documentation index for AI agents (llms.txt)
Skip to main content

Anthropic

Use Claude in your site's AI features, like a support assistant, writing tools or document analysis, with your own Anthropic account. Usage is billed to your Anthropic account.

Connect​

  1. Open Settings > Connectors, click Anthropic, then Connect.
  2. platform.claude.com/settings/keys opens. Click Create key, name it and copy it.
  3. Come back to WebTwizz. The key is picked up, checked with Anthropic and connected. You can also paste it into API key yourself.

If Anthropic rejects the key, you'll see That key was not accepted. No Anthropic key? Sign in with OpenRouter gets you Claude and many more models in one step. See OpenRouter.

What you see​

Anthropic in a project: the key works, the models it can use, account and model setting
  • Overview:
    • The key works with a Working label, checked when you open it. Check again checks it now. Usage opens your usage on Anthropic. If Anthropic turns the key down, it reads Not accepted: replace the key or check billing.
    • Test message: Send sends one short message to your model and shows how long the reply took, with Requests left and Tokens left a minute. It uses a few tokens, so it only runs when you press it. If it fails, it says why, like no credit left, a rate limit or a model the key can't use.
  • Model: the model you picked, by the name Anthropic gives it, with its Input limit and Reply limit in tokens. If your key can't reach it, it says so: pick another under Settings.
  • Live site errors: when your published site logs errors that mention Anthropic, the latest ones, each with the page and when. Ask the AI to fix starts a new chat that asks the AI to find the cause and fix it. Show more loads older ones.
  • Account: the key, shown by its last four characters, with Replace key.
  • Settings: Model, used whenever your app doesn't ask for a specific one. The list shows the models your key can use, newest first, with the recommended one marked.

What the AI can do​

The AI checks that your key works and which models it reaches, then uses those exact model names in your code.

Secrets​

  • ANTHROPIC_API_KEY: your Anthropic API key, server-side only
  • ANTHROPIC_MODEL: the default model, claude-sonnet-5-5 unless you pick another

Good to know​

  • Replacing the key under Account switches every project that uses it.
  • Removing Anthropic from a project takes both secrets out. Your Anthropic account is untouched.