terminal-kit/docs/installation.md
$
cat docs/installation.md
# installation
Add terminal-kit to an existing project via the shadcn CLI.
──
prerequisites
Before installing, ensure you have:
  • Node.js version 18 or later
  • React version 19 or later
──
install shadcn/ui
First, install and configure shadcn/ui in your project. Once shadcn/ui is set up, you can install terminal-kit components using the shadcn CLI.
──
using the shadcn cli
npx shadcn@latest add "https://www.terminal-kit.com/r/[component].json"
Replace [component] with a registry slug. To get every component at once, use full-bundle. Individual components: terminal-window, message, session-content, input, question-prompt, edit-block, thinking-indicator, stream-text. Installing a single component automatically pulls in the shared base (terminal-window) and theme.
──
usage
The CLI merges terminal-kit theme tokens and utility classes into your global stylesheet when you install a component. Then import and start using the components. With full-bundle you can import from the top-level barrel @/components/terminal-kit; a single-component install imports from its file path, e.g. @/components/terminal-kit/agent/edit-block.
import {
  TerminalWindow,
  Input,
} from "@/components/terminal-kit"

export function AgentShell() {
  return (
    <TerminalWindow
      path="projects/main malayvasa/folder"
      showTrafficLights
      footer={<Input status="agent · always-approve" />}
    >
      {/* agent content */}
    </TerminalWindow>
  )
}