Single Prompt¶
Run a single prompt and get a response without entering interactive mode.
Basic Usage¶
With Configuration¶
Piping Input¶
You can pipe text into janito:
Examples¶
Quick Question¶
With Tools¶
With Gmail¶
With OneDrive¶
Exit Codes¶
Single prompt mode returns standard exit codes:
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error (configuration, API, etc.) |
130 |
Interrupted (Ctrl+C) |
Use Cases¶
Single prompt mode is ideal for:
- Quick questions
- Scripting and automation
- Integration with other tools
- One-off tasks
For multi-turn conversations, use interactive mode instead.