Skip to content

feat: Add 'q webchat' command #2480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: Add 'q webchat' command #2480

wants to merge 4 commits into from

Conversation

smhmhmd
Copy link

@smhmhmd smhmhmd commented Aug 4, 2025

Description of changes:

Add a new command called 'q webchat'.
Run 'q webchat' using a browser at http://localhost:.
Only 'localhost' is supported, other features such as drag-and-drop are TBD items.

Run as:

  1. Start the q CLI as : q webchat --port 3000
  2. Use a browser and paste http://localhost:3000 in the address bar

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

smhmhmd added 4 commits July 29, 2025 16:56
Usage: chat_cli chat [OPTIONS] [INPUT]

Arguments:
  [INPUT]  The first question to ask

Options:
  -r, --resume                    Resumes the previous conversation from this directory
      --agent <AGENT>             Context profile to use
      --model <MODEL>             Current model to use
  -a, --trust-all-tools           Allows the model to use any tool to run commands without asking for confirmation
      --trust-tools <TOOL_NAMES>  Trust only this set of tools. Example: trust some tools: '--trust-tools=fs_read,fs_write', trust
                                  no tools: '--trust-tools='
      --no-interactive            Whether the command should run without expecting user input
      --web-server                Start a web server interface for chat
  -v, --verbose...                Increase logging verbosity
  -h, --help                      Print help
Run 'q chat' over web using a browser at http://localhost:<port>

Run as:
cargo run --bin chat_cli -- webchat --port 8081

Usage: chat_cli webchat [OPTIONS]

Options:
  -p, --port <PORT>
          Port to run the web server on [default: 8080]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant