Terraform for AI agents.
Terraform integration for AI agents with secure authentication and server-side credential injection. Open Connector runs the OAuth, seals the token in an encrypted vault, and serves Terraform tools to your agent over MCP or a typed API — credentials injected server-side, every call audited, nothing leaving your infrastructure. Open source (AGPL-3.0) and self-hostable.
# Add your Open Connector MCP server (per-user mcp_url)
$ claude mcp add --transport http \
open-connector <your mcp_url>
# Then ask: “open an issue for the launch checklist”// .cursor/mcp.json
{
"mcpServers": {
"open-connector": { "url": "<your mcp_url>" }
}
}const composio = new Composio({
apiKey: "oc_…",
baseURL: "https://connect.acme.com", // your host
});
await composio.tools.proxy({ … });{
"tool": "TERRAFORM_CREATE_ORGANIZATION",
"arguments": { … }
}Real Terraform actions, managed and audited.
Your user connects Terraform once; your agent can then create and update workspaces and projects, edit workspace variables, and lock workspaces or roll back state — scoped to the OAuth permissions you grant and the tool allowlist you configure. Every action is least-privilege and written to a tamper-evident audit trail.
- 01Connect
Your user grants Terraform access once (OAuth) — the token lands in the vault.
- 02Call
Your agent calls a tool over MCP or the typed API; Open Connector injects the credential server-side.
- 03Audit
Every routed call appends a hash-chained audit record — nothing leaves your infra.
Supported Terraform tools.
Browse 26 tools in the Terraform catalog. Each action uses your configured authentication and tool allowlist.
Showing 26 tools.
- Create workspace variable
- TERRAFORM_CREATE_WORKSPACE_VARIABLE
- Create a variable for a workspace.
- workspaces
- Get current state version
- TERRAFORM_GET_CURRENT_STATE_VERSION
- Get the current state version for a workspace.
- workspaces
- List organizations
- TERRAFORM_LIST_ORGANIZATIONS
- List organizations accessible to the token.
- organizations
- List state versions
- TERRAFORM_LIST_STATE_VERSIONS
- List state versions using filters such as organization and workspace.
- state-versions
- Rollback workspace state version
- TERRAFORM_ROLLBACK_WORKSPACE_STATE_VERSION
- Rollback a workspace to a previous state version.
- workspaces
Terraform integration, answered
- How do AI agents use Terraform through Open Connector?
- Your user connects Terraform once with one of its cataloged authentication methods. Open Connector stores the credential in an encrypted vault and exposes Terraform tools to your agent over MCP or a typed API, with credentials injected server-side on each call.
- Is this a Terraform MCP server?
- Yes. Open Connector can serve Terraform as a named MCP server with a scoped allowlist and a per-user connection URL, so any MCP client can call Terraform actions with credentials injected server-side.
- Where do Terraform credentials live?
- In your own infrastructure. Open Connector keeps credentials in its own vault and injects them at call time, so they never leave your environment.
Give your agents Terraform — keep the keys.
Open source, self-hostable, with Terraform credentials that never leave your infrastructure. Run it from source today.