Integrations
Guide Available

Connect Integrations and Credentials Safely

Agent Barn separates deployment secrets, Agent Secrets, Shared Credentials, and Communication Connection credentials. Only tool credentials materialize into Agent Runtime; Connection credentials remain with Communications.

For
Organization administrators and operators
On this page
  1. Credential classes
  2. Supported provider families
  3. Choose Agent Secrets or Shared Credentials
  4. Google Workspace OAuth and Communication credentials
  5. Credential boundary table
  6. Runtime materialization
  7. Connection credential lifecycle
  8. Least-privilege checklist
  9. Permissions and safe reads
  10. Related guides
01

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.

  1. 01.1

    Deployment secrets operate Agent Barn infrastructure.

  2. 01.2

    Agent Secrets are for one Agent’s tool Integrations.

  3. 01.3

    Shared Credentials are owned by an Organization and can be attached to permitted Agents.

  4. 01.4

    Communication Connection credentials are owned by one Agent-subordinate Connection.

02

Supported provider families

This list covers Runtime tool Integrations, not Communication Platforms.

  1. 02.1

    Current providers are GitHub, Jira, Confluence, Bitbucket, Google Workspace, Zoho Mail, Zoho Calendar, Firecrawl, Slack, and Pipedrive.

  2. 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.

03

Choose Agent Secrets or Shared Credentials

Use the credential source that owns the tool-provider access; neither is a Communication Connection credential.

  1. 03.1

    Agent Secrets belong to one Agent. Shared Credentials belong to one Organization.

  2. 03.2

    An Agent may use either a Shared Credential or a per-Agent Secret for a provider, never both simultaneously, and has at most one attached credential source per provider.

  3. 03.3

    Multiple named Shared Credentials for the same provider may exist within an Organization, but their names are unique there. Deletion is blocked while a non-deleted Agent references the credential.

  4. 03.4

    Shared Credentials currently support GitHub, Jira, Confluence, Bitbucket, and Zoho Mail. Google Workspace OAuth credentials are not shareable under the current contract.

  5. 03.5

    Read APIs expose provider and display metadata, never credential contents.

04

Google Workspace OAuth and Communication credentials

Google Workspace is the only current Google-backed provider. Its OAuth flow is separate from provider messaging credentials.

  1. 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.

  2. 04.2

    Google Workspace materializes through gog, separately from aai-cli.

  3. 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.

  4. 04.4

    Connection credential values are write-only and omitted from read responses. They are never materialized into Hermes or OpenClaw.

  5. 04.5

    For messaging setup, see Set up Slack and manage Communication Connections.

05

Credential boundary table

Choose the owner and lifecycle that match the resource consuming the credential.

Credential classOwnerPurposeConsumerRuntime materializedLifecycle
Deployment secretDeployment/operatorPlatform infrastructureAgent Barn servicesNoDeployment lifecycle
Agent SecretAgentTool IntegrationAgent RuntimeYesAgent configuration lifecycle
Shared CredentialOrganizationReusable tool IntegrationAttached Agent RuntimeYes, when attachedOrganization credential lifecycle with deletion protection
Connection credentialCommunication ConnectionProvider messaging transportCommunications service and Platform PluginNoIndependent Connection revision, enablement, replacement, and retirement lifecycle
06

Runtime materialization

Agent start may decrypt Agent Secrets or resolve attached Shared Credentials for tool execution.

  1. 06.1

    Build aai-cli configuration and its secret store.

  2. 06.2

    Build Google Workspace gog setup and inject permitted provider environment.

  3. 06.3

    Mount exact assigned Skill versions and eligible bundled Skills, then append tool Integration policy to rendered Agent instructions.

07

Connection credential lifecycle

Connection credentials and provider sessions are managed by Communications independently of Agent Runtime lifecycle.

  1. 07.1

    Create: the Platform Plugin validates settings and credentials before encryption.

  2. 07.2

    Read: only safe metadata, schema information, status, and health are returned.

  3. 07.3

    Update: replacement credentials and settings are revalidated, and the Connection revision advances.

  4. 07.4

    Reconcile: the Communications supervisor recreates or updates the provider session without restarting the Agent.

  5. 07.5

    Disable: provider ingress stops while the Connection remains available for later enablement.

  6. 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.

08

Least-privilege checklist

Apply least privilege independently to tool access and message transport.

  1. 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.

  2. 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.

09

Permissions and safe reads

Credential writes are scoped to the resource they change, and plaintext is never returned after persistence.

  1. 09.1

    Agent Secret changes require Agent access and agent.secret.manage.

  2. 09.2

    Connection setting changes require agent.update; creating, replacing, or retiring Connection credentials additionally requires agent.secret.manage.

  3. 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.

  4. 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.

Documentation