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
- Install Node.js 22.19.x or later (24+ also supported) on the remote machine.
- Run
npm install --global @cocode-agency/tui. - Run
cocode doctorto check TUI, Supervisor, and Host connectivity. - Run
cocodein a real terminal and choose a model option. - 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer