Skip to content

CLI Agents

ADHDev supports standalone CLI-based AI agents like Gemini CLI, Claude Code, and Codex CLI. These agents run in a terminal (PTY) managed by the daemon, and you can interact with them from the dashboard.

Supported CLI Agents

AgentCommandDescription
Gemini CLIadhdev launch geminiGoogle's Gemini AI in terminal
Claude Codeadhdev launch claudeAnthropic's Claude coding agent
Codex CLIadhdev launch codexOpenAI's Codex terminal agent

Launching a CLI Agent

bash
# Start a Gemini CLI session
adhdev launch gemini

# Start a Claude Code session
adhdev launch claude

# Start a Codex CLI session
adhdev launch codex

The daemon spawns the CLI process with a PTY (pseudo-terminal), streams the output to the dashboard, and forwards your input back to the process.

WARNING

Each CLI tool handles its own authentication. Make sure you've set up API keys for the CLI agent before launching (e.g., GEMINI_API_KEY, ANTHROPIC_API_KEY).

Terminal View

CLI agents appear in the dashboard with a full interactive terminal (powered by xterm.js):

  • Full TUI rendering — colors, cursor positioning, progress bars all work
  • Input — type directly in the terminal from the dashboard
  • Scrollback — scroll up to see previous output
  • Reconnect — if P2P disconnects and reconnects, scrollback buffer is restored

ACP vs CLI

FeatureCLI Agent (PTY)ACP Agent (stdio)
InterfaceFull terminal viewChat-style messages
Renderingxterm.js (TUI)Markdown
Input methodTerminal typingChat input box
Use caseInteractive terminal toolsStructured agent protocol

Troubleshooting

Agent doesn't launch

  • Verify the CLI tool is installed (gemini --version, claude --version)
  • Check that API keys are configured
  • Look at daemon logs: adhdev status

Terminal is blank

  • The agent may be waiting for input — try typing a prompt
  • Check P2P connection status (green dot = connected)

Output is garbled

  • Resize the terminal window (the daemon adapts to terminal size changes)
  • Try refreshing the dashboard page

Next Steps

Released under the AGPL-3.0 License (OSS) / Proprietary (Cloud)