{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "teoslayer-shell-online--grant-scoped-agent-access-to-session",
 "repo": "TeoSlayer/shell.online",
 "repo_url": "https://github.com/TeoSlayer/shell.online",
 "repo_slug": "teoslayer-shell-online",
 "title": "Give another agent scoped access to a session",
 "page_title": "How to give another agent scoped access to a session with Shell Online",
 "summary": "Create a limited MCP grant so a second agent can inspect or control one terminal session.",
 "who": "An engineer running multiple agents who wants one agent to monitor or drive a session started by another agent.",
 "problem": "Letting a second agent act on a live terminal needs a bounded permission, and a browser password alone does not give it the right access.",
 "outcome": "A second agent receives a scoped grant for one session, and you can revoke that access by rotating the session password.",
 "steps": [
  "Install the CLI and start the primary agent with `shell claude`, `shell codex`, `shell opencode` or `shell muse`.",
  "Follow the guide at https://shell.online/agents/ to create a scoped MCP grant for the session.",
  "Give the grant only to the agent you intend to authorize.",
  "Run `shell password rotate` on that session to change browser access and revoke MCP grants when access should end."
 ],
 "agent_prompt": "Using the repo TeoSlayer/shell.online, start <agent-name> on this machine with `shell <agent-name>` and follow https://shell.online/agents/ to create one scoped MCP grant for that session. Expected output: a grant that the second agent can use for that session only. Verify that the grant works for inspecting the session and that `shell password rotate` on that session revokes it.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README points to the agents guide for the grant steps and does not show the grant commands, so follow that guide directly rather than assuming a command.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A computer that will run the work, kept awake and online for the whole session",
  "Terminal access on that computer, plus Git and Go 1.26.9 if you build from source instead of using the installer",
  "A browser on the phone, tablet or other computer you will use to open the session link",
  "An agent you already have installed (Claude Code, Codex, OpenCode or Muse), or any terminal command you want to run"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "A native MCP grant lets the authorized client decrypt the session server side, so issue it only to an agent you fully trust and rotate it when the work ends."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/teoslayer-shell-online/grant-scoped-agent-access-to-session/",
 "md": "https://dedupedai.com/use-cases/teoslayer-shell-online/grant-scoped-agent-access-to-session/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/teoslayer-shell-online--grant-scoped-agent-access-to-session.json",
 "api_version": "v1"
}
