Manage Grantex resources as infrastructure with the official Terraform provider.
Overview
The Grantex Terraform provider lets you manage agents, policies, webhooks, SSO configuration, and budget allocations as code.
Availability and Installation
The provider is currently source-only. On September 7, 2026, the public
Terraform Registry lookup for mishrasanjeev/grantex returned HTTP 404.
The configuration below is not an available registry install, and ordinary
terraform init cannot download it. Registry publication and live acceptance
testing remain separate release work; the repository build passing is not
evidence that this provider is published or production-certified.
For local evaluation, build packages/terraform-provider-grantex with its
declared Go toolchain and configure a local provider binary using HashiCorp’s
development override instructions.
Use a disposable sandbox account. Development overrides are not a production
installation method and do not make registry-based initialization succeed.The following is a provider configuration template for that local evaluation
or a future verified registry release. The version constraint is illustrative,
not a claim that version 0.1 is available:
terraform { required_providers { grantex = { source = "mishrasanjeev/grantex" version = "~> 0.1" } }}provider "grantex" { api_key = var.grantex_api_key # or set GRANTEX_API_KEY env var base_url = "https://api.grantex.dev"}
Resources
grantex_agent
resource "grantex_agent" "calendar_bot" { name = "Calendar Assistant" description = "Manages calendar events for users" scopes = ["read:calendar", "write:calendar"]}output "agent_did" { value = grantex_agent.calendar_bot.did}
data "grantex_agent" "existing" { agent_id = "agt_01HXYZ..."}output "agent_name" { value = data.grantex_agent.existing.name}
grantex_grants
data "grantex_grants" "active" { status = "active" agent_id = grantex_agent.calendar_bot.agent_id}output "active_grant_count" { value = length(data.grantex_grants.active.grants)}