Manage Komodor AgentOps config-plane resources as code. The provider talks to the AgentOps control-plane API and is built on the Terraform Plugin Framework.
Available on the Terraform Registry
as komodorio/agentops.
terraform {
required_providers {
agentops = {
source = "komodorio/agentops"
}
}
}
provider "agentops" {
# endpoint defaults to https://agentops.komodor.com.
# Use https://staging.agentops.komodor.com for staging, or your own URL
# for a self-hosted deployment.
# endpoint = "https://agentops.komodor.com"
api_key = var.agentops_api_key
}
resource "agentops_trigger" "deploy" {
name = "deploy-webhook"
target_id = "agent_01hxyz"
target_type = "agent"
}The provider authenticates with an AgentOps API key sent as a Bearer token. Both settings can come from the configuration block or the environment:
| Setting | Argument | Environment variable | Default |
|---|---|---|---|
| API key | api_key |
AGENTOPS_API_KEY |
— (required) |
| Endpoint | endpoint |
AGENTOPS_ENDPOINT |
https://agentops.komodor.com |
export AGENTOPS_API_KEY="…"
export AGENTOPS_ENDPOINT="https://staging.agentops.komodor.com" # optional| Type | Name | Description |
|---|---|---|
| Resource | agentops_trigger |
Webhook trigger that invokes an agent or workflow |
| Resource | agentops_api_key |
API key (create/delete only; secret shown once) |
| Resource | agentops_role |
Authorization role bundling policies |
| Resource | agentops_policy |
Authorization policy (grants) |
| Resource | agentops_grant |
Authorization grant to a subject |
| Resource | agentops_service_account |
Service account (create/delete only) |
| Resource | agentops_member |
Account member invitation (create/delete only) |
| Resource | agentops_schedule |
Cron schedule that runs an agent |
| Resource | agentops_credential |
Stored credential with a write-only value |
| Resource | agentops_credential_binding |
Binds a credential to an agent |
| Resource | agentops_workflow |
Multi-step agent workflow |
| Resource | agentops_integration_connection |
Connection to an external integration provider |
| Resource | agentops_knowledge_base |
Knowledge base for agents |
| Resource | agentops_knowledge_base_agent |
Grants an agent access to a knowledge base |
| Resource | agentops_mcp_gateway_server |
Upstream MCP server registered on the gateway |
| Resource | agentops_mcp_gateway_group |
Group of MCP gateway servers |
| Resource | agentops_mcp_gateway_policy |
MCP gateway access policy |
| Resource | agentops_incident_pipeline |
Incident pipeline routing inbound alerts to an agent |
| Resource | agentops_review_workflow |
Code-review workflow running reviewer agents on PRs |
| Resource | agentops_grader_config |
Grader config that scores a sample of agent runs |
| Resource | agentops_channel |
Notification channel to an external destination |
| Resource | agentops_channel_route |
Route forwarding matching channel events to a target |
| Resource | agentops_hosted_agent |
Komodor-hosted managed agent deployment |
| Resource | agentops_worker_catalog_deployment |
Deploys a curated worker from the worker catalog |
| Data source | agentops_integration_catalog |
Integration providers available to the account |
| Data source | agentops_capabilities |
Authorization capabilities |
| Data source | agentops_resource_types |
Authorization resource types |
| Data source | agentops_worker_catalog |
Deployable worker/agent templates |
| Data source | agentops_skills |
Skills available to agents |
| Data source | agentops_reviewers |
Reviewer agents available to the account |
More resources are added over time. See docs/ for the full,
generated reference and examples/ for usage examples.
Featured example — incident pipeline:
a self-contained, runnable Terraform stack that stands up a full incident-response pipeline
(orchestrator + specialist agents + webhook trigger), with a guide for connecting Grafana or
Prometheus AlertManager to the webhook under
alerting/.
Requires Go >= 1.25.
Build and install into $GOPATH/bin:
make installRun unit tests and the mock-backed acceptance tests:
make test # unit tests
make testacc # acceptance tests (TF_ACC=1); run in-process against a mock APILint and format:
make lint
make fmtThe typed API client in internal/client/gen/ is
generated from the AgentOps OpenAPI spec with
oapi-codegen; a small
hand-written layer in internal/client/client.go
adds the base URL, Bearer auth, retries, and error handling.
# Refresh the vendored spec from a local monorepo checkout …
make sync-spec MONOREPO=../agentops
# … or from a running endpoint:
make sync-spec ENDPOINT=https://staging.agentops.komodor.com
# Regenerate the client from the vendored spec:
make generateThe vendored api/openapi.json is kept as the faithful OpenAPI 3.1 document the
API emits. Because oapi-codegen cannot consume 3.1 directly, make generate
transiently down-converts it to a 3.0 subset (via internal/specdowngrade)
before generating; the committed client stays in sync with the spec and CI fails
on any drift.
Docs under docs/ are generated from the resource schemas and the
files in examples/:
make docsThe provider is published as komodorio/agentops. Releases are built and signed
by GoReleaser and triggered by pushing a v* tag. See RELEASING.md
for how to cut a release, the required signing secrets, publishing to the public
Terraform Registry, and consuming the provider privately (filesystem mirror or
dev overrides) in the meantime.