{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "cocode-agency-cocode--drive-agent-over-ssh-from-terminal",
 "repo": "cocode-agency/cocode",
 "repo_url": "https://github.com/cocode-agency/cocode",
 "repo_slug": "cocode-agency-cocode",
 "title": "Keep an agent working over SSH from the terminal",
 "page_title": "How to keep an agent working over SSH from the terminal with Cocode",
 "summary": "Install the Cocode TUI on a remote machine and push tasks to the agent with no graphical environment.",
 "who": "A developer who works on a remote server or headless machine and needs to keep an agent moving on tasks from a plain SSH session.",
 "problem": "A remote machine has no graphical desktop, so a GUI-based agent tool cannot be used there.",
 "outcome": "A terminal session on the remote machine where the agent accepts tasks, with Host status checked before work begins.",
 "steps": [
  "Install Node.js 22.19.x or later (24+ also supported) on the remote machine.",
  "Run `npm install --global @cocode-agency/tui`.",
  "Run `cocode doctor` to check TUI, Supervisor, and Host connectivity.",
  "Run `cocode` in a real terminal and choose a model option.",
  "Give the agent a task, and check the result before moving on."
 ],
 "agent_prompt": "Using the cocode-agency/cocode repository, install the TUI on <remote-host> with `npm install --global @cocode-agency/tui`, then run `cocode doctor`. Expected output: a doctor report showing TUI, Supervisor, and Host as reachable; verify that the matching @cocode-agency/host-supervisor version was installed alongside the TUI.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says a real terminal is required, so the TUI will not run in a non-interactive script or pipe.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A DeepSeek-compatible API key, or a Cocode Pro subscription for hosted Cocode Nut access",
  "For the TUI: Node.js 22.19.x or later (24+ also supported) and a real terminal (TTY)",
  "For the GUI: an installer for your platform from the GitHub Releases page"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cocode-agency-cocode/drive-agent-over-ssh-from-terminal/",
 "md": "https://dedupedai.com/use-cases/cocode-agency-cocode/drive-agent-over-ssh-from-terminal/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/cocode-agency-cocode--drive-agent-over-ssh-from-terminal.json",
 "api_version": "v1"
}
