You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then with [`uvx`](https://docs.astral.sh/uv/guides/tools/), run:
26
26
27
27
```bash
28
-
uvx clai
28
+
uvx clai chat
29
29
```
30
30
31
31
Or to install `clai` globally [with `uv`](https://docs.astral.sh/uv/guides/tools/#installing-tools), run:
32
32
33
33
```bash
34
34
uv tool install clai
35
35
...
36
-
clai
36
+
clai chat
37
37
```
38
38
39
39
Or with `pip`, run:
40
40
41
41
```bash
42
42
pip install clai
43
43
...
44
-
clai
44
+
clai chat
45
45
```
46
46
47
-
Either way, running `clai` will start an interactive session where you can chat with the AI model. Special commands available in interactive mode:
47
+
Either way, running `clai chat` will start an interactive session where you can chat with the AI model. Special commands available in interactive mode:
48
48
49
49
-`/exit`: Exit the session
50
50
-`/markdown`: Show the last response in markdown format
@@ -112,30 +112,17 @@ For full documentation, see [Web Chat UI](https://ai.pydantic.dev/ui/web/).
Then with [`uvx`](https://docs.astral.sh/uv/guides/tools/), run:
23
23
24
24
```bash
25
-
uvx clai
25
+
uvx clai chat
26
26
```
27
27
28
28
Or to install `clai` globally [with `uv`](https://docs.astral.sh/uv/guides/tools/#installing-tools), run:
29
29
30
30
```bash
31
31
uv tool install clai
32
32
...
33
-
clai
33
+
clai chat
34
34
```
35
35
36
36
Or with `pip`, run:
37
37
38
38
```bash
39
39
pip install clai
40
40
...
41
-
clai
41
+
clai chat
42
42
```
43
43
44
-
Either way, running `clai` will start an interactive session where you can chat with the AI model. Special commands available in interactive mode:
44
+
Either way, running `clai chat` will start an interactive session where you can chat with the AI model. Special commands available in interactive mode:
45
45
46
46
-`/exit`: Exit the session
47
47
-`/markdown`: Show the last response in markdown format
@@ -122,14 +122,16 @@ To get help on the CLI, use the `--help` flag:
122
122
123
123
```bash
124
124
uvx clai --help
125
+
uvx clai chat --help
126
+
uvx clai web --help
125
127
```
126
128
127
129
### Choose a model
128
130
129
131
You can specify which model to use with the `--model` flag:
130
132
131
133
```bash
132
-
uvx clai --model anthropic:claude-sonnet-4-0
134
+
uvx clai chat --model anthropic:claude-sonnet-4-0
133
135
```
134
136
135
137
(a full list of models available can be printed with `uvx clai --list-models`)
help='Custom Agent to use, in format "module:variable", e.g. "mymodule.submodule:my_agent"',
166
180
)
167
-
parser.add_argument(
168
-
'-l',
169
-
'--list-models',
170
-
action='store_true',
171
-
help='List all available models and exit',
172
-
)
173
-
parser.add_argument(
181
+
chat_parser.add_argument(
174
182
'-t',
175
183
'--code-theme',
176
184
nargs='?',
177
185
help='Which colors to use for code, can be "dark", "light" or any theme from pygments.org/styles/. Defaults to "dark" which works well on dark terminals.',
178
186
default='dark',
179
187
)
180
-
parser.add_argument('--no-stream', action='store_true', help='Disable streaming from the model')
181
-
parser.add_argument('--version', action='store_true', help='Show version and exit')
0 commit comments