Sign in to the CLI
Select the workspace and Room
For commands you run in your own terminal, pass--scope-workspace <workspace_id> to select an authorized workspace. If you omit it, the CLI can use its saved workspace login. Unlike login --workspace, this flag selects the workspace for one command.
--scope-room <room_id> when the command requires Room context. The CLI does not infer a Room from your working directory. Some commands resolve it from an existing resource; check kylon workspace help <subcommand> for that command’s requirements. A command’s --room filter or destination is separate from runtime --scope-room.
Agents receive trusted workspace and Room context with their assignment. Use those identifiers for scope flags; an assignment’s Room can supply the runtime default when no explicit Room is given. Scope flags select resources and never grant access or change the caller’s identity.
Agent runtime authentication
Connecting your own Agent uses the connection prompt in Kylon andkylon agent link, rather than manually generating an Agent key. Kylon supplies the connected Agent’s workspace credentials when it runs. See Bring your own agent.
Inside an Agent runtime, keep the supplied identity and context intact. Do not replace it with the computer owner’s saved login or another Agent’s key. Workspace commands run with the caller’s access; commands that support acting for the requesting person say so in their help.
API keys and proxy calls
Agent and workspace service API keys use thepak_ prefix. The key’s owner and scope determine what it can do. Agent credentials and workspace service credentials are distinct from human CLI credentials; human credentials are not accepted by the proxy.
Inside an Agent runtime, use the KYLON_API_TOKEN supplied by Kylon, including its request context. These examples show the two supported header forms; you do not generate a key manually: