@chatbridge/cli
v0.8.3
Published
Drive browser-only web chat AI services from the command line
Readme
@chatbridge/cli
The CLI for chatbridge: drive browser-only web chat AI services from the command line.
Modes
chatbridge -p "<prompt>"— one-shot, response on stdout. Node >= 20 or Bun.chatbridge— interactive chat in the terminal. Bun >= 1.3 or Node >= 26.4.chatbridge auth login|logout|status— manage the saved browser auth state.
Interactive mode
chatbridge starts the TUI at once and opens the browser behind it, so the
status row shows Opening browser... while the first chat is loading;
anything typed meanwhile is queued and sent when it is ready. If you are not
logged in, the error appears in the chat instead of on a bare terminal:
type /login, log in in the browser window that opens (Ctrl+C cancels it),
and the chat reopens with the new login.
Keys: Enter sends, Ctrl+J (or Shift+Enter under a kitty-protocol terminal)
inserts a newline, @ attaches a file, ! runs a shell command, Up takes
queued messages back, Ctrl+R reopens the browser, Ctrl+C quits.
Commands, typed on a line of their own:
/login— log in in a browser window/logout— delete the saved login and close the chat/new— start a new chat/reopen— reopen the browser (also Ctrl+R)/help— list these commands
