FlowTruxFlowTrux/Docs

AI Providers

Use your own Anthropic, OpenAI or Google API keys in Agent nodes, or run on your plan's AI credits.

AI provider keys let the Agent nodes in your workflows use large language models with your own API keys. Keys are added at the organization level (on the Resources page) and enabled for the workspaces that should use them.

Agent nodes work without your own key

You don't need to bring an API key to start using Agent nodes. Every plan includes a monthly allowance of AI credits: when no provider key is enabled for the workspace, Agent nodes run on FlowTrux's platform models and each call is charged against your plan's credits based on token usage. More capable models use more credits per call. Check Settings > Usage for your current balance.

Adding your own API key changes the economics: calls made with your key are billed directly by the provider (Anthropic, OpenAI, or Google) and do not consume FlowTrux credits - there is no credit cap on your own key.

Supported Providers

Keys of three providers are supported: Anthropic (Claude), OpenAI (GPT) and Google (Gemini).

The Agent node's Model dropdown always shows the current list: models of the providers enabled for the workspace, or the platform models when none is enabled. Models a provider has withdrawn are removed from the list, and the AI assistant does not pick them for new nodes.

As a rule of thumb: pick the most capable model of a provider for complex multi-step reasoning, the balanced one for most tasks, and the small fast one for simple high-volume steps.

Setup

1. Add an API Key

  1. Open the Resources tab in the left panel and choose AI Providers (requires the Owner or Admin role).
  2. Click Add Key.
  3. Select the Provider (Anthropic, OpenAI, or Google).
  4. Give it a Name (e.g., "Production Key").
  5. Paste your API Key.
  6. Pick the workspaces where the key should be available.
  7. Save.

After saving, the key value is never shown again - only a masked preview. Use Test to check a key against the provider; the check is free and uses no tokens. If the provider rejects the key, the list says "Saved, but the provider rejected this key."

2. Enable it in a Workspace

Keys are not automatically available in all workspaces. Either pick the workspaces when adding the key, or later:

  1. Open the workspace's settings (/workspaces/<workspace>/settings).
  2. Go to the Enabled resources tab.
  3. Under AI Providers, select which keys this workspace can use.
  4. Save.

Managing Keys

  • Edit - change the name of a key, or turn it off and on. A disabled key is not used by workflows.
  • Delete - removes the key permanently. Workflows that relied on it fall back as described below on their next run.

Which key a run uses

A workflow uses only the keys enabled for its own workspace. When it runs an Agent node:

  1. If a key of the model's provider is enabled in the workspace, that key is used and no credits are charged.
  2. Otherwise the call runs on FlowTrux's platform models and is charged against your plan's monthly AI credits.
  3. The run fails with a clear error only when neither is possible - for example when the month's credits are used up and no key of your own is enabled. The error suggests adding your own provider key. An Owner or Admin can also add a credit pack in Settings > Billing, or you can wait for the allowance to renew at the start of the next month - see Plans and Usage.

Multiple Keys

You can add multiple keys for the same provider. This is useful for:

  • Separating environments (e.g., "Development" and "Production" keys)
  • Cost tracking by assigning different keys to different workspaces
  • Key rotation without downtime - add the new key, reassign workspaces, then remove the old key

Plan Limits

The number of provider keys you can configure depends on your plan. Check Settings > Usage for your current limits and credit balance.