Skip to main content
Workflows run automated tasks on your cost data from the Workflows page in the CostGraph dashboard. In a self-hosted deployment, they run as Claude agents in your own Anthropic account, and they read your costs through your CostGraph MCP server.

Before you begin

Workflows need Anthropic to reach your MCP hostname over the internet. An installation without internet access can’t run workflows.

Get an Anthropic API key

Workflows use Claude Managed Agents, which is available to every Anthropic API account.
  1. Sign in to the Claude Console, or create an account.
  2. Open the API keys page and click Create key.
  3. Set Linked account to a service account, so the key keeps working when the person who created it leaves your organization. Scope it to a workspace if you use more than one.
  4. Choose an expiration. A key that expires stops workflows until you store a new one, so pick Never if you rotate keys yourself.
  5. Copy the key, which starts with sk-ant-. The Console shows it a single time, when you create it.
Usage is billed to that Anthropic account. Managed Agents keeps session history on Anthropic’s side, so it isn’t covered by Zero Data Retention or a HIPAA Business Associate Agreement. See Anthropic’s documentation.

Turn on workflows

1

Store the API key in a Secret

2

Add the Secret to your values file

Workflows are on by default. To turn them off, set backend.automation.enabled: false.
3

Upgrade the release

Run helm upgrade with your values file. The Workflows page is ready after the backend restarts.

What happens on startup

The first time the backend starts with a key, it creates the workflow agents in your Anthropic account. Later restarts reuse those agents. When an upgrade changes an agent, the backend publishes a new version of it. Anthropic bills workflow usage to the account that owns the API key.

Add other Secrets to the backend

To pass any other Secret to the backend, list it under backend.deployment.envFrom. Each entry exposes every key in the Secret as an environment variable.
To pass a single key, use backend.deployment.env.

Troubleshoot setup

When workflows are on but not set up, the Workflows page shows “Workflows are not set up yet” and links to this guide. Check the cause that matches your installation. After you fix the cause, restart the backend.