DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep an agent working over SSH from the terminal with Cocode

Install the Cocode TUI on a remote machine and push tasks to the agent with no graphical environment.

Short answer: Install Node.js 22.19.x or later (24+ also supported) on the remote machine; then run npm install --global @cocode-agency/tui; run cocode doctor to check TUI, Supervisor, and Host connectivity. All steps.

Who it is forA developer who works on a remote server or headless machine and needs to keep an agent moving on tasks from a plain SSH session.

The problemA remote machine has no graphical desktop, so a GUI-based agent tool cannot be used there.

The outcomeA terminal session on the remote machine where the agent accepts tasks, with Host status checked before work begins.

What you need first

  • 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

Steps

  1. Install Node.js 22.19.x or later (24+ also supported) on the remote machine.
  2. Run npm install --global @cocode-agency/tui.
  3. Run cocode doctor to check TUI, Supervisor, and Host connectivity.
  4. Run cocode in a real terminal and choose a model option.
  5. Give the agent a task, and check the result before moving on.

Prompt for your agent

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.

Caveat. The README says a real terminal is required, so the TUI will not run in a non-interactive script or pipe.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for cocode-agency/cocode and "Keep an agent working over SSH from the terminal"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer