Skip to main content
Each Agent names one model. For a Pi Agent, go to Vaults in the dashboard and add a model provider credential. Give each key a name, then choose it in Model credential when editing the Agent. You can save several keys for the same provider and select a different key on each Agent. Changing the selection creates a new Agent version. Sessions use the choice saved on their Agent version. The key is write-only, and Checkfu sends it only to that provider’s inference endpoint. Revocation blocks further requests from every Agent version using the key. Servers can also supply default model credentials through environment variables. Before revoking a key, open Revoke in Vaults to see the credential ID, then select Cancel while you check the Agent versions you intend to keep using. Run checkfu agents:versions list --agent-id AGENT_ID, follow each next_page with --page, and look for the ID in model.provider_credential_id. Check the Agent version pinned by each relevant Session, including versions of archived Agents. Versions with no selected credential use the deployment defaults. Model provider credentials belong to the deployment. A Session with a saved credential can switch to another Pi model from the same provider. To use another provider or runtime, start a Session with an Agent version configured for that choice.

Model IDs

Write <provider>/<model-id>, such as anthropic/claude-sonnet-5-5. Bare IDs like claude-sonnet-5-5 or gpt-6.2-sol work for models in the built-in OpenAI and Anthropic catalogs. If a built-in provider’s key is missing, the Session’s turn fails with an error naming the missing environment variables. Missing secrets referenced by custom providers fail earlier, at deploy time.

Built-in providers

For Cloudflare AI Gateway, set only CLOUDFLARE_GATEWAY_ID and checkfu deploy attaches the Workers AI binding, letting requests reach your gateway without an API token.

Custom providers

Add any endpoint that speaks openai-responses, openai-completions, or anthropic-messages by exporting CHECKFU_PROVIDERS and its secret variables before deploying:
Agents can then use "model": "xai/grok-4". Keep secrets out of the manifest: api_key_env, auth.env, and secret_headers may reference only variables starting with CHECKFU_PROVIDER_SECRET_. See Configuration for all deployment variables. For Vercel AI Gateway with Antigravity or Grok Build, configure the OpenAI Chat Completions endpoint and select a Vercel model ID, such as vercel/anthropic/claude-sonnet-5.5. Vercel AI Gateway API