docbot run command launches the full Docbot agent with an interactive terminal UI. It handles indexing, starts the server, and executes documentation tasks using AI-powered planning and tool execution.
Basic usage
- Index documentation and codebase (if not up to date)
- Start the Docbot server on port 3070 (by default)
- Launch the interactive UI
- Execute your task with plan approval
If you omit the task argument, Docbot starts in idle mode. You can submit tasks through the web UI at
http://localhost:3070.Options
The documentation task to perform. Optional - starts in idle mode if omitted.Examples:
"Add a troubleshooting section to the API docs""Update the installation guide with Docker instructions""Fix broken links in the getting started page"
Path to the documentation directory. Can also be set via
paths.docs in your config file.Comma-separated paths or globs to codebase directories. Falls back to
paths.codebase in your config file.Examples: apps/helm,packages/* or src/**Path to docbot config file. Defaults to
docbot.config.jsonc in your project root.Alias: -cRun in interactive mode with plan approval. When true, Docbot shows you the plan and waits for approval before making changes.Set to
false for fully autonomous execution (use with caution).Server port. Overrides the port in your config file.Default:
3070Qdrant server URL. Overrides the URL in your config file.Default:
http://127.0.0.1:6333Only index the docs, don’t run the agent. Equivalent to running
docbot index but uses the same configuration.Show detailed logging of tool calls, commands, and timings. Starts a log server on port 3071 for real-time log viewing.Alias:
-vDon’t start the server (connect to existing server instead). Use this when you already have a Docbot server running.Alias:
-nsForce full re-index, ignoring the manifest. Re-creates embeddings for all files even if they haven’t changed.Alias:
-fExamples
Interactive UI
When you run Docbot, you’ll see an interactive terminal UI with:Status header
Shows:- Current task
- Indexing stats (files scanned, chunks synced)
- Server URL and port
- Docs and codebase paths
Task execution panel
Displays:- Planning phase output
- Tool executions
- File operations
- Agent reasoning
Plan approval
In interactive mode, Docbot shows you the plan and waits for approval:y to proceed or n to cancel.
Indexing phase
Before running your task, Docbot performs incremental indexing:Server component
Docbot runs a local HTTP server that provides:- REST API - For task submission and status queries
- WebSocket - For real-time agent output streaming
- Web UI - Browser-based interface at
http://localhost:3070
Connecting to existing server
If you want to run multiple Docbot instances:Verbose mode
Enable verbose logging to see detailed execution:- Shows all tool calls (read, write, search, etc.)
- Logs command executions and outputs
- Displays timing information
- Starts a log server on port 3071
http://localhost:3071.
Configuration
Set defaults indocbot.config.jsonc:
Task examples
Docbot can handle a wide variety of documentation tasks:Content creation
Updates and improvements
Maintenance
Refactoring
Workflow
Typical Docbot workflow:- Submit task - Provide a clear description of what you want
- Planning - Docbot analyzes the task and creates a plan
- Approval - Review and approve the plan (interactive mode)
- Execution - Docbot executes the plan step by step
- Review - Check the changes and commit if satisfied
Troubleshooting
Error: AI_GATEWAY_API_KEY environment variable is required
Error: docs path is required
--docs or configure paths.docs in docbot.config.jsonc.
Port already in use
If port 3070 is taken:UI not rendering correctly
Ensure your terminal supports 256 colors and has sufficient dimensions (at least 80x24).Task execution stalls
If the agent appears stuck:- Check verbose logs:
docbot run "Task" --verbose - Verify Qdrant is accessible:
curl http://127.0.0.1:6333/health - Check network connectivity to AI gateway
- Review task complexity (break down complex tasks)
Keyboard shortcuts
While in the interactive UI:Ctrl+C- Cancel current task and exitCtrl+Z- Suspend (resume withfg)
Next steps
After running tasks:- Review changes - Check the files Docbot modified
- Test locally - Verify documentation renders correctly
- Commit - Use your normal git workflow to commit changes
- Iterate - Run additional tasks to refine the docs