Anthropic

AI API key

Call Claude from any Windmill script, flow or app — and point Windmill AI at the same key so the code assistant and AI agent steps run on your own Anthropic account.

What you can do with Anthropic

Complete, deployable projects built around Anthropic — the fastest way to get something real running.

All 10 projects →

Set up in 3 steps

1

Create an API key

In the Anthropic Console, open API keys and create one. Copy it straight away — the key starts with sk-ant- and is shown only once.

2

Add the resource in Windmill

Open Resources, add a resource of type anthropic, and paste the key. Leave platform on standard unless you reach Claude through Google Vertex AI.

3

Point Windmill AI at it

In AI settings, at workspace or instance level, pick Anthropic as the provider and select the resource. The code assistant, the AI chat and AI agent steps then all run on your key.

Resource types

The credential shapes the scripts on this page expect — pick the one your script asks for.

FieldTypeRequiredWhat it is
apiKeystringYes
base_urlstringNoOptional. Only needed to overwrite the default base URL. For google_vertex_ai: https://{region}-aiplatform.googleapis.com/v1/projects/{project_id}/locations/{region}/publishers/anthropic/models/
platformstringNoPlatform to use for Anthropic API.

anthropic_federated

View raw schema →
FieldTypeRequiredWhat it is
federation_rule_idstringYesThe federation rule (fdrl_...) to exchange against.
organization_idstringYesYour Anthropic organization ID, a UUID shown on the Organization page of the Claude Console.
service_account_idstringYesThe service account (svac_...) the federation rule targets.
workspace_idstringNoThe Anthropic workspace (wrkspc_...) to scope tokens to. Only needed when the rule is enabled in more than one workspace.

Questions

Is my API key stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.

Does this power Windmill's own AI features?

Yes. Select the resource in AI settings and the code assistant, AI chat and AI agent steps all run on your key and your choice of model.

Can I reach Claude through Google Vertex AI?

Yes. Set platform to google_vertex_ai and fill base_url with your project and region endpoint; the rest of the resource stays the same.

Do I need a Claude subscription?

No. API access is billed per token on the Console account and is separate from a Claude.ai plan.