Skip to main content
The provider authenticates with an org-scoped API key (fw_org_…). It sends Authorization: Bearer <key> to the Fireweave control plane.
Use FIREWEAVE_API_KEY and FIREWEAVE_ENDPOINT. The provider does not read FW_API_URL, FW_PROJECT_API_KEY, or any other FW_* variable.The SDK docs on this site use FW_* for project keys (project-api-key_…) that evaluate control points. Terraform uses a different key family and a different prefix. Exporting only FW_PROJECT_API_KEY is the most common first-run failure: Terraform reports a missing API key.

Provider settings

api_key is optional in the provider schema only because the environment variable can supply it. Configure fails if both are empty:
Set the provider api_key argument or the FIREWEAVE_API_KEY environment variable.
Prefer the environment variable over committing secrets to configuration.
For a self-hosted or local API:

Creating an API key

  1. Sign in to the Fireweave app for your organisation.
  2. Create a key with a session-authenticated request:
  1. Store the returned key value once — it is shown only at creation time.
  2. Export it as FIREWEAVE_API_KEY (or pass api_key in the provider block).
Org API key management is enabled when the Fireweave org-api-keys-v1-management feature flag is on for your organisation.
The key is org-scoped. It authorizes project and environment APIs under /v1/projects. It is not a project evaluation key and it is not interchangeable with FW_PROJECT_API_KEY.

Terraform vs SDK credentials

Both use Bearer tokens. They are still different secrets. Do not put an org key in an SDK adapter, and do not put a project key in the Terraform provider.

Common mistakes

You exported FW_PROJECT_API_KEY (or FW_API_URL) and expected Terraform to pick it up. Set FIREWEAVE_API_KEY instead.
The published address is FireWeave-HQ/fireweave. fireweave/fireweave and fireweaveai/fireweave do not exist.
Org member endpoints currently reject org API keys. That is a known provider limitation, not a bad FIREWEAVE_API_KEY. See Org members.

Next

Quickstart

Apply a project and environments with the key you just created.

SDK configuration

FW_API_URL and FW_PROJECT_API_KEY for application runtimes.
Last modified on September 11, 2026