Connect an AI provider¶
AI apps connected to your hub (Claude, ChatGPT) bring their own AI. For the hub's own AI features, the hub needs an AI provider of its own, chosen by whoever installed it. The first provider is Claude, from Anthropic.
Note
This arrives with the release after 0.2.0. Until then, the hub's AI works through connected AI apps only.
Adding the provider and its key¶
You need an API key from your Anthropic account (the Anthropic Console). Put it in an environment
variable, not on the command line, and run the installer with --ai-provider anthropic:
export DARUMA_AI_API_KEY="<your key>" # PowerShell: $env:DARUMA_AI_API_KEY = "<your key>"
python infra/install.py --name contoso --subscription "<subscription>" --ai-provider anthropic
The installer stores the key straight into the install's Key Vault and never prints it. Later runs
keep it; set the variable again only to replace it. --ai-provider none stops the hub calling any AI
provider.
In the hub¶
Settings › AI shows, to administrators:
- the provider and models, and whether a key is in the vault (never the key itself);
- a switch to turn AI off for the workspace: nothing in it then calls the provider;
- Test the connection, which makes one small call;
- usage this month: calls and tokens by what they were for, by person and by model. Your provider bills by tokens; its own console has the prices.
The hub records who used AI, for what, and how many tokens. It doesn't keep what was said there.