openclaw - 💡(How to fix) Fix [Feature]: First-class org/team deployment — workspace scaffolding, RBAC, and deployment manifests [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#43673Fetched 2026-04-08 00:17:22
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
commented ×1cross-referenced ×1

First-class support for multi-user org/team deployments: workspace scaffolding CLI, per-session tool policies (RBAC), and declarative deployment manifests.

Root Cause

First-class support for multi-user org/team deployments: workspace scaffolding CLI, per-session tool policies (RBAC), and declarative deployment manifests.

Code Example

openclaw workspace init --template team --agent "sales" --agent "support"

---

sessions:
  ceo-private:
    tools: ["*"]
  warehouse:
    tools: ["pharos", "stock_query"]
    deny: ["financials", "hr"]

---

agents:
  - name: production
    soul: ./agents/production/SOUL.md
    tools: ["pharos", "scheduler"]
    channel: telegram-group-12345
  - name: ceo-private
    soul: ./agents/ceo/SOUL.md
    tools: ["*"]
    channel: telegram-dm-67890
RAW_BUFFERClick to expand / collapse

Summary

First-class support for multi-user org/team deployments: workspace scaffolding CLI, per-session tool policies (RBAC), and declarative deployment manifests.

Problem to solve

Teams and orgs are adopting OpenClaw, but multi-user deployment requires significant manual configuration with no official tooling or guidance. Common patterns emerging in the community:

  • One workspace folder per user/function, manually created and maintained
  • Per-agent SOUL.md/AGENTS.md hand-configured with no templating
  • No access control on which tools/skills a given session can invoke — every session has full tool access
  • No way to version-control or reproduce a multi-agent deployment across environments

This means every org deployment reinvents the same scaffolding, and there's no clean separation of concerns between agents that should have different capabilities (e.g. a warehouse agent shouldn't access financial tools).

Proposed solution

1. Workspace scaffolding CLI

A command to initialise a workspace from a template:

openclaw workspace init --template team --agent "sales" --agent "support"

Creates directory structure, base config files, and agent identities in one shot. Reduces per-deployment setup from hours to minutes.

2. Per-session tool policies (RBAC)

Restrict which tools/skills are available per session or agent identity via config:

sessions:
  ceo-private:
    tools: ["*"]
  warehouse:
    tools: ["pharos", "stock_query"]
    deny: ["financials", "hr"]

This closes a real gap for team deployments where different users/roles should have different capabilities.

3. Declarative deployment manifest

An agents.yaml (or similar) that describes a complete multi-agent deployment:

agents:
  - name: production
    soul: ./agents/production/SOUL.md
    tools: ["pharos", "scheduler"]
    channel: telegram-group-12345
  - name: ceo-private
    soul: ./agents/ceo/SOUL.md
    tools: ["*"]
    channel: telegram-dm-67890

Enables reproducible, version-controlled deployments. Spin up identical configurations across clients or environments with a single file.

4. Documented org deployment pattern

Official documentation covering:

  • One gateway, multiple isolated agent workspaces
  • Telegram forum topics as department/function channels
  • Private DM sessions with isolated context
  • Recommended directory structure and naming conventions

Alternatives considered

  • Manual per-deployment configuration — This is the status quo. It works but doesn't scale; each deployment reinvents the same patterns, and there's no reproducibility or access control.
  • External orchestration (Ansible/Terraform wrapping OpenClaw) — Adds infrastructure complexity outside the project. Workspace structure and tool policies are application-level concerns that belong in OpenClaw's config layer, not in external provisioning tools.
  • Per-agent config files without a manifest — Solves templating but not reproducibility. A declarative manifest allows diffing, version control, and CI/CD integration that scattered config files don't.

Impact

  • Affected: Power users, consultants, and teams deploying OpenClaw for orgs (multiple agents, multiple users/channels)
  • Severity: Blocks clean scaling — currently requires hours of manual setup per deployment and offers no access control
  • Frequency: Every org deployment hits this — it's not an edge case
  • Consequence: Duplicated effort across deployments, no tool isolation between roles, no reproducibility, and a high barrier to entry for team adoption

Evidence/examples

  • Community guides already document DIY org deployment patterns (e.g. "One OpenClaw Gateway, Multiple Isolated AI Assistants" on dev.to)
  • Related issues: #42981 (per-session tool policies), #43235 (per-agent command lanes), #42686 (per-agent lane isolation) — these address pieces of the same underlying need

Additional information

These enhancements don't change OpenClaw's core "personal AI assistant" paradigm — they formalise patterns the community is already building, reducing friction for the growing segment of users deploying OpenClaw at org scale. Each of the four proposals is independently useful and could be shipped incrementally.

extent analysis

Fix Plan

To address the issue of multi-user org/team deployments, we will implement the following:

  • Workspace scaffolding CLI: Create a command to initialize a workspace from a template.
  • Per-session tool policies (RBAC): Restrict which tools/skills are available per session or agent identity via config.
  • Declarative deployment manifest: Create an agents.yaml file that describes a complete multi-agent deployment.
  • Documented org deployment pattern: Provide official documentation covering recommended directory structure and naming conventions.

Example Code

Here's an example of how the workspace init command could be implemented:

# Create a new workspace with the team template and two agents: sales and support
openclaw workspace init --template team --agent "sales" --agent "support"

The agents.yaml file could be defined as follows:

agents:
  - name: production
    soul: ./agents/production/SOUL.md
    tools: ["pharos", "scheduler"]
    channel: telegram-group-12345
  - name: ceo-private
    soul: ./agents/ceo/SOUL.md
    tools: ["*"]
    channel: telegram-dm-67890

The sessions.yaml file could be defined as follows:

sessions:
  ceo-private:
    tools: ["*"]
  warehouse:
    tools: ["pharos", "stock_query"]
    deny: ["financials", "hr"]

Verification

To verify that the fix worked, you can:

  • Run the workspace init command and check that the directory structure and base config files are created correctly.
  • Check that the agents.yaml file is parsed correctly and that the agents are created with the specified tools and channels.
  • Check that the sessions.yaml file is parsed correctly and that the sessions have the specified tools and deny lists.

Extra Tips

  • Make sure to document the new features and configuration options in the official documentation.
  • Provide examples and tutorials on how to use the new features.
  • Consider adding validation and error handling to the workspace init command and the parsing of the agents.yaml and sessions.yaml files.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature]: First-class org/team deployment — workspace scaffolding, RBAC, and deployment manifests [1 comments, 2 participants]