Newv1.0.0

MagicChat CLI

Chat with your custom AI bots, manage knowledge sources, and automate workflows directly from your terminal.

npm install -g magicchat

Fast

Chat instantly without leaving your terminal

AI-Powered

Access your custom-trained bots anywhere

Interactive

Natural flowing conversations with context

Scriptable

Pipe in/out for automation workflows

Bot Management

Create bots and add sources via CLI

Dev Friendly

Built for developers who live in the terminal

⚡ AI Agent Skill

Enable AI coding assistants (Claude Code, Cursor, Codex) to use your MagicChat bots:

npx skills add IndianAppGuy/magicchat-cli

Installation

npm install -g magicchat
# or
yarn global add magicchat

Quick Start

1

Login

magicchat login
2

Create a Bot

magicchat create-bot
3

Add Knowledge

# Add URL source
magicchat add-source --bot mybot --url https://example.com/docs

# Add YouTube video
magicchat add-source --bot mybot --youtube https://youtu.be/video_id
4

Start Chatting

magicchat chat mybot

Command Reference

magicchat ask

Perfect for one-off questions and shell scripting automation.

# Get a quick answer
magicchat ask "What is the return policy?" --bot support-bot

# Pipe output to other tools
magicchat ask "Summarize logs" --bot log-bot --simple > summary.txt

magicchat add-source

Train your bot directly from the CLI with various data sources.

# Interactive mode (Recommended)
magicchat add-source --bot mybot

# Direct flags
magicchat add-source --bot mybot --url https://site.com
magicchat add-source --bot mybot --youtube https://youtu.be/k323d
magicchat add-source --bot mybot --text "Raw content..."