---
title: "open connection · RUAL Documentation"
description: "Create a connection to the Anthropic (Claude) API for use by Claude blocks."
canonical: https://docs.rual.nl/block-types/anthropic/function_create_anthropicconnection
language: en
---

# open connection

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Create a connection to the Anthropic (Claude) API for use by Claude blocks.

- flow `flow`

- api key required `value` The Anthropic API key. For security, do not hardcode it; wire in a secure system setting via `value_get_system_key_select`.

- default model `value` Default model for blocks using this connection. Defaults to claude-opus-4-8.

- base url `value` Optional API base URL override.

- currency `value` Reporting currency for the get usage block (default USD). Converted via ECB rates. • Suggestions: `USD` `EUR` `GBP`

- daily cap (USD) `number` Daily spend cap in USD for this connection. Defaults to 5. (Per-user/entity caps will become system settings later.)

- concurrency cap `number` Max concurrent in-flight calls for this connection. Defaults to 10.

- flow `flow`

- success `condition`

- connection `anthropicconnection`

- error `value`

A typical wiring for [open connection](https://docs.rual.nl/block-types/anthropic/function_create_anthropicconnection): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `api_key` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the open connection block: typical wiring for open connection.](https://docs.rual.nl/canvas-examples/function_create_anthropicconnection.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
