Credential classes
Agent Barn has four distinct credential classes with different owners, validation rules, consumers, permissions, and lifecycles, even when they use the same encryption infrastructure.
- 01.1
Deployment secrets operate Agent Barn infrastructure.
- 01.2
Agent Secrets are for one Agent’s tool Integrations.
- 01.3
Shared Credentials are owned by an Organization and can be attached to permitted Agents.
- 01.4
Communication Connection credentials are owned by one Agent-subordinate Connection.
Supported provider families
This list covers Runtime tool Integrations, not Communication Platforms.
- 02.1
Current providers are GitHub, Jira, Confluence, Bitbucket, Google Workspace, Zoho Mail, Zoho Calendar, Firecrawl, Slack, and Pipedrive.
- 02.2
Gmail, Google Calendar, and Google Sheets are no longer separate credential providers. Configure Google access through one Google Workspace credential, selecting services and an access level.
Google Workspace OAuth and Communication credentials
Google Workspace is the only current Google-backed provider. Its OAuth flow is separate from provider messaging credentials.
- 04.1
The user selects Google services and read-only versus write access. Signed, short-lived OAuth state carries those choices; stored services, access level, granted scopes, and account identity are validated together.
- 04.2
Google Workspace materializes through
gog, separately fromaai-cli. - 04.3
Slack, Microsoft Teams, Telegram, and Discord messaging credentials belong to Communication Connections. Shipped Platform Plugins define typed settings and credential schemas, validate values before encrypted persistence, and enforce provider identity uniqueness where required.
- 04.4
Connection credential values are write-only and omitted from read responses. They are never materialized into Hermes or OpenClaw.
- 04.5
For messaging setup, see Set up Slack and manage Communication Connections.
Credential boundary table
Choose the owner and lifecycle that match the resource consuming the credential.
| Credential class | Owner | Purpose | Consumer | Runtime materialized | Lifecycle |
|---|---|---|---|---|---|
| Deployment secret | Deployment/operator | Platform infrastructure | Agent Barn services | No | Deployment lifecycle |
| Agent Secret | Agent | Tool Integration | Agent Runtime | Yes | Agent configuration lifecycle |
| Shared Credential | Organization | Reusable tool Integration | Attached Agent Runtime | Yes, when attached | Organization credential lifecycle with deletion protection |
| Connection credential | Communication Connection | Provider messaging transport | Communications service and Platform Plugin | No | Independent Connection revision, enablement, replacement, and retirement lifecycle |
Runtime materialization
Agent start may decrypt Agent Secrets or resolve attached Shared Credentials for tool execution.
- 06.1
Build
aai-cliconfiguration and its secret store. - 06.2
Build Google Workspace
gogsetup and inject permitted provider environment. - 06.3
Mount exact assigned Skill versions and eligible bundled Skills, then append tool Integration policy to rendered Agent instructions.
Connection credential lifecycle
Connection credentials and provider sessions are managed by Communications independently of Agent Runtime lifecycle.
- 07.1
Create: the Platform Plugin validates settings and credentials before encryption.
- 07.2
Read: only safe metadata, schema information, status, and health are returned.
- 07.3
Update: replacement credentials and settings are revalidated, and the Connection revision advances.
- 07.4
Reconcile: the Communications supervisor recreates or updates the provider session without restarting the Agent.
- 07.5
Disable: provider ingress stops while the Connection remains available for later enablement.
- 07.6
Retire: credentials are scrubbed, pending Deliveries are cancelled, provider identity is released, and canonical Conversation history is preserved.
Connection health can change independently of Agent lifecycle.
Least-privilege checklist
Apply least privilege independently to tool access and message transport.
- 08.1
Tool Integrations: prefer read-only access, restrict repositories, spaces, accounts, and services, assign only required Skills, and use Shared Credentials only when reuse is intentional.
- 08.2
Communication Connections: grant only required bot scopes and provider permissions; restrict allowed locations, users, groups, roles, and direct messages through Connection settings; rotate or replace credentials on the Connection; and diagnose provider failures through Connection health and Communication Diagnostics.
Permissions and safe reads
Credential writes are scoped to the resource they change, and plaintext is never returned after persistence.
- 09.1
Agent Secret changes require Agent access and
agent.secret.manage. - 09.2
Connection setting changes require
agent.update; creating, replacing, or retiring Connection credentials additionally requiresagent.secret.manage. - 09.3
Organization Members can see available Shared Credentials without seeing their secret values. Attaching one to an existing Agent also requires permission to update that Agent and manage its credentials. Organization Owners and Admins manage the shared credentials themselves.
- 09.4
Selecting an eligible Shared Credential while creating an Agent follows the Agent creation workflow. For step-by-step instructions, see Use shared credentials.