openai/terraform-provider-openai
Makefile
Captured source
source ↗openai/terraform-provider-openai
Description: The official Terraform provider for OpenAI.
Language: Makefile
License: Apache-2.0
Stars: 0
Forks: 1
Open issues: 2
Created: 2026-06-25T15:09:17Z
Pushed: 2026-06-26T05:06:12Z
Default branch: main
Fork: no
Archived: no
README:
Terraform Provider for OpenAI
The OpenAI Terraform provider gives Terraform configurations convenient access to the OpenAI Administration API. Use it to manage organization-level resources such as projects, users, groups, roles, service accounts, certificates, rate limits, spend alerts, and related project settings.
See [docs/](docs/index.md) for resource and data source documentation.
Requirements
- Terraform CLI 1.0 or later
- An OpenAI Admin API key
Admin API keys are required for Administration API endpoints and cannot be used for non-administration OpenAI API endpoints.
Usage
Set your Admin API key in the environment:
export OPENAI_ADMIN_KEY=""
Then create a Terraform configuration:
terraform {
required_version = ">= 1.0"
required_providers {
openai = {
source = "openai/openai"
}
}
}
provider "openai" {
# The provider reads OPENAI_ADMIN_KEY by default.
# You can also set admin_api_key, organization, and project here.
}
resource "openai_project" "example" {
name = "terraform-managed"
}See [docs/index.md](docs/index.md) for provider configuration details and the full resource and data source documentation.
License
This project is licensed under the [Apache License 2.0](LICENSE).
Notability
notability 5.0/10New Terraform provider for OpenAI resources.