CLI Agent

The powerful AI coding agent that lives in your terminal.

coolcode streams a coding agent into a native terminal UI. It plans before it builds, executes tools inside your repository, and shows every step as it happens.

|Build[gpt-5.4]coolcode
tab switch agentctrl-p commands

What is coolcode?

  • [+]Terminal-nativeA real TUI built with OpenTUI and React — rendered in your terminal, not a web view.
  • [+]Plans before it buildsPLAN mode is read-only and enforced on both the server and the CLI. Review the approach before a single file changes.
  • [+]Executes tools locallyTool calls stream from the model and run inside your working directory, sandboxed to your project.
  • [+]Streams everythingTokens, tool calls, and results arrive in real time — results are returned to the model automatically.
  • [+]Multi-modelPick from a shared model registry routed through OpenRouter. Swap models without leaving the prompt.
  • [+]Sessions that persistConversations and history live in Postgres, not in your scrollback.

How it works

  1. [1]
    Start the API

    The Hono server handles auth, sessions, credits, and model routing.

    bun run dev:server
  2. [2]
    Launch the TUI

    The CLI connects to the API and opens the chat interface in your terminal.

    bun run dev:cli
  3. [3]
    Ship code

    Ask for a change. The agent streams tool calls, the CLI executes them in your repo, and results return automatically.