Skip to main content
Integrations · WorkOS
A Guild agent can manage WorkOS identity infrastructure: enrolling authentication factors, assigning fine-grained permissions, administering agent blueprints, and handling audit log exports. Guild stores the WorkOS API key server-side and injects it as a bearer token, so agent code never sees the secret. Credential policies let you limit which WorkOS operations each agent can call, and every request is auditable through Guild’s credential proxy.

Book a demo

See how teams govern agents that use WorkOS.

Talk to sales

Get access to Guild, then connect WorkOS to your first agent.

What the WorkOS integration exposes

The tools cover authentication factors and challenges, organization and environment roles, fine-grained permissions, resource-based authorization, agent blueprints and sessions, API key lifecycle management, Connect Applications and their client secrets, audit log events and exports, and MCP resource indicators. Tools are prefixed with workos_ and imported from the guildai~workos package. Use pick() to include only the tools your agent needs.

How it works

1

Open credentials and connect

In Guild, go to Access & setup > Credentials, click Connect, and select workos. See Credentials for workspace, member, and agent-scoped options.
2

Paste your WorkOS API key

Enter the key in the API Key field. Guild stores it server-side and sends it as a bearer token in the Authorization header on every request.
3

Import tools and build

Import WorkosTools from @guildai-services/guildai~workos and spread it into your agent’s tools object. Use pick() to restrict the agent to the operations it actually needs.

Why WorkOS access needs governing

WorkOS tools can create and revoke agent blueprints, mint access tokens, delete API keys, modify role assignments, and export audit logs. Guild’s credential policies let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild. Rules can target specific workos_ operations by name or glob pattern, scope access to particular agents or workspaces, and restrict HTTP methods to prevent write operations on read-only agents. Guild injects the API key server-side only after the policy check passes, so agents cannot bypass it. You can scope a WorkOS credential to a single agent using the dedicated credential option, keeping it out of every other workspace and agent. Requests that match no ALLOW rule are denied by default once you remove the auto-created allow-all policy. See Credential policies and Credentials for setup details.

About the WorkOS integration

Agents can manage WorkOS identity infrastructure including authentication factors, organization roles, fine-grained permissions, and resource-based authorization. They can administer agent blueprints and credentials, handle audit log events and exports, and manage Connect Applications and API keys. The integration is guildai~workos.

Authentication

  • Type: API key
  • Header: Guild sends the key as a bearer token in the Authorization header

Setup

1

Connect WorkOS

In Guild, go to Access & setup > Credentials, click Connect, select workos, and paste the key into API Key.
See Credentials for workspace, member, and agent-scoped credentials.

Usage

Selecting specific tools

Tools are named with the workos_ prefix. Use pick() to include only what your agent needs.

Tools

Tools in the latest published version of guildai~workos:

Frequently asked questions

Yes. Write a credential policy that denies operations by pattern, such as *_delete, *_create, and *_update, alongside a catch-all ALLOW rule. Guild’s proxy blocks any matching request before it reaches WorkOS. See Credential policies for wildcard syntax.
No. The catalog entry lists no webhook events for this integration, so event-triggered runs based on WorkOS webhooks are not available.
Yes. Connect a dedicated credential from the installed agent’s detail page. It is stored under the account that owns the workspace and never serves other agents or workspaces. See Credentials for the dedicated credential option.
Guild sends the API key as a bearer token in the Authorization header on every request. The key is stored server-side and agent code never sees it.

Put a governed agent on WorkOS identity management today

Book a demo

See how teams govern agents that use WorkOS.

Talk to sales

Get access to Guild, then connect WorkOS to your first agent.
Also runs on Guild: Calendly · Coda · Confluence · Fathom Read: Docs: Credential policies · Credentials · Tools in agents
Last modified on November 25, 2026