barndoor-ai/barndoor and developed on GitHub.
Getting Started
Generate a provider credential, configure the provider, and apply your first resource.
Manage MCP Access
Onboard an MCP server, connect it, register an AI Agent, and govern access with a policy.
Manage the LLM Gateway
Configure providers, model routing with failover, access policies, rate limits, and budgets.
Manage Data Protection
Define custom detection types, allow lists, and enforcement policies with a safe rollout path.
Best Practices
Importing existing configuration, avoiding drift, CI/CD, and troubleshooting.
Provider Reference
The complete argument-level reference for every resource and data source, on the Terraform Registry.
What you can manage
This page groups the provider’s resources by product area. For argument-level detail, each resource links to its Terraform Registry reference page — the registry is always the authoritative schema documentation for the provider version you have installed.MCP Gateway
Data sources:
barndoor_mcp_server, barndoor_agent, barndoor_policy look up existing objects by ID or name so you can reference them without managing them.
LLM Gateway
Data Control Center
Security & Access
Data sources:
barndoor_idp_settings, barndoor_log_export_aws_trust_info.
When to use Terraform
Terraform is the right tool when you want your Barndoor configuration to be reviewable, repeatable, and auditable — policy changes that go through pull requests, environments that can be rebuilt from code, and governance settings that can’t drift silently. A few things intentionally remain portal-only:- OAuth-connected MCP servers — the interactive browser consent step can’t be performed by a declarative apply. Terraform manages non-OAuth connections (
api_key,bearer_token,basic_auth,generic); OAuth servers are connected in the Barndoor app. - SSO enforcement and break-glass accounts — enforcement is irreversible and member-impacting, so it stays behind the portal’s confirmation flow.
- Interactive setup flows such as provider catalogs and connectivity testing.