AgentClash Workspace Admin
Purpose
Administer tenancy: organizations, workspaces, memberships, and default workspace binding for teams operating multiple eval environments.
Use When
- Creating a new workspace for a team or environment (staging vs prod eval).
- Listing orgs/workspaces after login to pick the right target.
- Inviting teammates or changing workspace/org membership roles.
- Enabling
public_packson a workspace or archiving inactive workspaces. - Setting default workspace context after auth (when
agentclash linkis not enough). - Stopping the spend of a workspace fast: cancel every active eval set with
agentclash workspace emergency-stop. - To create, approve, or revoke workspace connectors.
Do Not Use When
- First-time CLI install and device login — use
agentclash-cli-setupandagentclash link. - Running evals in an already-selected workspace — use
agentclash-eval-runner. - Managing provider secrets, deployments, or runtime resources — use
agentclash-runtime-resources-setup.
Inputs Needed
- Authenticated CLI session (
agentclash auth login --deviceorAGENTCLASH_TOKEN). - Organization ID for workspace create/list (from
agentclash org listor saved config). - Workspace ID for member admin commands (from
agentclash workspace listoragentclash link). - Email addresses and roles for invites.
Environment
export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash auth login --device
agentclash org list
agentclash workspace list --org <organization-id>
export AGENTCLASH_WORKSPACE="<workspace-id>"
Role values:
- Org:
org_admin,org_member - Workspace:
workspace_admin,workspace_member,workspace_viewer
Procedure
- Verify auth with
agentclash auth status. - List organizations; create one if needed.
- List or create workspaces under the org.
- Set default workspace with
workspace useor guidedlink. - Optionally bind project config with
agentclash init --workspace-id ... --org-id .... - Invite members and adjust roles/status as the team grows.
- Run
agentclash doctorin the target workspace to confirm eval readiness.
Commands
Organizations
agentclash org list
agentclash org get <org-id>
agentclash org create --name "Acme Eval" --slug acme-eval
agentclash org update <org-id> --name "Acme Eval Platform"
agentclash org members list <org-id>
agentclash org members invite <org-id> --email user@example.com --role org_member
agentclash org members update <membership-id> --role org_admin
Alias: agentclash organization = agentclash org.
Workspaces
agentclash workspace list --org <org-id>
agentclash workspace get <workspace-id>
agentclash workspace create --org <org-id> --name "Staging" --slug staging
agentclash workspace update <workspace-id> --name "Staging Eval" --public-packs
agentclash workspace update <workspace-id> --status archived
agentclash workspace use <workspace-id>
agentclash link
Alias: agentclash ws = agentclash workspace.
workspace use validates access and saves default_workspace (and default_org when present) to user config.
Project-local binding:
agentclash init --workspace-id <workspace-id> --org-id <organization-id>
Workspace members
agentclash workspace members list
agentclash workspace members invite --email user@example.com --role workspace_member
agentclash workspace members update <membership-id> --role workspace_admin
agentclash workspace members update <membership-id> --status suspended
Member commands require a resolved workspace (--workspace, AGENTCLASH_WORKSPACE, saved config, or project .agentclash.yaml).
Emergency stop
Cancel every active eval set in the workspace. You must be a workspace admin.
agentclash workspace emergency-stop -w <workspace-id> --json
agentclash workspace emergency-stop -w <workspace-id> --yes --json
- The command cancels eval sets and their runs only. Standalone runs and agent tryouts continue: check them with
agentclash run list. - You cannot undo the cancellation.
- Without
--yes, the command asks for confirmation on a terminal. In non-interactive mode (--non-interactive,AGENTCLASH_NONINTERACTIVE,CI=trueor no TTY) it exits 64 witherror.codeinteractive_input_requiredand cancels nothing. - Never add
--yeson your own decision. Tell the user the workspace ID and the effect, and add--yesonly after the user approves the stop in this conversation. - Exit codes: 0 stopped (
cancelled_setscan be 0), 64interactive_input_requiredoraborted(nothing cancelled), 77 not a workspace admin, 75 network failure or server error (runagentclash evalset listbefore a retry).
Connectors
agentclash connector list --json
agentclash connector create --name "Support app" --config-file connector.yaml --json
agentclash connector approve <snapshot-id>
agentclash connector revoke <snapshot-id>
- Create the workspace secret first. Put its key in the JSON or YAML file.
- After approval, connector requests send the workspace secret to the external origin.
- Check the origin, request URL, and secret key name before approval. A hosted connector sends its requests to the endpoint path plus
/agentclash/runs. - Revocation blocks new runs that use the snapshot. The worker checks the approval immediately before it sends each connector request, so later requests stop. A request that passed its check before the revocation can still go out and finish.
- After secret rotation, create and approve a new snapshot.
- Never pass
--yeswithout approval from the user. Show the user the snapshot ID and effect before you ask. - For approval, also show the origin, endpoint, and secret key name.
Expected Output
workspace createprints workspace ID and name.workspace use/linksaves defaults and confirms the selected workspace.members inviteconfirms email and role.--jsonon any command returns structured API payloads.
Failure Modes
organization ID requiredonworkspace list→ pass--orgor set default org vialink/ config.no workspace specifiedon member commands → runworkspace useor exportAGENTCLASH_WORKSPACE.Workspace <id> is not accessible→ token lacks membership; re-auth or pick another workspace.no fields to updateon update commands → pass at least one changed flag.
Safety Notes
- Confirm workspace ID before invites or archival — operations affect the whole team.
- Never pass
--yestoworkspace emergency-stopwithout the approval of the user. The stop cancels the eval sets of the whole team. - Prefer
workspace_viewerfor read-only stakeholders; escalate toworkspace_admindeliberately. - Do not share
AGENTCLASH_TOKENin tickets or chat; use per-user device login when possible.
Report Back Format
Org: <id> (<name>)
Workspace: <id> (<name>, <status>)
Default workspace: <saved id or none>
Members: <count or n/a>
Public packs: <enabled/disabled>
Doctor ready: <yes/no>
Next: agentclash quickstart OR agentclash eval start
Related Skills
agentclash-hubagentclash-cli-setupagentclash-quickstartagentclash-runtime-resources-setupagentclash-eval-runner
Related Docs
/docs-md/getting-started/quickstart/docs-md/reference/cli/docs-md/reference/config