mutagent command runs in one workspace of that
organization, and you choose which one.
When you sign up at app.mutagent.io, you name your organization, and
Mutagent creates a workspace in it named Default workspace. If your first sign-in is
mutagent login instead, the organization is named Default and the workspace Default
workspace. You can rename both, create more workspaces, and invite members in the web app.
Sign in
See where you are
Output
Key scope is organization for a key from mutagent login or from the organization API keys page,
and workspace for a workspace API key. See API keys.
mutagent workspaces current --json returns scope, organization, workspace and expiresAt. It
asks the server, so exit code 0 means the key works in that workspace. Exit code 2 means the key
expired or is invalid; exit code 3 means you are not signed in or no workspace is selected.
Work in two workspaces
List the workspaces your key can use.* marks the selected one:
Output
sales-agents. No browser and no prompt:
Which workspace a command uses
The first one set wins:--workspace <name|id>on the command- the
MUTAGENT_WORKSPACE_IDenvironment variable - the workspace chosen with
mutagent workspaces use(or approved at login)
WORKSPACE_REQUIRED and exit code
3, and tells you what to run:
--json, the same error is an object a script can act on. For mutagent providers list --json:
MUTAGENT_API_KEY, there is no stored selection, so the hint names
--workspace and MUTAGENT_WORKSPACE_ID instead.
Check the organization in scripts
--org on any command checks that the key belongs to that organization (by id, slug or name). On a
mismatch the command exits 1 and sends nothing, so a script never acts in the wrong organization: