CLI
agent
interactive and single-message AI chat
usage
baihu agent [OPTIONS]
options
| flag | description |
|---|---|
-m, --message <MSG> | send a single message and exit |
-p, --provider <NAME> | override provider for this session |
--model <MODEL> | override model for this session |
--temperature <FLOAT> | override temperature (0.0-2.0) |
examples
# single message
baihu agent -m "explain borrow checker"
# interactive REPL
baihu agent
# specific provider
baihu agent -p ollama --model llama3.2 -m "hello"
# with custom endpoint
baihu agent -p "custom:https://api.example.com/v1" -m "test"
interactive mode
starts a persistent chat session with memory context. the agent has access to tools (shell, file read/write, memory, browser) controlled by the security policy.
type your message and press enter. ctrl+c to exit.